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

Linux 6.18.37 · Devicetree Bindings / Watchdog

Spreadtrum SP9860 Watchdog

SP9860 워치독의 enable·RTC enable clock과 timeout을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

sprd,sp9860-wdt.yaml:1-64

SP9860 워치독의 enable·RTC enable clock과 timeout을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, reset, syscon, 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/sprd,sp9860-wdt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Spreadtrum SP9860 watchdog timer
8
9 maintainers:
10 - Orson Zhai <orsonzhai@gmail.com>
11 - Baolin Wang <baolin.wang7@gmail.com>
12 - Chunyan Zhang <zhang.lyra@gmail.com>
13
14 allOf:
15 - $ref: watchdog.yaml#
16
17 properties:
18 compatible:
19 const: sprd,sp9860-wdt
20
21 reg:
22 maxItems: 1
23
24 interrupts:
25 maxItems: 1
26
27 clocks:
28 maxItems: 2
29
30 clock-names:
31 items:
32 - const: enable
33 - const: rtc_enable
34
35 required:
36 - compatible
37 - reg
38 - interrupts
39 - clocks
40 - clock-names
41 - timeout-sec
42
43 unevaluatedProperties: false
44
45 examples:
46 - |
47 #include <dt-bindings/clock/sprd,sc9860-clk.h>
48 #include <dt-bindings/interrupt-controller/arm-gic.h>
49 #include <dt-bindings/interrupt-controller/irq.h>
50
51 soc {
52 #address-cells = <2>;
53 #size-cells = <2>;
54
55 watchdog@40310000 {
56 compatible = "sprd,sp9860-wdt";
57 reg = <0 0x40310000 0 0x1000>;
58 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
59 clocks = <&aon_gate CLK_APCPU_WDG_EB>, <&aon_gate CLK_AP_WDG_RTC_EB>;
60 clock-names = "enable", "rtc_enable";
61 timeout-sec = <12>;
62 };
63 };
64 ...
65

3. 한국어 전문 번역

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

Spreadtrum SP9860 워치독

1-16

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 Spreadtrum SP9860 Watchdog Timer를 정의합니다. 공통 `watchdog.yaml`을 상속하며 관리자는 Orson Zhai, Baolin Wang, Chunyan Zhang입니다.

enable·RTC enable 클록

17-44

`compatible`은 `sprd,sp9860-wdt`입니다. `reg`와 `interrupts`는 각각 항목 하나만 받고 `clocks`는 최대 두 항목입니다. `clock-names`는 `enable`, `rtc_enable` 순서입니다.

`compatible`, `reg`, `interrupts`, `clocks`, `clock-names`, `timeout-sec`가 모두 필수이며 평가되지 않은 속성은 허용하지 않습니다.

properties:
  compatible:
    const: sprd,sp9860-wdt

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 2

  clock-names:
    items:
      - const: enable
      - const: rtc_enable

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

unevaluatedProperties: false

SP9860 예제

45-64

예제는 주소 `0x40310000`, 크기 `0x1000`인 SP9860 워치독에 level-high GIC SPI 61을 연결합니다. `CLK_APCPU_WDG_EB`와 `CLK_AP_WDG_RTC_EB`를 각각 `enable`, `rtc_enable`로 사용하고 timeout은 12초입니다.

examples:
  - |
    #include <dt-bindings/clock/sprd,sc9860-clk.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/interrupt-controller/irq.h>

    soc {
        #address-cells = <2>;
        #size-cells = <2>;

        watchdog@40310000 {
            compatible = "sprd,sp9860-wdt";
            reg = <0 0x40310000 0 0x1000>;
            interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&aon_gate CLK_APCPU_WDG_EB>, <&aon_gate CLK_AP_WDG_RTC_EB>;
            clock-names = "enable", "rtc_enable";
            timeout-sec = <12>;
        };
    };
...