← Documents Documentation/devicetree/bindings/watchdog/nxp,s32g2-swt.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Watchdog

NXP S32G Software Watchdog Timer

S32G2·S32G3 SWT의 counter·module·register clock을 설명합니다.

Source pathDocumentation/devicetree/bindings/watchdog/nxp,s32g2-swt.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

nxp,s32g2-swt.yaml:1-54

S32G2·S32G3 SWT의 counter·module·register clock을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, reset, timeout, 예제와 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/watchdog/nxp,s32g2-swt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: NXP Software Watchdog Timer (SWT)
8
9 maintainers:
10 - Daniel Lezcano <daniel.lezcano@kernel.org>
11
12 allOf:
13 - $ref: watchdog.yaml#
14
15 properties:
16 compatible:
17 oneOf:
18 - const: nxp,s32g2-swt
19 - items:
20 - const: nxp,s32g3-swt
21 - const: nxp,s32g2-swt
22
23 reg:
24 maxItems: 1
25
26 clocks:
27 items:
28 - description: Counter clock
29 - description: Module clock
30 - description: Register clock
31
32 clock-names:
33 items:
34 - const: counter
35 - const: module
36 - const: register
37
38 required:
39 - compatible
40 - reg
41 - clocks
42 - clock-names
43
44 unevaluatedProperties: false
45
46 examples:
47 - |
48 watchdog@40100000 {
49 compatible = "nxp,s32g2-swt";
50 reg = <0x40100000 0x1000>;
51 clocks = <&clks 0x3a>, <&clks 0x3b>, <&clks 0x3c>;
52 clock-names = "counter", "module", "register";
53 timeout-sec = <10>;
54 };
55

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

NXP S32G Software Watchdog Timer

1-14

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 NXP Software Watchdog Timer(SWT)를 정의합니다. 공통 `watchdog.yaml`을 상속하며 관리자는 Daniel Lezcano입니다.

S32G2·S32G3와 세 종류 클록

15-45

`compatible`은 `nxp,s32g2-swt`를 직접 사용하거나, S32G3에서 `nxp,s32g3-swt` 뒤에 `nxp,s32g2-swt`를 fallback으로 나열합니다. `reg`는 항목 하나만 받습니다.

`clocks`는 Counter clock, Module clock, Register clock을 이 순서로 제공하며 `clock-names`는 각각 `counter`, `module`, `register`입니다. `compatible`, `reg`, `clocks`, `clock-names`가 모두 필수이고 평가되지 않은 속성은 허용하지 않습니다.

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

S32G2 SWT 예제

46-54

예제는 주소 `0x40100000`, 크기 `0x1000`인 S32G2 SWT에 세 클록을 `counter`, `module`, `register` 순서로 연결하고 timeout을 10초로 설정합니다.

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>;
    };