ARM: STi: stih416: Add support for the FSM Serial Flash Controller
authorLee Jones <lee.jones@linaro.org>
Fri, 21 Mar 2014 11:33:07 +0000 (11:33 +0000)
committerArnd Bergmann <arnd@arndb.de>
Thu, 27 Mar 2014 01:01:05 +0000 (02:01 +0100)
Here we add the necessary device nodes required for successful device
probing and Pinctrl setup for the FSM when booting on an STiH416 (Orly2).

Acked-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Acked-by Angus Clark <angus.clark@st.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/stih416-pinctrl.dtsi
arch/arm/boot/dts/stih416.dtsi

index e7f8b5f4460aed87c2f3254df51a2612125d76b7..aeea304086eb3b57c5682539643f0d6ca4540c0d 100644 (file)
                                        };
                                };
                        };
+
+                       fsm {
+                               pinctrl_fsm: fsm {
+                                       st,pins {
+                                               spi-fsm-clk  = <&PIO12 2 ALT1 OUT>;
+                                               spi-fsm-cs   = <&PIO12 3 ALT1 OUT>;
+                                               spi-fsm-mosi = <&PIO12 4 ALT1 OUT>;
+                                               spi-fsm-miso = <&PIO12 5 ALT1 IN>;
+                                               spi-fsm-hol  = <&PIO12 6 ALT1 OUT>;
+                                               spi-fsm-wp   = <&PIO12 7 ALT1 OUT>;
+                                       };
+                               };
+                       };
                };
 
                pin-controller-rear {
index 8299a7b8fee8de0c77dae225c7e63637173092db..78746d20382e3b653a1489decaf94602007b6e21 100644 (file)
                        resets          = <&softreset STIH416_IRB_SOFTRESET>;
                };
 
+               /* FSM */
+               spifsm: spifsm@fe902000 {
+                       compatible         = "st,spi-fsm";
+                       reg                = <0xfe902000 0x1000>;
+                       pinctrl-0          = <&pinctrl_fsm>;
+
+                       st,syscfg          = <&syscfg_rear>;
+                       st,boot-device-reg = <0x958>;
+                       st,boot-device-spi = <0x1a>;
+
+                       status = "disabled";
+               };
        };
 };