← Documents Documentation/devicetree/bindings/spi/renesas,hspi.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / SPI

Renesas HSPI controller

R-Car HSPI의 compatible, interrupt·clock·power-domain 구성을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

renesas,hspi.yaml:1-58

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

2. 영어 원문 전체

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

원문 전체 펼치기
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spi/renesas,hspi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Renesas HSPI
8
9 maintainers:
10 - Geert Uytterhoeven <geert+renesas@glider.be>
11
12 allOf:
13 - $ref: spi-controller.yaml#
14
15 properties:
16 compatible:
17 items:
18 - enum:
19 - renesas,hspi-r8a7778 # R-Car M1A
20 - renesas,hspi-r8a7779 # R-Car H1
21 - const: renesas,hspi
22
23 reg:
24 maxItems: 1
25
26 interrupts:
27 maxItems: 1
28
29 clocks:
30 maxItems: 1
31
32 power-domains:
33 maxItems: 1
34
35 required:
36 - compatible
37 - reg
38 - interrupts
39 - clocks
40 - '#address-cells'
41 - '#size-cells'
42
43 unevaluatedProperties: false
44
45 examples:
46 - |
47 #include <dt-bindings/clock/r8a7778-clock.h>
48 #include <dt-bindings/interrupt-controller/irq.h>
49
50 hspi0: spi@fffc7000 {
51 compatible = "renesas,hspi-r8a7778", "renesas,hspi";
52 reg = <0xfffc7000 0x18>;
53 interrupts = <0 63 IRQ_TYPE_LEVEL_HIGH>;
54 clocks = <&mstp0_clks R8A7778_CLK_HSPI>;
55 power-domains = <&cpg_clocks>;
56 #address-cells = <1>;
57 #size-cells = <0>;
58 };
59

3. 한국어 전문 번역

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

Renesas HSPI schema

1-14

이 GPL-2.0 YAML schema는 Renesas HSPI controller를 정의합니다. Schema ID는 `http://devicetree.org/schemas/spi/renesas,hspi.yaml#`, maintainer는 Geert Uytterhoeven입니다.

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

R-Car compatible과 자원

15-34

`compatible` 배열의 첫 항목은 R-Car M1A용 `renesas,hspi-r8a7778` 또는 R-Car H1용 `renesas,hspi-r8a7779`이고, 둘째 항목은 fallback `renesas,hspi`입니다.

`reg`, `interrupts`, `clocks`, `power-domains`는 각각 최대 한 항목입니다.

필수 속성과 추가 속성 제한

35-44

필수 속성은 `compatible`, `reg`, `interrupts`, `clocks`, `#address-cells`, `#size-cells`입니다. `power-domains`는 선택 사항이며 `unevaluatedProperties: false`로 평가되지 않은 추가 속성을 금지합니다.

R8A7778 HSPI 예제

45-58

예제의 `hspi0: spi@fffc7000` controller는 `renesas,hspi-r8a7778`과 fallback `renesas,hspi`, register `<0xfffc7000 0x18>`, interrupt 63, `R8A7778_CLK_HSPI` clock과 CPG power domain을 사용합니다.

#include <dt-bindings/clock/r8a7778-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>

hspi0: spi@fffc7000 {
    compatible = "renesas,hspi-r8a7778", "renesas,hspi";
    reg = <0xfffc7000 0x18>;
    interrupts = <0 63 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&mstp0_clks R8A7778_CLK_HSPI>;
    power-domains = <&cpg_clocks>;
    #address-cells = <1>;
    #size-cells = <0>;
};