← Documents Documentation/devicetree/bindings/spi/realtek,rtl-spi.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / SPI

Realtek RTL838x/RTL839x SPI controller

RTL838x/RTL839x SPI의 compatible과 register 구성을 설명합니다.

Source pathDocumentation/devicetree/bindings/spi/realtek,rtl-spi.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

realtek,rtl-spi.yaml:1-41

RTL838x/RTL839x SPI의 compatible과 register 구성을 설명합니다. 접을 수 있는 영어 원문 전체와 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·phandle·interrupt·clock/DMA/reset 순서·수치·조건부 제약·예제 코드를 원형대로 유지합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spi/realtek,rtl-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Realtek RTL838x/RTL839x SPI controller
8
9 maintainers:
10 - Bert Vermeulen <[email protected]>
11 - Birger Koblitz <[email protected]>
12
13 allOf:
14 - $ref: spi-controller.yaml#
15
16 properties:
17 compatible:
18 enum:
19 - realtek,rtl8380-spi
20 - realtek,rtl8382-spi
21 - realtek,rtl8391-spi
22 - realtek,rtl8392-spi
23 - realtek,rtl8393-spi
24
25 reg:
26 maxItems: 1
27
28 required:
29 - compatible
30 - reg
31
32 unevaluatedProperties: false
33
34 examples:
35 - |
36 spi: spi@1200 {
37 compatible = "realtek,rtl8382-spi";
38 reg = <0x1200 0x100>;
39 #address-cells = <1>;
40 #size-cells = <0>;
41 };
42

3. 한국어 전문 번역

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

Realtek RTL838x/RTL839x SPI schema

1-15

이 GPL-2.0-only 또는 BSD-2-Clause YAML schema는 Realtek RTL838x/RTL839x SPI controller를 정의합니다. Schema ID는 `http://devicetree.org/schemas/spi/realtek,rtl-spi.yaml#`이며 maintainer는 Bert Vermeulen과 Birger Koblitz입니다.

공통 `spi-controller.yaml#` 속성을 상속합니다.

Compatible과 register

16-27

허용 compatible은 `realtek,rtl8380-spi`, `realtek,rtl8382-spi`, `realtek,rtl8391-spi`, `realtek,rtl8392-spi`, `realtek,rtl8393-spi`입니다. `reg`는 최대 한 항목입니다.

필수 속성과 추가 속성 제한

28-33

필수 속성은 `compatible`과 `reg`입니다. `unevaluatedProperties: false`로 이 schema와 공통 SPI schema에서 평가되지 않은 추가 속성을 금지합니다.

RTL8382 SPI 예제

34-41

예제는 label `spi`를 가진 `spi@1200` controller에 `realtek,rtl8382-spi`, register `<0x1200 0x100>`과 child bus cell 값을 지정합니다.

spi: spi@1200 {
    compatible = "realtek,rtl8382-spi";
    reg = <0x1200 0x100>;
    #address-cells = <1>;
    #size-cells = <0>;
};