요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/watchdog.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Watchdog Common Properties
maintainers:
- Guenter Roeck <linux@roeck-us.net>
- Wim Van Sebroeck <wim@linux-watchdog.org>
description: |
This document describes generic bindings which can be used to
describe watchdog devices in a device tree.
select:
properties:
$nodename:
pattern: "^watchdog(@.*|-([0-9]|[1-9][0-9]+))?$"
properties:
$nodename:
pattern: "^(timer|watchdog)(@.*|-([0-9]|[1-9][0-9]+))?$"
timeout-sec:
description:
Contains the watchdog timeout in seconds.
additionalProperties: true
...
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
watchdog 공통 속성
1-16GPL-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
...
요약과 해설
watchdog.yaml:1-32watchdog 공통 node 이름 규칙과 초 단위 timeout 속성을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, node 이름, compatible, register, clock, interrupt, reset, reserved memory, timeout과 예제는 원문 줄 좌표를 원형대로 보존합니다.