← Documents Documentation/devicetree/bindings/spmi/apple,spmi.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / SPMI

Apple SPMI controller

Apple SPMI의 SoC별 fallback compatible과 PMIC USID 구성을 설명합니다.

Source pathDocumentation/devicetree/bindings/spmi/apple,spmi.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

apple,spmi.yaml:1-57

Apple SPMI의 SoC별 fallback compatible과 PMIC USID 구성을 설명합니다. 접을 수 있는 영어 원문 전체와 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·symbol·source path·수치·예제 코드를 원형대로 유지합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spmi/apple,spmi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Apple SPMI controller
8
9 maintainers:
10 - Sasha Finkelstein <fnkl.kernel@gmail.com>
11
12 description: A SPMI controller present on most Apple SoCs
13
14 allOf:
15 - $ref: spmi.yaml#
16
17 properties:
18 compatible:
19 oneOf:
20 - items:
21 - enum:
22 - apple,t6020-spmi
23 - apple,t8012-spmi
24 - apple,t8015-spmi
25 - const: apple,t8103-spmi
26 - items:
27 - enum:
28 # Do not add additional SoC to this list.
29 - apple,t8103-spmi
30 - apple,t6000-spmi
31 - apple,t8112-spmi
32 - const: apple,spmi
33
34 reg:
35 maxItems: 1
36
37 required:
38 - compatible
39 - reg
40
41 unevaluatedProperties: false
42
43 examples:
44 - |
45 #include <dt-bindings/spmi/spmi.h>
46
47 spmi@920a1300 {
48 compatible = "apple,t6000-spmi", "apple,spmi";
49 reg = <0x920a1300 0x100>;
50 #address-cells = <2>;
51 #size-cells = <0>;
52
53 pmic@f {
54 reg = <0xf SPMI_USID>;
55 /* PMIC-specific properties */
56 };
57 };
58

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Apple SPMI controller schema

1-16

이 GPL-2.0 또는 BSD-2-Clause YAML schema는 대부분의 Apple SoC에 존재하는 SPMI controller를 정의합니다. Maintainer는 Sasha Finkelstein이며 공통 `spmi.yaml#`을 상속합니다.

SoC별 두 fallback 체계

17-33

`apple,t6020-spmi`, `apple,t8012-spmi`, `apple,t8015-spmi`는 각각 첫 compatible로 사용하고 `apple,t8103-spmi`를 fallback으로 함께 지정합니다.

두 번째 체계에서는 `apple,t8103-spmi`, `apple,t6000-spmi`, `apple,t8112-spmi` 중 하나를 첫 compatible로 두고 `apple,spmi`를 fallback으로 지정합니다. 원문 주석은 이 목록에 SoC를 더 추가하지 말라고 명시합니다.

Register와 필수 속성

34-42

`reg`는 최대 한 항목입니다. 필수 속성은 `compatible`, `reg`이며 `unevaluatedProperties: false`로 평가되지 않은 추가 속성을 금지합니다.

Apple T6000 SPMI와 PMIC 예제

43-57

예제의 `spmi@920a1300`은 `apple,t6000-spmi`, `apple,spmi` compatible과 0x100 크기 register 영역을 사용합니다. Child `pmic@f`는 `reg = <0xf SPMI_USID>`로 USID 0xf를 지정합니다.

#include <dt-bindings/spmi/spmi.h>

spmi@920a1300 {
    compatible = "apple,t6000-spmi", "apple,spmi";
    reg = <0x920a1300 0x100>;
    #address-cells = <2>;
    #size-cells = <0>;

    pmic@f {
        reg = <0xf SPMI_USID>;
        /* PMIC-specific properties */
    };
};