요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/apple,wdt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Apple SoC Watchdog
maintainers:
- Sven Peter <sven@svenpeter.dev>
allOf:
- $ref: watchdog.yaml#
properties:
compatible:
oneOf:
- items:
- const: apple,t6020-wdt
- const: apple,t8103-wdt
- items:
- enum:
# Do not add additional SoC to this list.
- apple,s5l8960x-wdt
- apple,t7000-wdt
- apple,s8000-wdt
- apple,t8010-wdt
- apple,t8015-wdt
- apple,t8103-wdt
- apple,t8112-wdt
- apple,t6000-wdt
- const: apple,wdt
reg:
maxItems: 1
clocks:
maxItems: 1
interrupts:
maxItems: 1
required:
- compatible
- reg
- clocks
- interrupts
unevaluatedProperties: false
examples:
- |
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
wdt: watchdog@50000000 {
compatible = "apple,t8103-wdt", "apple,wdt";
reg = <0x50000000 0x4000>;
clocks = <&clk>;
interrupts = <AIC_IRQ 123 IRQ_TYPE_LEVEL_HIGH>;
};
...
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Apple SoC 워치독
1-11GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 Apple SoC 워치독을 정의합니다. 관리자는 Sven Peter입니다.
Apple SoC 호환 문자열과 필수 자원
12-50공통 `watchdog.yaml`을 상속합니다. T6020은 `apple,t6020-wdt` 뒤에 `apple,t8103-wdt` fallback을 둡니다. S5L8960X, T7000, S8000, T8010, T8015, T8103, T8112, T6000은 각 SoC 문자열 뒤에 공통 `apple,wdt` fallback을 사용합니다.
주석은 두 번째 SoC 목록에 추가 SoC를 더하지 말라고 명시합니다. `reg`, `clocks`, `interrupts`는 각각 최대 하나이며, 이 세 자원과 `compatible`이 모두 필수입니다. 평가되지 않은 추가 속성은 허용하지 않습니다.
allOf:
- $ref: watchdog.yaml#
properties:
compatible:
oneOf:
- items:
- const: apple,t6020-wdt
- const: apple,t8103-wdt
- items:
- enum:
# Do not add additional SoC to this list.
- apple,s5l8960x-wdt
- apple,t7000-wdt
- apple,s8000-wdt
- apple,t8010-wdt
- apple,t8015-wdt
- apple,t8103-wdt
- apple,t8112-wdt
- apple,t6000-wdt
- const: apple,wdt
reg:
maxItems: 1
clocks:
maxItems: 1
interrupts:
maxItems: 1
required:
- compatible
- reg
- clocks
- interrupts
unevaluatedProperties: false
T8103 AIC interrupt 예제
51-63예제는 주소 `0x50000000`, 길이 `0x4000`인 T8103 워치독에 공통 `apple,wdt` fallback을 함께 적습니다. `clk` 클록과 level-high 방식의 AIC interrupt 123을 연결합니다.
examples:
- |
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
wdt: watchdog@50000000 {
compatible = "apple,t8103-wdt", "apple,wdt";
reg = <0x50000000 0x4000>;
clocks = <&clk>;
interrupts = <AIC_IRQ 123 IRQ_TYPE_LEVEL_HIGH>;
};
...
요약과 해설
apple,wdt.yaml:1-63Apple SoC별 워치독 fallback과 레지스터·클록·AIC interrupt를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, reset, 예제와 원문 줄 좌표를 원형대로 보존합니다.