← Documents Documentation/devicetree/bindings/watchdog/img,pdc-wdt.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Watchdog

ImgTec PDC Watchdog Timer

PDC 워치독의 counter·register interface 클록과 interrupt를 설명합니다.

Source pathDocumentation/devicetree/bindings/watchdog/img,pdc-wdt.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

img,pdc-wdt.yaml:1-55

PDC 워치독의 counter·register interface 클록과 interrupt를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, GPIO, 예제와 원문 줄 좌표를 원형대로 보존합니다.

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/img,pdc-wdt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: ImgTec PowerDown Controller (PDC) Watchdog Timer (WDT)
8
9 maintainers:
10 - Shresth Prasad <shresthprasad7@gmail.com>
11
12 allOf:
13 - $ref: watchdog.yaml#
14
15 properties:
16 compatible:
17 enum:
18 - img,pdc-wdt
19
20 reg:
21 maxItems: 1
22
23 clocks:
24 items:
25 - description: watchdog counter clock
26 - description: register interface clock
27
28 clock-names:
29 items:
30 - const: wdt
31 - const: sys
32
33 interrupts:
34 maxItems: 1
35
36 required:
37 - compatible
38 - reg
39 - clocks
40 - clock-names
41 - interrupts
42
43 unevaluatedProperties: false
44
45 examples:
46 - |
47 #include <dt-bindings/interrupt-controller/irq.h>
48
49 watchdog@18102100 {
50 compatible = "img,pdc-wdt";
51 reg = <0x18102100 0x100>;
52 clocks = <&pdc_wdt_clk>, <&sys_clk>;
53 clock-names = "wdt", "sys";
54 interrupts = <0 52 IRQ_TYPE_LEVEL_HIGH>;
55 };
56

3. 한국어 전문 번역

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

ImgTec PDC 워치독

1-11

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 ImgTec PowerDown Controller(PDC)의 워치독 타이머를 정의합니다. 관리자는 Shresth Prasad입니다.

counter·register interface 클록

12-44

공통 `watchdog.yaml`을 상속하고 `compatible`은 `img,pdc-wdt`입니다. `reg`와 `interrupts`는 각각 최대 하나입니다.

`clocks`에는 watchdog counter clock과 register interface clock을 이 순서로 제공하고, `clock-names`도 각각 `wdt`, `sys`로 지정합니다. `compatible`, `reg`, `clocks`, `clock-names`, `interrupts`가 모두 필수이며 평가되지 않은 추가 속성은 허용하지 않습니다.

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    enum:
      - img,pdc-wdt

  reg:
    maxItems: 1

  clocks:
    items:
      - description: watchdog counter clock
      - description: register interface clock

  clock-names:
    items:
      - const: wdt
      - const: sys

  interrupts:
    maxItems: 1

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

unevaluatedProperties: false

PDC 두 클록과 interrupt 예제

45-55

예제는 주소 `0x18102100`의 PDC 워치독에 `pdc_wdt_clk`, `sys_clk`를 연결하고 이름을 `wdt`, `sys`로 지정합니다. level-high interrupt 52도 함께 제공합니다.

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>

    watchdog@18102100 {
      compatible = "img,pdc-wdt";
      reg = <0x18102100 0x100>;
      clocks = <&pdc_wdt_clk>, <&sys_clk>;
      clock-names = "wdt", "sys";
      interrupts = <0 52 IRQ_TYPE_LEVEL_HIGH>;
    };