요약·해설과 원문, 전문 번역을 서로 분리했습니다. 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/airoha,en7581-thermal.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Airoha EN7581 Thermal Sensor and Monitor
maintainers:
- Christian Marangi <[email protected]>
properties:
compatible:
const: airoha,en7581-thermal
reg:
maxItems: 1
interrupts:
maxItems: 1
airoha,chip-scu:
description: phandle to the chip SCU syscon
$ref: /schemas/types.yaml#/definitions/phandle
'#thermal-sensor-cells':
const: 0
required:
- compatible
- reg
- interrupts
- airoha,chip-scu
additionalProperties: false
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
thermal-sensor@1efbd800 {
compatible = "airoha,en7581-thermal";
reg = <0x1efbd000 0xd5c>;
interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
airoha,chip-scu = <&chip_scu>;
#thermal-sensor-cells = <0>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Airoha EN7581 thermal sensor
1-11이 GPL-2.0 또는 BSD-2-Clause YAML schema는 Airoha EN7581 Thermal Sensor and Monitor를 정의합니다. Maintainer는 Christian Marangi입니다.
Register·interrupt와 SCU phandle
12-28`compatible`은 `airoha,en7581-thermal`입니다. `reg`와 `interrupts`는 각각 최대 한 항목입니다. `airoha,chip-scu`는 chip SCU syscon을 가리키는 `phandle`입니다. `#thermal-sensor-cells`는 0입니다.
필수 속성과 추가 속성 제한
29-36필수 속성은 `compatible`, `reg`, `interrupts`, `airoha,chip-scu`입니다. `additionalProperties: false`로 정의하지 않은 추가 속성을 금지합니다.
EN7581 sensor 예제
37-48예제는 0x1efbd000부터 0xd5c 크기의 register 영역, GIC SPI 23 level-high interrupt, `chip_scu` phandle과 0-cell thermal sensor를 구성합니다.
#include <dt-bindings/interrupt-controller/arm-gic.h>
thermal-sensor@1efbd800 {
compatible = "airoha,en7581-thermal";
reg = <0x1efbd000 0xd5c>;
interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
airoha,chip-scu = <&chip_scu>;
#thermal-sensor-cells = <0>;
};
요약과 해설
airoha,en7581-thermal.yaml:1-48EN7581 sensor의 interrupt와 chip SCU 연결을 설명합니다. 접을 수 있는 영어 원문 전체와 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·phandle·clock·interrupt·수치·예제 코드를 원형대로 유지합니다.