ARM: dts: sti: add the spinor controller node within stih407-family
authorAlain Volmat <avolmat@me.com>
Wed, 31 Mar 2021 20:42:25 +0000 (22:42 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 6 Aug 2021 07:30:02 +0000 (09:30 +0200)
The STiH407 family (and further versions STiH410/STiH418) embedded
a serial flash controller allowing fast access to SPI-NOR.
This commit adds the corresponding node, relying on the st-spi-fsm
drivers.

Signed-off-by: Alain Volmat <avolmat@me.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/boot/dts/stih407-family.dtsi

index 23a1746f3baa8354a0a03f38b944461b136c80ee..21f3347a91d6517d93be4e2b185177eaba24e68b 100644 (file)
                        st,lpc-mode = <ST_LPC_MODE_CLKSRC>;
                };
 
+               spifsm: spifsm@9022000{
+                       compatible = "st,spi-fsm";
+                       reg = <0x9022000 0x1000>;
+                       reg-names = "spi-fsm";
+                       clocks = <&clk_s_c0_flexgen CLK_FLASH_PROMIP>;
+                       clock-names = "emi_clk";
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_fsm>;
+                       st,syscfg = <&syscfg_core>;
+                       st,boot-device-reg = <0x8c4>;
+                       st,boot-device-spi = <0x68>;
+
+                       status = "disabled";
+               };
+
                sata0: sata@9b20000 {
                        compatible = "st,ahci";
                        reg = <0x9b20000 0x1000>;