← Documents Documentation/devicetree/bindings/spi/socionext,f-ospi.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / SPI

Socionext F_OSPI controller

F_OSPI의 register·clock·chip-select와 NOR flash 예제를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

socionext,f-ospi.yaml:1-57

F_OSPI의 register·clock·chip-select와 NOR flash 예제를 설명합니다. 접을 수 있는 영어 원문 전체와 줄 좌표를 보존하고, 한국어 전문 번역에서는 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/socionext,f-ospi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Socionext F_OSPI controller
8
9 description: |
10 The Socionext F_OSPI is a controller used to interface with flash
11 memories using the SPI communication interface.
12
13 maintainers:
14 - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
15
16 allOf:
17 - $ref: spi-controller.yaml#
18
19 properties:
20 compatible:
21 const: socionext,f-ospi
22
23 reg:
24 maxItems: 1
25
26 clocks:
27 maxItems: 1
28
29 num-cs:
30 minimum: 1
31 maximum: 4
32
33 required:
34 - compatible
35 - reg
36 - clocks
37 - "#address-cells"
38 - "#size-cells"
39
40 unevaluatedProperties: false
41
42 examples:
43 - |
44 ospi0: spi@80000000 {
45 compatible = "socionext,f-ospi";
46 reg = <0x80000000 0x1000>;
47 clocks = <&clks 0>;
48 num-cs = <1>;
49 #address-cells = <1>;
50 #size-cells = <0>;
51
52 flash@0 {
53 compatible = "spansion,s25fl128s", "jedec,spi-nor";
54 reg = <0>;
55 spi-max-frequency = <50000000>;
56 };
57 };
58

3. 한국어 전문 번역

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

Socionext F_OSPI schema

1-18

이 GPL-2.0-only 또는 BSD-2-Clause YAML schema는 Socionext F_OSPI controller를 정의합니다. F_OSPI는 SPI communication interface를 사용해 flash memory와 연결하는 controller입니다. Schema ID는 `http://devicetree.org/schemas/spi/socionext,f-ospi.yaml#`, maintainer는 Kunihiko Hayashi입니다.

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

Compatible, register, clock과 chip-select

19-32

`compatible`은 `socionext,f-ospi`로 고정됩니다. `reg`와 `clocks`는 각각 최대 한 항목입니다. `num-cs` 범위는 1~4입니다.

필수 속성과 추가 속성 제한

33-41

필수 속성은 `compatible`, `reg`, `clocks`, `#address-cells`, `#size-cells`입니다. `unevaluatedProperties: false`로 평가되지 않은 추가 속성을 금지합니다.

F_OSPI와 50MHz NOR 예제

42-57

예제의 `ospi0: spi@80000000`은 register 길이 `0x1000`, clock 0과 chip-select 하나를 사용합니다. `flash@0`은 Spansion S25FL128S와 JEDEC SPI NOR compatible을 함께 사용하고 최대 주파수는 `50000000`Hz입니다.

ospi0: spi@80000000 {
    compatible = "socionext,f-ospi";
    reg = <0x80000000 0x1000>;
    clocks = <&clks 0>;
    num-cs = <1>;
    #address-cells = <1>;
    #size-cells = <0>;

    flash@0 {
        compatible = "spansion,s25fl128s", "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <50000000>;
    };
};