요약·해설과 원문, 전문 번역을 서로 분리했습니다. 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/nxp,s32g2-swt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: NXP Software Watchdog Timer (SWT)
maintainers:
- Daniel Lezcano <[email protected]>
allOf:
- $ref: watchdog.yaml#
properties:
compatible:
oneOf:
- const: nxp,s32g2-swt
- items:
- const: nxp,s32g3-swt
- const: nxp,s32g2-swt
reg:
maxItems: 1
clocks:
items:
- description: Counter clock
- description: Module clock
- description: Register clock
clock-names:
items:
- const: counter
- const: module
- const: register
required:
- compatible
- reg
- clocks
- clock-names
unevaluatedProperties: false
examples:
- |
watchdog@40100000 {
compatible = "nxp,s32g2-swt";
reg = <0x40100000 0x1000>;
clocks = <&clks 0x3a>, <&clks 0x3b>, <&clks 0x3c>;
clock-names = "counter", "module", "register";
timeout-sec = <10>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
NXP S32G Software Watchdog Timer
1-14GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 NXP Software Watchdog Timer(SWT)를 정의합니다. 공통 `watchdog.yaml`을 상속하며 관리자는 Daniel Lezcano입니다.
S32G2·S32G3와 세 종류 클록
15-45`compatible`은 `nxp,s32g2-swt`를 직접 사용하거나, S32G3에서 `nxp,s32g3-swt` 뒤에 `nxp,s32g2-swt`를 fallback으로 나열합니다. `reg`는 항목 하나만 받습니다.
`clocks`는 Counter clock, Module clock, Register clock을 이 순서로 제공하며 `clock-names`는 각각 `counter`, `module`, `register`입니다. `compatible`, `reg`, `clocks`, `clock-names`가 모두 필수이고 평가되지 않은 속성은 허용하지 않습니다.
properties:
compatible:
oneOf:
- const: nxp,s32g2-swt
- items:
- const: nxp,s32g3-swt
- const: nxp,s32g2-swt
reg:
maxItems: 1
clocks:
items:
- description: Counter clock
- description: Module clock
- description: Register clock
clock-names:
items:
- const: counter
- const: module
- const: register
required:
- compatible
- reg
- clocks
- clock-names
unevaluatedProperties: false
S32G2 SWT 예제
46-54예제는 주소 `0x40100000`, 크기 `0x1000`인 S32G2 SWT에 세 클록을 `counter`, `module`, `register` 순서로 연결하고 timeout을 10초로 설정합니다.
examples:
- |
watchdog@40100000 {
compatible = "nxp,s32g2-swt";
reg = <0x40100000 0x1000>;
clocks = <&clks 0x3a>, <&clks 0x3b>, <&clks 0x3c>;
clock-names = "counter", "module", "register";
timeout-sec = <10>;
};
요약과 해설
nxp,s32g2-swt.yaml:1-54S32G2·S32G3 SWT의 counter·module·register clock을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, reset, timeout, 예제와 원문 줄 좌표를 원형대로 보존합니다.