요약·해설과 원문, 전문 번역을 서로 분리했습니다. 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/thermal/brcm,bcm2835-thermal.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Broadcom BCM2835 thermal sensor
maintainers:
- Stefan Wahren <stefan.wahren@i2se.com>
allOf:
- $ref: thermal-sensor.yaml#
properties:
compatible:
enum:
- brcm,bcm2835-thermal
- brcm,bcm2836-thermal
- brcm,bcm2837-thermal
reg:
maxItems: 1
clocks:
maxItems: 1
"#thermal-sensor-cells":
const: 0
unevaluatedProperties: false
required:
- compatible
- reg
- clocks
examples:
- |
#include <dt-bindings/clock/bcm2835.h>
thermal@7e212000 {
compatible = "brcm,bcm2835-thermal";
reg = <0x7e212000 0x8>;
clocks = <&clocks BCM2835_CLOCK_TSENS>;
#thermal-sensor-cells = <0>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 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>;
};
요약과 해설
brcm,bcm2835-thermal.yaml:1-47BCM2835·BCM2836·BCM2837 thermal sensor의 register와 clock binding을 설명합니다. 접을 수 있는 영어 원문 전체는 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·phandle·register·interrupt·수치·예제 코드를 원형대로 유지합니다.