Documentation/devicetree/bindings/mtd/st-fsm.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

ST SPI FSM NOR Controller

ST SPI FSM의 register·pinctrl과 boot-device syscfg 바인딩입니다.

Source pathDocumentation/devicetree/bindings/mtd/st-fsm.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

요약과 해설

st-fsm.txt:1-25

Boot register offset과 예상 SPI boot 값을 설명합니다.

2. 영어 원문 전체

번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.

원문 전체 펼치기
1 * ST-Microelectronics SPI FSM Serial (NOR) Flash Controller
2
3 Required properties:
4 - compatible : Should be "st,spi-fsm"
5 - reg : Contains register's location and length.
6 - reg-names : Should contain the reg names "spi-fsm"
7 - interrupts : The interrupt number
8 - pinctrl-0 : Standard Pinctrl phandle (see: pinctrl/pinctrl-bindings.txt)
9
10 Optional properties:
11 - st,syscfg : Phandle to boot-device system configuration registers
12 - st,boot-device-reg : Address of the aforementioned boot-device register(s)
13 - st,boot-device-spi : Expected boot-device value if booted via this device
14
15 Example:
16 spifsm: spifsm@fe902000{
17 compatible = "st,spi-fsm";
18 reg = <0xfe902000 0x1000>;
19 reg-names = "spi-fsm";
20 pinctrl-0 = <&pinctrl_fsm>;
21 st,syscfg = <&syscfg_rear>;
22 st,boot-device-reg = <0x958>;
23 st,boot-device-spi = <0x1a>;
24 };
25
26

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.

ST SPI FSM NOR controller

1-2

이 문서는 STMicroelectronics SPI FSM Serial NOR Flash Controller 바인딩입니다.

Register·pinctrl과 boot-device 확인

3-14

필수 `compatible`은 `st,spi-fsm`, `reg`는 register 위치와 길이, `reg-names`는 `spi-fsm`, `interrupts`는 interrupt 번호입니다. `pinctrl-0`은 `pinctrl/pinctrl-bindings.txt` 형식의 standard pinctrl phandle입니다.

선택 `st,syscfg`는 boot-device system configuration register의 phandle입니다. `st,boot-device-reg`는 해당 boot-device register 주소이고 `st,boot-device-spi`는 이 device로 boot했을 때 예상되는 register 값입니다.

ST FSM boot-device 확인
st,syscfgBoot-device register
st,boot-device-regBoot-device register address
Boot-device registerCompare
st,boot-device-spiExpected SPI boot value

Syscfg register 값을 예상 SPI boot 값과 비교해 boot source를 식별합니다.

ST FSM syscfg 예제

15-25

예제는 `0xfe902000`의 SPI FSM과 pinctrl을 정의하고 rear syscfg의 offset `0x958`에서 값 `0x1a`를 SPI boot indicator로 사용합니다. 원문 예제에는 필수 `interrupts`가 기재되지 않았습니다.

spifsm: spifsm@fe902000{
        compatible         = "st,spi-fsm";
        reg                =  <0xfe902000 0x1000>;
        reg-names          = "spi-fsm";
        pinctrl-0          = <&pinctrl_fsm>;
        st,syscfg           = <&syscfg_rear>;
        st,boot-device-reg = <0x958>;
        st,boot-device-spi = <0x1a>;
};