Documentation/devicetree/bindings/watchdog/sunplus,sp7021-wdt.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Watchdog

Sunplus SP7021 Watchdog

SP7021 watchdog의 두 register 영역과 clock, reset 연결을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

sunplus,sp7021-wdt.yaml:1-47

SP7021 watchdog의 두 register 영역과 clock, reset 연결을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, reset, timeout과 예제는 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) Sunplus Co., Ltd. 2021
3 %YAML 1.2
4 ---
5 $id: http://devicetree.org/schemas/watchdog/sunplus,sp7021-wdt.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
7
8 title: Sunplus SoCs Watchdog
9
10 maintainers:
11 - XianTao Hu <[email protected]>
12
13 allOf:
14 - $ref: watchdog.yaml#
15
16 properties:
17 compatible:
18 const: sunplus,sp7021-wdt
19
20 reg:
21 items:
22 - description: watchdog registers regions
23 - description: miscellaneous control registers regions
24
25 clocks:
26 maxItems: 1
27
28 resets:
29 maxItems: 1
30
31 required:
32 - compatible
33 - reg
34 - clocks
35 - resets
36
37 additionalProperties: false
38
39 examples:
40 - |
41 watchdog: watchdog@9c000630 {
42 compatible = "sunplus,sp7021-wdt";
43 reg = <0x9c000630 0x08>, <0x9c000274 0x04>;
44 clocks = <&clkc 0x24>;
45 resets = <&rstc 0x14>;
46 };
47 ...
48

3. 한국어 전문 번역

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

Sunplus SP7021 Watchdog

1-15

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 Sunplus SoC Watchdog를 정의합니다. 저작권은 2021년 Sunplus Co., Ltd.에 있고 관리자는 XianTao Hu이며, 공통 `watchdog.yaml`을 상속합니다.

두 register 영역과 clock, reset

16-38

`compatible`은 `sunplus,sp7021-wdt`입니다. `reg`는 watchdog register 영역과 miscellaneous control register 영역 두 항목을 이 순서로 받습니다.

`clocks`와 `resets`는 각각 최대 한 항목입니다. `compatible`, `reg`, `clocks`, `resets`는 모두 필수이며 추가 속성은 허용하지 않습니다.

properties:
  compatible:
    const: sunplus,sp7021-wdt

  reg:
    items:
      - description: watchdog registers regions
      - description: miscellaneous control registers regions

  clocks:
    maxItems: 1

  resets:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks
  - resets

additionalProperties: false

SP7021 예제

39-47

예제는 watchdog register `0x9c000630`의 8바이트 영역과 miscellaneous control register `0x9c000274`의 4바이트 영역을 지정합니다. clock controller의 `0x24`와 reset controller의 `0x14`를 각각 연결합니다.

examples:
  - |
    watchdog: watchdog@9c000630 {
        compatible = "sunplus,sp7021-wdt";
        reg = <0x9c000630 0x08>, <0x9c000274 0x04>;
        clocks = <&clkc 0x24>;
        resets = <&rstc 0x14>;
    };
...