요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/thermal/amlogic,thermal.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Amlogic Thermal
maintainers:
- Guillaume La Roque <glaroque@baylibre.com>
description: Binding for Amlogic Thermal
$ref: thermal-sensor.yaml#
properties:
compatible:
oneOf:
- items:
- enum:
- amlogic,g12a-cpu-thermal
- amlogic,g12a-ddr-thermal
- const: amlogic,g12a-thermal
- const: amlogic,a1-cpu-thermal
reg:
maxItems: 1
interrupts:
maxItems: 1
clocks:
maxItems: 1
power-domains:
maxItems: 1
amlogic,ao-secure:
description: phandle to the ao-secure syscon
$ref: /schemas/types.yaml#/definitions/phandle
'#thermal-sensor-cells':
const: 0
required:
- compatible
- reg
- interrupts
- clocks
- amlogic,ao-secure
unevaluatedProperties: false
examples:
- |
temperature-sensor@ff634800 {
compatible = "amlogic,g12a-cpu-thermal",
"amlogic,g12a-thermal";
reg = <0xff634800 0x50>;
interrupts = <0x0 0x24 0x0>;
clocks = <&clk 164>;
#thermal-sensor-cells = <0>;
amlogic,ao-secure = <&sec_AO>;
};
...
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Amlogic thermal sensor
1-15이 GPL-2.0 또는 BSD-2-Clause YAML schema는 Amlogic Thermal binding을 정의하며 공통 `thermal-sensor.yaml#`을 따릅니다. Maintainer는 Guillaume La Roque입니다.
Compatible과 secure syscon
16-44G12A CPU 또는 DDR sensor는 각각 `amlogic,g12a-cpu-thermal` 또는 `amlogic,g12a-ddr-thermal`을 먼저 두고 `amlogic,g12a-thermal`을 fallback으로 사용합니다. A1 CPU sensor는 `amlogic,a1-cpu-thermal` 단독 compatible입니다.
`reg`, `interrupts`, `clocks`, `power-domains`는 각각 최대 한 항목입니다. `amlogic,ao-secure`는 AO-secure syscon을 가리키는 phandle이고 `#thermal-sensor-cells`는 0입니다.
필수 속성과 추가 속성 제한
45-53필수 속성은 `compatible`, `reg`, `interrupts`, `clocks`, `amlogic,ao-secure`입니다. `unevaluatedProperties: false`로 평가되지 않은 추가 속성을 금지합니다.
G12A CPU sensor 예제
54-65예제는 G12A CPU thermal sensor와 G12A fallback, 0xff634800의 0x50-byte 영역, interrupt 0x24, clock 164, 0-cell sensor와 `sec_AO` phandle을 구성합니다.
temperature-sensor@ff634800 {
compatible = "amlogic,g12a-cpu-thermal",
"amlogic,g12a-thermal";
reg = <0xff634800 0x50>;
interrupts = <0x0 0x24 0x0>;
clocks = <&clk 164>;
#thermal-sensor-cells = <0>;
amlogic,ao-secure = <&sec_AO>;
};
...
요약과 해설
amlogic,thermal.yaml:1-65Amlogic G12A·A1 thermal sensor와 AO-secure syscon 연결을 설명합니다. 접을 수 있는 영어 원문 전체와 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·phandle·clock·interrupt·수치·예제 코드를 원형대로 유지합니다.