요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/spmi/hisilicon,hisi-spmi-controller.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: HiSilicon SPMI controller
maintainers:
- Mauro Carvalho Chehab <[email protected]>
description: |
The HiSilicon SPMI BUS controller is found on some Kirin-based designs.
It is a MIPI System Power Management (SPMI) controller.
The PMIC part is provided by
Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml.
allOf:
- $ref: spmi.yaml#
properties:
$nodename:
pattern: "spmi@[0-9a-f]"
compatible:
const: hisilicon,kirin970-spmi-controller
reg:
maxItems: 1
hisilicon,spmi-channel:
$ref: /schemas/types.yaml#/definitions/uint32
description: |
number of the Kirin 970 SPMI channel where the SPMI devices are connected.
required:
- compatible
- reg
- hisilicon,spmi-channel
patternProperties:
"@[0-9a-f]$":
type: object
description: |
PMIC properties, which are specific to the used SPMI PMIC device(s).
When used in combination with HiSilicon 6421v600, the properties
are documented at
Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
unevaluatedProperties: false
examples:
- |
#include <dt-bindings/spmi/spmi.h>
spmi@fff24000 {
compatible = "hisilicon,kirin970-spmi-controller";
reg = <0xfff24000 0x1000>;
#address-cells = <2>;
#size-cells = <0>;
hisilicon,spmi-channel = <2>;
pmic@0 {
reg = <0 SPMI_USID>;
/* pmic properties */
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
HiSilicon Kirin SPMI controller
1-21이 GPL-2.0 YAML schema는 일부 Kirin 기반 설계의 HiSilicon MIPI System Power Management Interface(SPMI) bus controller를 정의합니다. PMIC 부분은 `Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml`에서 제공하며 공통 `spmi.yaml#`을 상속합니다. Maintainer는 Mauro Carvalho Chehab입니다.
Node 이름과 Kirin 970 channel
22-42Node name은 `spmi@[0-9a-f]` pattern을 따라야 합니다. `compatible`은 `hisilicon,kirin970-spmi-controller`, `reg`는 최대 한 항목입니다.
`hisilicon,spmi-channel`은 SPMI device가 연결된 Kirin 970 SPMI channel 번호를 지정하는 `uint32`입니다. 필수 속성은 `compatible`, `reg`, `hisilicon,spmi-channel`입니다.
PMIC child node pattern
43-54이름이 `@[0-9a-f]$`로 끝나는 child object는 사용한 SPMI PMIC device별 속성을 담습니다. HiSilicon 6421v600과 함께 사용할 때의 속성은 `Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml`에 정의됩니다. `unevaluatedProperties: false`로 그 밖의 추가 속성을 금지합니다.
Kirin 970 channel 2와 PMIC 예제
55-70예제의 `spmi@fff24000`은 `hisilicon,kirin970-spmi-controller`, 0x1000 크기 register 영역과 SPMI channel 2를 사용합니다. Child `pmic@0`은 `reg = <0 SPMI_USID>`입니다.
#include <dt-bindings/spmi/spmi.h>
spmi@fff24000 {
compatible = "hisilicon,kirin970-spmi-controller";
reg = <0xfff24000 0x1000>;
#address-cells = <2>;
#size-cells = <0>;
hisilicon,spmi-channel = <2>;
pmic@0 {
reg = <0 SPMI_USID>;
/* pmic properties */
};
};
요약과 해설
hisilicon,hisi-spmi-controller.yaml:1-70Kirin 970 SPMI channel과 HiSilicon PMIC child node pattern을 설명합니다. 접을 수 있는 영어 원문 전체와 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·symbol·source path·수치·예제 코드를 원형대로 유지합니다.