← Documents Documentation/devicetree/bindings/spi/marvell,armada-3700-spi.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / SPI

Marvell Armada 3700 SPI controller

Armada 3700 SPI controller의 resource와 chip-select 수를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

marvell,armada-3700-spi.yaml:1-55

Armada 3700 SPI controller의 resource와 chip-select 수를 설명합니다. 접을 수 있는 영어 원문 전체와 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·phandle·수치·예제 코드를 원형대로 유지합니다.

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/marvell,armada-3700-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Marvell Armada 3700 SPI Controller
8
9 description:
10 The SPI controller on Marvell Armada 3700 SoC.
11
12 maintainers:
13 - Kousik Sanagavarapu <[email protected]>
14
15 allOf:
16 - $ref: spi-controller.yaml#
17
18 properties:
19 compatible:
20 const: marvell,armada-3700-spi
21
22 reg:
23 maxItems: 1
24
25 interrupts:
26 maxItems: 1
27
28 clocks:
29 maxItems: 1
30
31 num-cs:
32 maxItems: 1
33
34 required:
35 - compatible
36 - reg
37 - interrupts
38 - clocks
39
40 unevaluatedProperties: false
41
42 examples:
43 - |
44 #include <dt-bindings/interrupt-controller/arm-gic.h>
45
46 spi0: spi@10600 {
47 compatible = "marvell,armada-3700-spi";
48 #address-cells = <1>;
49 #size-cells = <0>;
50 reg = <0x10600 0x5d>;
51 clocks = <&nb_perih_clk 7>;
52 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
53 num-cs = <4>;
54 };
55 ...
56

3. 한국어 전문 번역

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

Armada 3700 SPI schema

1-17

이 GPL-2.0-only 또는 BSD-2-Clause YAML binding은 Marvell Armada 3700 SoC의 SPI controller를 정의합니다. Schema ID는 `http://devicetree.org/schemas/spi/marvell,armada-3700-spi.yaml#`이고 maintainer는 Kousik Sanagavarapu입니다.

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

Controller resource와 chip-select 수

18-33

`compatible`은 `marvell,armada-3700-spi` 상수입니다. `reg`, `interrupts`, `clocks`, `num-cs`는 각각 최대 한 항목을 허용합니다. `num-cs`는 controller가 제공하는 chip-select 수를 지정합니다.

필수 속성과 추가 속성 제한

34-41

필수 속성은 `compatible`, `reg`, `interrupts`, `clocks`입니다. `unevaluatedProperties: false`이므로 상속된 공통 속성을 제외한 미정의 속성은 허용하지 않습니다.

Armada 3700 SPI0 예제

42-55

예제는 address `0x10600`, register 길이 `0x5d`, north-bridge peripheral clock 7, GIC SPI interrupt 0을 연결하고 chip-select 4개를 선언합니다.

#include <dt-bindings/interrupt-controller/arm-gic.h>

spi0: spi@10600 {
    compatible = "marvell,armada-3700-spi";
    #address-cells = <1>;
    #size-cells = <0>;
    reg = <0x10600 0x5d>;
    clocks = <&nb_perih_clk 7>;
    interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
    num-cs = <4>;
};