← Documents Documentation/devicetree/bindings/watchdog/dlg,da9062-watchdog.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Watchdog

Dialog DA906x Watchdog Timer

DA9061·2·3 워치독의 suspend 관리와 OTP 기반 SHUTDOWN·POWERDOWN을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

dlg,da9062-watchdog.yaml:1-54

DA9061·2·3 워치독의 suspend 관리와 OTP 기반 SHUTDOWN·POWERDOWN을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, 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/dlg,da9062-watchdog.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Dialog Semiconductor DA906{1,2,3} Watchdog Timer
8
9 maintainers:
10 - Steve Twiss <[email protected]>
11
12 allOf:
13 - $ref: watchdog.yaml#
14
15 properties:
16 compatible:
17 oneOf:
18 - enum:
19 - dlg,da9062-watchdog
20 - dlg,da9063-watchdog
21 - items:
22 - const: dlg,da9061-watchdog
23 - const: dlg,da9062-watchdog
24
25 dlg,use-sw-pm:
26 type: boolean
27 description:
28 Add this property to disable the watchdog during suspend.
29 Only use this option if you can't use the watchdog automatic suspend
30 function during a suspend (see register CONTROL_B).
31
32 dlg,wdt-sd:
33 $ref: /schemas/types.yaml#/definitions/uint32
34 enum: [0, 1]
35 description:
36 Set what happens on watchdog timeout. If this bit is set the
37 watchdog timeout triggers SHUTDOWN, if cleared the watchdog triggers
38 POWERDOWN. Can be 0 or 1. Only use this option if you want to change the
39 default chip's OTP setting for WATCHDOG_SD bit. If this property is NOT
40 set the WATCHDOG_SD bit and on timeout watchdog behavior will match the
41 chip's OTP settings.
42
43 required:
44 - compatible
45
46 unevaluatedProperties: false
47
48 examples:
49 - |
50 watchdog {
51 compatible = "dlg,da9062-watchdog";
52 dlg,use-sw-pm;
53 dlg,wdt-sd = <1>;
54 };
55

3. 한국어 전문 번역

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

Dialog DA9061·DA9062·DA9063 워치독

1-11

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 Dialog Semiconductor DA9061, DA9062, DA9063 워치독 타이머를 정의합니다. 관리자는 Steve Twiss입니다.

DA906x 호환 문자열

12-24

공통 `watchdog.yaml`을 상속합니다. DA9062와 DA9063은 각각 `dlg,da9062-watchdog`, `dlg,da9063-watchdog`를 직접 사용합니다. DA9061은 `dlg,da9061-watchdog` 뒤에 `dlg,da9062-watchdog` fallback을 둡니다.

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    oneOf:
      - enum:
          - dlg,da9062-watchdog
          - dlg,da9063-watchdog
      - items:
          - const: dlg,da9061-watchdog
          - const: dlg,da9062-watchdog

suspend 중 software 전원 관리

25-31

boolean `dlg,use-sw-pm`을 추가하면 suspend 중 워치독을 비활성화합니다. CONTROL_B register의 자동 watchdog suspend 기능을 사용할 수 없는 경우에만 이 옵션을 사용해야 합니다.

dlg,use-sw-pm:
  type: boolean
  description:
    Add this property to disable the watchdog during suspend.
    Only use this option if you can't use the watchdog automatic suspend
    function during a suspend (see register CONTROL_B).

SHUTDOWN·POWERDOWN과 OTP 기본값

32-47

`dlg,wdt-sd`는 timeout 때의 동작을 0 또는 1로 지정합니다. bit가 1이면 timeout이 `SHUTDOWN`을, 0이면 `POWERDOWN`을 유발합니다. chip의 `WATCHDOG_SD` OTP 기본 설정을 바꾸려는 경우에만 사용합니다.

이 속성을 생략하면 `WATCHDOG_SD` bit와 timeout 동작은 chip OTP 설정을 그대로 따릅니다. `compatible`만 필수이며 평가되지 않은 추가 속성은 허용하지 않습니다.

  dlg,wdt-sd:
    $ref: /schemas/types.yaml#/definitions/uint32
    enum: [0, 1]
    description:
      Set what happens on watchdog timeout. If this bit is set the
      watchdog timeout triggers SHUTDOWN, if cleared the watchdog triggers
      POWERDOWN. Can be 0 or 1. Only use this option if you want to change the
      default chip's OTP setting for WATCHDOG_SD bit. If this property is NOT
      set the WATCHDOG_SD bit and on timeout watchdog behavior will match the
      chip's OTP settings.

required:
  - compatible

unevaluatedProperties: false

DA9062 software PM 예제

48-54

예제는 DA9062 워치독에서 suspend 중 software PM을 사용하고 `dlg,wdt-sd = <1>`로 timeout 시 SHUTDOWN을 선택합니다.

examples:
  - |
    watchdog {
      compatible = "dlg,da9062-watchdog";
      dlg,use-sw-pm;
      dlg,wdt-sd = <1>;
    };