요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
* ST-Microelectronics SPI FSM Serial (NOR) Flash Controller
Required properties:
- compatible : Should be "st,spi-fsm"
- reg : Contains register's location and length.
- reg-names : Should contain the reg names "spi-fsm"
- interrupts : The interrupt number
- pinctrl-0 : Standard Pinctrl phandle (see: pinctrl/pinctrl-bindings.txt)
Optional properties:
- st,syscfg : Phandle to boot-device system configuration registers
- st,boot-device-reg : Address of the aforementioned boot-device register(s)
- st,boot-device-spi : Expected boot-device value if booted via this device
Example:
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>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 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 값입니다.
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>;
};
요약과 해설
st-fsm.txt:1-25Boot register offset과 예상 SPI boot 값을 설명합니다.