요약·해설과 원문, 전문 번역을 서로 분리했습니다. 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/marvell,cn10624-wdt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Marvell Global Timer (GTI) system watchdog
maintainers:
- Bharat Bhushan <[email protected]>
allOf:
- $ref: watchdog.yaml#
properties:
compatible:
oneOf:
- enum:
- marvell,cn9670-wdt
- marvell,cn10624-wdt
- items:
- enum:
- marvell,cn9880-wdt
- marvell,cnf9535-wdt
- const: marvell,cn9670-wdt
- items:
- enum:
- marvell,cn10308-wdt
- marvell,cnf10518-wdt
- const: marvell,cn10624-wdt
reg:
maxItems: 1
interrupts:
maxItems: 1
clocks:
maxItems: 1
clock-names:
items:
- const: refclk
marvell,wdt-timer-index:
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 63
description:
An SoC have many timers (up to 64), firmware can reserve one or more timer
for some other use case and configures one of the global timer as watchdog
timer. Firmware will update this field with the timer number configured
as watchdog timer.
required:
- compatible
- reg
- interrupts
- clocks
- clock-names
unevaluatedProperties: false
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
watchdog@802000040000 {
compatible = "marvell,cn9670-wdt";
reg = <0x00008020 0x00040000 0x00000000 0x00020000>;
interrupts = <GIC_SPI 38 IRQ_TYPE_EDGE_RISING>;
clocks = <&sclk>;
clock-names = "refclk";
marvell,wdt-timer-index = <63>;
};
};
...
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Marvell GTI 시스템 워치독
1-14GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 Marvell Global Timer(GTI)를 사용하는 시스템 워치독을 정의합니다. 공통 `watchdog.yaml`을 상속하며 관리자는 Bharat Bhushan입니다.
SoC 호환 문자열과 기준 클록
15-46`compatible`은 `marvell,cn9670-wdt` 또는 `marvell,cn10624-wdt`를 직접 사용할 수 있습니다. CN9880과 CNF9535는 `marvell,cn9670-wdt`를 fallback으로, CN10308과 CNF10518은 `marvell,cn10624-wdt`를 fallback으로 함께 나열합니다.
`reg`, `interrupts`, `clocks`는 각각 항목 하나만 받습니다. `clock-names`의 유일한 항목은 기준 클록을 뜻하는 `refclk`입니다.
properties:
compatible:
oneOf:
- enum:
- marvell,cn9670-wdt
- marvell,cn10624-wdt
- items:
- enum:
- marvell,cn9880-wdt
- marvell,cnf9535-wdt
- const: marvell,cn9670-wdt
- items:
- enum:
- marvell,cn10308-wdt
- marvell,cnf10518-wdt
- const: marvell,cn10624-wdt
reg:
maxItems: 1
interrupts:
maxItems: 1
clocks:
maxItems: 1
clock-names:
items:
- const: refclk
펌웨어가 선택한 타이머 인덱스
47-65`marvell,wdt-timer-index`는 0부터 63까지의 `uint32` 값입니다. SoC에는 최대 64개의 타이머가 있고 펌웨어가 다른 용도로 하나 이상을 예약할 수 있으므로, 펌웨어는 전역 타이머 가운데 워치독으로 설정한 번호를 이 필드에 기록합니다.
`compatible`, `reg`, `interrupts`, `clocks`, `clock-names`는 필수입니다. 공통 스키마 평가 뒤 남는 속성은 허용하지 않습니다.
marvell,wdt-timer-index:
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 63
description:
An SoC have many timers (up to 64), firmware can reserve one or more timer
for some other use case and configures one of the global timer as watchdog
timer. Firmware will update this field with the timer number configured
as watchdog timer.
required:
- compatible
- reg
- interrupts
- clocks
- clock-names
unevaluatedProperties: false
CN9670 GTI 예제
66-83예제는 CN9670 GTI 레지스터 영역에 상승 에지 GIC SPI 38, `sclk` 기준 클록, `refclk` 이름을 지정하고 63번 전역 타이머를 워치독으로 선택합니다.
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
watchdog@802000040000 {
compatible = "marvell,cn9670-wdt";
reg = <0x00008020 0x00040000 0x00000000 0x00020000>;
interrupts = <GIC_SPI 38 IRQ_TYPE_EDGE_RISING>;
clocks = <&sclk>;
clock-names = "refclk";
marvell,wdt-timer-index = <63>;
};
};
...
요약과 해설
marvell,cn10624-wdt.yaml:1-83CN9K·CN10K 계열 GTI 워치독의 호환 문자열과 펌웨어 타이머 인덱스를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, GPIO, reset, 예제와 원문 줄 좌표를 원형대로 보존합니다.