요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
# Copyright 2021 Linaro Ltd.
%YAML 1.2
---
$id: http://devicetree.org/schemas/thermal/qcom-lmh.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Qualcomm Limits Management Hardware(LMh)
maintainers:
- Thara Gopinath <[email protected]>
description:
Limits Management Hardware(LMh) is a hardware infrastructure on some
Qualcomm SoCs that can enforce temperature and current limits as
programmed by software for certain IPs like CPU.
properties:
compatible:
oneOf:
- enum:
- qcom,sc8180x-lmh
- qcom,sdm845-lmh
- qcom,sm8150-lmh
- items:
- const: qcom,qcm2290-lmh
- const: qcom,sm8150-lmh
reg:
items:
- description: core registers
interrupts:
maxItems: 1
'#interrupt-cells':
const: 1
interrupt-controller: true
cpus:
description:
phandle of the first cpu in the LMh cluster
maxItems: 1
qcom,lmh-temp-arm-millicelsius:
description:
An integer expressing temperature threshold at which the LMh thermal
FSM is engaged.
qcom,lmh-temp-low-millicelsius:
description:
An integer expressing temperature threshold at which the state machine
will attempt to remove frequency throttling.
qcom,lmh-temp-high-millicelsius:
description:
An integer expressing temperature threshold at which the state machine
will attempt to throttle the frequency.
required:
- compatible
- reg
- interrupts
- '#interrupt-cells'
- interrupt-controller
- cpus
- qcom,lmh-temp-arm-millicelsius
- qcom,lmh-temp-low-millicelsius
- qcom,lmh-temp-high-millicelsius
additionalProperties: false
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
lmh@17d70800 {
compatible = "qcom,sdm845-lmh";
reg = <0x17d70800 0x400>;
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
cpus = <&CPU4>;
qcom,lmh-temp-arm-millicelsius = <65000>;
qcom,lmh-temp-low-millicelsius = <94500>;
qcom,lmh-temp-high-millicelsius = <95000>;
interrupt-controller;
#interrupt-cells = <1>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Qualcomm Limits Management Hardware
1-17이 GPL-2.0-only 또는 BSD-2-Clause YAML 스키마는 Qualcomm LMh(Limits Management Hardware)를 정의합니다. LMh는 일부 Qualcomm SoC에서 CPU 같은 IP에 대해 software가 programming한 temperature·current limit을 hardware로 강제합니다. Maintainer는 Thara Gopinath입니다.
Compatible, interrupt controller, CPU cluster
18-45단독 `compatible`은 `qcom,sc8180x-lmh`, `qcom,sdm845-lmh`, `qcom,sm8150-lmh` 중 하나입니다. QCM2290은 `qcom,qcm2290-lmh` 뒤에 `qcom,sm8150-lmh` fallback을 둡니다. `reg`는 core register 범위 하나이고 `interrupts`는 최대 한 항목입니다.
LMh는 `#interrupt-cells = 1`인 `interrupt-controller`입니다. `cpus`는 LMh cluster의 첫 CPU를 가리키는 phandle 한 항목입니다.
Thermal FSM 세 threshold
46-60`qcom,lmh-temp-arm-millicelsius`는 LMh thermal FSM이 engage되는 temperature threshold입니다. `qcom,lmh-temp-low-millicelsius`는 state machine이 frequency throttling 제거를 시도하는 threshold이고, `qcom,lmh-temp-high-millicelsius`는 frequency throttling을 시도하는 threshold입니다. 세 값 모두 millidegree Celsius 정수입니다.
필수 속성과 제한
61-73`compatible`, `reg`, `interrupts`, `#interrupt-cells`, `interrupt-controller`, `cpus`와 세 temperature threshold가 모두 필수입니다. `additionalProperties: false`로 추가 속성을 금지합니다.
SDM845 LMh 예제
74-88예제는 0x17d70800의 0x400-byte core register, GIC SPI 33 level-high interrupt와 cluster 첫 CPU인 `CPU4`를 지정합니다. FSM arm은 65000, throttling 제거 시도는 94500, throttling 시도는 95000 millidegree로 설정하고 1-cell interrupt controller로 노출합니다.
#include <dt-bindings/interrupt-controller/arm-gic.h>
lmh@17d70800 {
compatible = "qcom,sdm845-lmh";
reg = <0x17d70800 0x400>;
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
cpus = <&CPU4>;
qcom,lmh-temp-arm-millicelsius = <65000>;
qcom,lmh-temp-low-millicelsius = <94500>;
qcom,lmh-temp-high-millicelsius = <95000>;
interrupt-controller;
#interrupt-cells = <1>;
};
요약과 해설
qcom-lmh.yaml:1-88Qualcomm LMh thermal FSM의 arm·low·high threshold와 interrupt controller를 설명합니다. 접을 수 있는 영어 원문 전체는 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·phandle·register·interrupt·수치·예제 코드를 원형대로 유지합니다.