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

Linux 6.18.37 · Devicetree Bindings / Watchdog

Watchdog Common Properties

watchdog 공통 node 이름 규칙과 초 단위 timeout 속성을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

watchdog.yaml:1-32

watchdog 공통 node 이름 규칙과 초 단위 timeout 속성을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, node 이름, compatible, register, clock, interrupt, reset, reserved memory, timeout과 예제는 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/watchdog/watchdog.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Watchdog Common Properties
8
9 maintainers:
10 - Guenter Roeck <[email protected]>
11 - Wim Van Sebroeck <[email protected]>
12
13 description: |
14 This document describes generic bindings which can be used to
15 describe watchdog devices in a device tree.
16
17 select:
18 properties:
19 $nodename:
20 pattern: "^watchdog(@.*|-([0-9]|[1-9][0-9]+))?$"
21
22 properties:
23 $nodename:
24 pattern: "^(timer|watchdog)(@.*|-([0-9]|[1-9][0-9]+))?$"
25
26 timeout-sec:
27 description:
28 Contains the watchdog timeout in seconds.
29
30 additionalProperties: true
31
32 ...
33

3. 한국어 전문 번역

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

watchdog 공통 속성

1-16

GPL-2.0으로 배포되는 이 스키마는 device tree에서 watchdog 장치를 기술할 때 사용할 수 있는 공통 binding을 정의합니다. 관리자는 Guenter Roeck와 Wim Van Sebroeck입니다.

선택 조건과 node 이름

17-25

스키마 선택 조건의 `$nodename`은 `watchdog`, unit address가 붙은 `watchdog@...`, 또는 숫자 suffix가 붙은 `watchdog-N` 형식을 허용합니다. 숫자는 `0` 하나이거나 선행 0이 없는 양의 정수입니다.

실제 `$nodename` 공통 속성은 같은 suffix 규칙 아래 `timer` 또는 `watchdog` 이름을 허용합니다.

select:
  properties:
    $nodename:
      pattern: "^watchdog(@.*|-([0-9]|[1-9][0-9]+))?$"

properties:
  $nodename:
    pattern: "^(timer|watchdog)(@.*|-([0-9]|[1-9][0-9]+))?$"

초 단위 timeout

26-32

`timeout-sec`는 watchdog timeout을 초 단위로 담습니다. 이 공통 스키마는 추가 속성을 허용합니다.

  timeout-sec:
    description:
      Contains the watchdog timeout in seconds.

additionalProperties: true

...