Documentation/devicetree/bindings/watchdog/nxp,s32g2-swt.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/watchdog/nxp,s32g2-swt.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/watchdog/nxp,s32g2-swt.yaml
Extension
.yaml
Size
1074 bytes
Lines
55
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/nxp,s32g2-swt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP Software Watchdog Timer (SWT)

maintainers:
  - Daniel Lezcano <daniel.lezcano@kernel.org>

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    oneOf:
      - const: nxp,s32g2-swt
      - items:
          - const: nxp,s32g3-swt
          - const: nxp,s32g2-swt

  reg:
    maxItems: 1

  clocks:
    items:
      - description: Counter clock
      - description: Module clock
      - description: Register clock

  clock-names:
    items:
      - const: counter
      - const: module
      - const: register

required:
  - compatible
  - reg
  - clocks
  - clock-names

unevaluatedProperties: false

examples:
  - |
    watchdog@40100000 {
        compatible = "nxp,s32g2-swt";
        reg = <0x40100000 0x1000>;
        clocks = <&clks 0x3a>, <&clks 0x3b>, <&clks 0x3c>;
        clock-names = "counter", "module", "register";
        timeout-sec = <10>;
    };

Annotation

Implementation Notes