← Documents Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Thermal

Amlogic Thermal Sensor

Amlogic G12A·A1 thermal sensor와 AO-secure syscon 연결을 설명합니다.

Source pathDocumentation/devicetree/bindings/thermal/amlogic,thermal.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

amlogic,thermal.yaml:1-65

Amlogic G12A·A1 thermal sensor와 AO-secure syscon 연결을 설명합니다. 접을 수 있는 영어 원문 전체와 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·phandle·clock·interrupt·수치·예제 코드를 원형대로 유지합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/thermal/amlogic,thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Amlogic Thermal
8
9 maintainers:
10 - Guillaume La Roque <glaroque@baylibre.com>
11
12 description: Binding for Amlogic Thermal
13
14 $ref: thermal-sensor.yaml#
15
16 properties:
17 compatible:
18 oneOf:
19 - items:
20 - enum:
21 - amlogic,g12a-cpu-thermal
22 - amlogic,g12a-ddr-thermal
23 - const: amlogic,g12a-thermal
24 - const: amlogic,a1-cpu-thermal
25
26 reg:
27 maxItems: 1
28
29 interrupts:
30 maxItems: 1
31
32 clocks:
33 maxItems: 1
34
35 power-domains:
36 maxItems: 1
37
38 amlogic,ao-secure:
39 description: phandle to the ao-secure syscon
40 $ref: /schemas/types.yaml#/definitions/phandle
41
42 '#thermal-sensor-cells':
43 const: 0
44
45 required:
46 - compatible
47 - reg
48 - interrupts
49 - clocks
50 - amlogic,ao-secure
51
52 unevaluatedProperties: false
53
54 examples:
55 - |
56 temperature-sensor@ff634800 {
57 compatible = "amlogic,g12a-cpu-thermal",
58 "amlogic,g12a-thermal";
59 reg = <0xff634800 0x50>;
60 interrupts = <0x0 0x24 0x0>;
61 clocks = <&clk 164>;
62 #thermal-sensor-cells = <0>;
63 amlogic,ao-secure = <&sec_AO>;
64 };
65 ...
66

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-44

G12A 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>;
    };
...