← Documents Documentation/devicetree/bindings/mtd/hisilicon,fmc-spi-nor.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

HiSilicon FMC SPI-NOR

HiSilicon FMC의 control·memory window와 SPI-NOR child 바인딩입니다.

Source pathDocumentation/devicetree/bindings/mtd/hisilicon,fmc-spi-nor.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

hisilicon,fmc-spi-nor.txt:1-24

Hi3519 controller의 두 register 범위와 CS0 flash를 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 HiSilicon SPI-NOR Flash Controller
2
3 Required properties:
4 - compatible : Should be "hisilicon,fmc-spi-nor" and one of the following strings:
5 "hisilicon,hi3519-spi-nor"
6 - address-cells : Should be 1.
7 - size-cells : Should be 0.
8 - reg : Offset and length of the register set for the controller device.
9 - reg-names : Must include the following two entries: "control", "memory".
10 - clocks : handle to spi-nor flash controller clock.
11
12 Example:
13 spi-nor-controller@10000000 {
14 compatible = "hisilicon,hi3519-spi-nor", "hisilicon,fmc-spi-nor";
15 #address-cells = <1>;
16 #size-cells = <0>;
17 reg = <0x10000000 0x1000>, <0x14000000 0x1000000>;
18 reg-names = "control", "memory";
19 clocks = <&clock HI3519_FMC_CLK>;
20 flash@0 {
21 compatible = "jedec,spi-nor";
22 reg = <0>;
23 };
24 };
25

3. 한국어 전문 번역

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

HiSilicon SPI-NOR Flash Controller

1-2

이 문서는 HiSilicon FMC SPI-NOR flash controller 바인딩입니다.

Control·memory window와 clock

3-11

`compatible`은 `hisilicon,fmc-spi-nor`와 SoC별 문자열 중 하나를 함께 사용하며, 현재 목록은 `hisilicon,hi3519-spi-nor`입니다.

`#address-cells`는 1, `#size-cells`는 0입니다. `reg`는 controller register set의 offset과 길이를 담고 `reg-names`에는 `control`, `memory` 두 항목이 반드시 있어야 합니다. `clocks`는 SPI-NOR controller clock의 handle입니다.

HiSilicon FMC register window
reg-name역할
controlFMC controller register
memorySPI-NOR memory window

Controller 제어 register와 flash memory mapping을 구분합니다.

Hi3519 SPI-NOR 예제

12-24

예제는 `0x10000000`의 control 범위와 `0x14000000`의 16MB memory window를 정의하고 `HI3519_FMC_CLK`를 연결합니다. CS0의 child는 generic `jedec,spi-nor` device입니다.

spi-nor-controller@10000000 {
        compatible = "hisilicon,hi3519-spi-nor", "hisilicon,fmc-spi-nor";
        #address-cells = <1>;
        #size-cells = <0>;
        reg = <0x10000000 0x1000>, <0x14000000 0x1000000>;
        reg-names = "control", "memory";
        clocks = <&clock HI3519_FMC_CLK>;
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
        };
};