Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Thermal

Broadcom BCM2835 Thermal Sensor

BCM2835·BCM2836·BCM2837 thermal sensor의 register와 clock binding을 설명합니다.

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

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

요약과 해설

brcm,bcm2835-thermal.yaml:1-47

BCM2835·BCM2836·BCM2837 thermal sensor의 register와 clock binding을 설명합니다. 접을 수 있는 영어 원문 전체는 줄 좌표를 보존하고, 한국어 전문 번역에서는 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/brcm,bcm2835-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Broadcom BCM2835 thermal sensor
8
9 maintainers:
10 - Stefan Wahren <[email protected]>
11
12 allOf:
13 - $ref: thermal-sensor.yaml#
14
15 properties:
16 compatible:
17 enum:
18 - brcm,bcm2835-thermal
19 - brcm,bcm2836-thermal
20 - brcm,bcm2837-thermal
21
22 reg:
23 maxItems: 1
24
25 clocks:
26 maxItems: 1
27
28 "#thermal-sensor-cells":
29 const: 0
30
31 unevaluatedProperties: false
32
33 required:
34 - compatible
35 - reg
36 - clocks
37
38 examples:
39 - |
40 #include <dt-bindings/clock/bcm2835.h>
41
42 thermal@7e212000 {
43 compatible = "brcm,bcm2835-thermal";
44 reg = <0x7e212000 0x8>;
45 clocks = <&clocks BCM2835_CLOCK_TSENS>;
46 #thermal-sensor-cells = <0>;
47 };
48

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.

Broadcom BCM2835 thermal sensor

1-14

이 GPL-2.0-only 또는 BSD-2-Clause YAML 스키마는 Broadcom BCM2835 thermal sensor를 정의하며, 공통 `thermal-sensor.yaml#` 스키마를 포함합니다. Maintainer는 Stefan Wahren입니다.

Compatible, register, clock

15-31

`compatible`은 `brcm,bcm2835-thermal`, `brcm,bcm2836-thermal`, `brcm,bcm2837-thermal` 중 하나입니다. `reg`와 `clocks`는 각각 항목을 하나만 허용하고, `#thermal-sensor-cells`는 인수가 없는 sensor provider를 뜻하는 0으로 고정됩니다.

`unevaluatedProperties: false`이므로 공통 thermal sensor 스키마에서 평가되지 않은 추가 속성은 허용되지 않습니다.

필수 속성

32-37

필수 속성은 `compatible`, `reg`, `clocks`입니다. `#thermal-sensor-cells`는 정의되어 있지만 이 스키마의 `required` 목록에는 포함되지 않습니다.

BCM2835 TSENS 예제

38-47

예제는 `BCM2835_CLOCK_TSENS` clock을 받는 0x7e212000의 8-byte thermal node를 선언하고 0-cell thermal sensor provider로 노출합니다.

#include <dt-bindings/clock/bcm2835.h>

thermal@7e212000 {
  compatible = "brcm,bcm2835-thermal";
  reg = <0x7e212000 0x8>;
  clocks = <&clocks BCM2835_CLOCK_TSENS>;
  #thermal-sensor-cells = <0>;
};