← Documents Documentation/devicetree/bindings/watchdog/apple,wdt.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Watchdog

Apple SoC Watchdog

Apple SoC별 워치독 fallback과 레지스터·클록·AIC interrupt를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

apple,wdt.yaml:1-63

Apple SoC별 워치독 fallback과 레지스터·클록·AIC interrupt를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, reset, 예제와 원문 줄 좌표를 원형대로 보존합니다.

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/apple,wdt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Apple SoC Watchdog
8
9 maintainers:
10 - Sven Peter <[email protected]>
11
12 allOf:
13 - $ref: watchdog.yaml#
14
15 properties:
16 compatible:
17 oneOf:
18 - items:
19 - const: apple,t6020-wdt
20 - const: apple,t8103-wdt
21 - items:
22 - enum:
23 # Do not add additional SoC to this list.
24 - apple,s5l8960x-wdt
25 - apple,t7000-wdt
26 - apple,s8000-wdt
27 - apple,t8010-wdt
28 - apple,t8015-wdt
29 - apple,t8103-wdt
30 - apple,t8112-wdt
31 - apple,t6000-wdt
32 - const: apple,wdt
33
34 reg:
35 maxItems: 1
36
37 clocks:
38 maxItems: 1
39
40 interrupts:
41 maxItems: 1
42
43 required:
44 - compatible
45 - reg
46 - clocks
47 - interrupts
48
49 unevaluatedProperties: false
50
51 examples:
52 - |
53 #include <dt-bindings/interrupt-controller/apple-aic.h>
54 #include <dt-bindings/interrupt-controller/irq.h>
55
56 wdt: watchdog@50000000 {
57 compatible = "apple,t8103-wdt", "apple,wdt";
58 reg = <0x50000000 0x4000>;
59 clocks = <&clk>;
60 interrupts = <AIC_IRQ 123 IRQ_TYPE_LEVEL_HIGH>;
61 };
62
63 ...
64

3. 한국어 전문 번역

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

Apple SoC 워치독

1-11

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 Apple SoC 워치독을 정의합니다. 관리자는 Sven Peter입니다.

Apple SoC 호환 문자열과 필수 자원

12-50

공통 `watchdog.yaml`을 상속합니다. T6020은 `apple,t6020-wdt` 뒤에 `apple,t8103-wdt` fallback을 둡니다. S5L8960X, T7000, S8000, T8010, T8015, T8103, T8112, T6000은 각 SoC 문자열 뒤에 공통 `apple,wdt` fallback을 사용합니다.

주석은 두 번째 SoC 목록에 추가 SoC를 더하지 말라고 명시합니다. `reg`, `clocks`, `interrupts`는 각각 최대 하나이며, 이 세 자원과 `compatible`이 모두 필수입니다. 평가되지 않은 추가 속성은 허용하지 않습니다.

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    oneOf:
      - items:
          - const: apple,t6020-wdt
          - const: apple,t8103-wdt
      - items:
          - enum:
              # Do not add additional SoC to this list.
              - apple,s5l8960x-wdt
              - apple,t7000-wdt
              - apple,s8000-wdt
              - apple,t8010-wdt
              - apple,t8015-wdt
              - apple,t8103-wdt
              - apple,t8112-wdt
              - apple,t6000-wdt
          - const: apple,wdt

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks
  - interrupts

unevaluatedProperties: false

T8103 AIC interrupt 예제

51-63

예제는 주소 `0x50000000`, 길이 `0x4000`인 T8103 워치독에 공통 `apple,wdt` fallback을 함께 적습니다. `clk` 클록과 level-high 방식의 AIC interrupt 123을 연결합니다.

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

    wdt: watchdog@50000000 {
        compatible = "apple,t8103-wdt", "apple,wdt";
        reg = <0x50000000 0x4000>;
        clocks = <&clk>;
        interrupts = <AIC_IRQ 123 IRQ_TYPE_LEVEL_HIGH>;
    };

...