요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
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 <[email protected]>
- Wim Van Sebroeck <[email protected]>
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. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, 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과 예제는 원문 줄 좌표를 원형대로 보존합니다.