Documentation/devicetree/bindings/watchdog/amlogic,meson6-wdt.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Watchdog

Amlogic Meson6 SoCs Watchdog

Meson6·8·8b·8m2 워치독 호환성과 GIC interrupt 예제를 설명합니다.

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

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

요약과 해설

amlogic,meson6-wdt.yaml:1-50

Meson6·8·8b·8m2 워치독 호환성과 GIC 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/amlogic,meson6-wdt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Amlogic Meson6 SoCs Watchdog timer
8
9 maintainers:
10 - Neil Armstrong <[email protected]>
11 - Martin Blumenstingl <[email protected]>
12
13 allOf:
14 - $ref: watchdog.yaml#
15
16 properties:
17 compatible:
18 oneOf:
19 - enum:
20 - amlogic,meson6-wdt
21 - amlogic,meson8-wdt
22 - amlogic,meson8b-wdt
23 - items:
24 - const: amlogic,meson8m2-wdt
25 - const: amlogic,meson8b-wdt
26
27 interrupts:
28 maxItems: 1
29
30 reg:
31 maxItems: 1
32
33 required:
34 - compatible
35 - interrupts
36 - reg
37
38 unevaluatedProperties: false
39
40 examples:
41 - |
42 #include <dt-bindings/interrupt-controller/irq.h>
43 #include <dt-bindings/interrupt-controller/arm-gic.h>
44
45 wdt: watchdog@c1109900 {
46 compatible = "amlogic,meson6-wdt";
47 reg = <0xc1109900 0x8>;
48 interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
49 timeout-sec = <10>;
50 };
51

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.

Amlogic Meson6 계열 워치독

1-12

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 Amlogic Meson6 계열 SoC의 워치독 타이머를 정의합니다. 관리자는 Neil Armstrong과 Martin Blumenstingl입니다.

Meson6·8·8b·8m2 호환성과 interrupt

13-39

공통 `watchdog.yaml`을 상속합니다. Meson6, Meson8, Meson8b는 각각의 호환 문자열을 직접 사용합니다. Meson8m2는 `amlogic,meson8m2-wdt` 뒤에 `amlogic,meson8b-wdt` fallback을 둡니다.

`interrupts`와 `reg`는 각각 하나이며 `compatible`, `interrupts`, `reg`가 모두 필수입니다. 정의되지 않은 추가 속성은 허용하지 않습니다.

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    oneOf:
      - enum:
          - amlogic,meson6-wdt
          - amlogic,meson8-wdt
          - amlogic,meson8b-wdt
      - items:
          - const: amlogic,meson8m2-wdt
          - const: amlogic,meson8b-wdt

  interrupts:
    maxItems: 1

  reg:
    maxItems: 1

required:
  - compatible
  - interrupts
  - reg

unevaluatedProperties: false

Meson6 GIC interrupt 예제

40-50

예제는 주소 `0xc1109900`, 길이 `0x8`인 Meson6 워치독에 edge-rising 방식의 GIC SPI interrupt 0을 연결하고 timeout을 10초로 설정합니다.

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

    wdt: watchdog@c1109900 {
        compatible = "amlogic,meson6-wdt";
        reg = <0xc1109900 0x8>;
        interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
        timeout-sec = <10>;
    };