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

Linux 6.18.37 · Devicetree Bindings / Thermal

HiSilicon Temperature Sensor

HiSilicon TSENSOR의 register·clock·interrupt와 sensor specifier를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

hisilicon,tsensor.yaml:1-57

HiSilicon TSENSOR의 register·clock·interrupt와 sensor specifier를 설명합니다. 접을 수 있는 영어 원문 전체는 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·phandle·register·interrupt·수치·예제 코드를 원형대로 유지합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/thermal/hisilicon,tsensor.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Temperature Sensor on HiSilicon SoCs
8
9 maintainers:
10 - Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>
11
12 allOf:
13 - $ref: thermal-sensor.yaml
14
15 properties:
16 compatible:
17 enum:
18 - hisilicon,tsensor
19 - hisilicon,hi3660-tsensor
20
21 reg:
22 maxItems: 1
23
24 clocks:
25 maxItems: 1
26
27 clock-names:
28 items:
29 - const: thermal_clk
30
31 interrupts:
32 maxItems: 1
33
34 '#thermal-sensor-cells':
35 const: 1
36
37 required:
38 - compatible
39 - reg
40 - interrupts
41 - '#thermal-sensor-cells'
42
43 unevaluatedProperties: false
44
45 examples:
46 - |
47 #include <dt-bindings/clock/hi6220-clock.h>
48 #include <dt-bindings/interrupt-controller/arm-gic.h>
49
50 temperature-sensor@f7030700 {
51 compatible = "hisilicon,tsensor";
52 reg = <0xf7030700 0x1000>;
53 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
54 clocks = <&sys_ctrl HI6220_TSENSOR_CLK>;
55 clock-names = "thermal_clk";
56 #thermal-sensor-cells = <1>;
57 };
58

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

HiSilicon SoC temperature sensor

1-14

이 GPL-2.0-only 또는 BSD-2-Clause YAML 스키마는 HiSilicon SoC의 temperature sensor를 정의하고 공통 `thermal-sensor.yaml` 스키마를 포함합니다. Maintainer는 Abdulrasaq Lawani입니다.

Register, clock, interrupt

15-36

`compatible`은 `hisilicon,tsensor` 또는 `hisilicon,hi3660-tsensor`입니다. `reg`, `clocks`, `interrupts`는 각각 최대 한 항목을 허용합니다. `clock-names`의 유일한 항목은 `thermal_clk`이고 `#thermal-sensor-cells`는 sensor specifier 하나를 받도록 1입니다.

필수 속성

37-44

필수 속성은 `compatible`, `reg`, `interrupts`, `#thermal-sensor-cells`입니다. Clock 속성은 정의되어 있지만 필수 목록에는 없습니다. `unevaluatedProperties: false`로 추가 속성을 제한합니다.

HI6220 TSENSOR 예제

45-57

예제는 0xf7030700의 0x1000-byte register 범위, GIC SPI 7 level-high interrupt, `HI6220_TSENSOR_CLK` clock과 `thermal_clk` 이름을 지정하고 1-cell thermal sensor provider로 노출합니다.

#include <dt-bindings/clock/hi6220-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

temperature-sensor@f7030700 {
    compatible = "hisilicon,tsensor";
    reg = <0xf7030700 0x1000>;
    interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&sys_ctrl HI6220_TSENSOR_CLK>;
    clock-names = "thermal_clk";
    #thermal-sensor-cells = <1>;
};