ARM: imx23-olinuxino: Add spi support
authorFadil Berisha <f.koliqi@gmail.com>
Sat, 17 Nov 2012 21:52:32 +0000 (16:52 -0500)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 20 Nov 2012 13:46:14 +0000 (21:46 +0800)
imx23-olinuxino board has spi pins exposed on external connector.
This patch add spi support.

Signed-off-by: Fadil Berisha <f.koliqi@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx23-olinuxino.dts
arch/arm/boot/dts/imx23.dtsi

index 8bd56fc7e194d0059578816efcc201807888cca7..7c43b8e70b9fcb1c29da27a059f658440ddec246 100644 (file)
                                        fsl,pull-up = <0>;
                                };
                        };
+
+                       ssp1: ssp@80034000 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               compatible = "fsl,imx23-spi";
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&spi2_pins_a>;
+                               status = "okay";
+                       };
                };
 
                apbx@80040000 {
index 9ca4ca70c1bcb8f680fde33b924045eb6666839d..83f0019cf20fb50a0f822c887955a12fb7da7215 100644 (file)
                                        fsl,voltage = <1>;
                                        fsl,pull-up = <0>;
                                };
+
+                               spi2_pins_a: spi2@0 {
+                                       reg = <0>;
+                                       fsl,pinmux-ids = <
+                                               0x0182 /* MX23_PAD_GPMI_WRN__SSP2_SCK */
+                                               0x0142 /* MX23_PAD_GPMI_RDY1__SSP2_CMD */
+                                               0x0002 /* MX23_PAD_GPMI_D00__SSP2_DATA0 */
+                                               0x0032 /* MX23_PAD_GPMI_D03__SSP2_DATA3 */
+                                       >;
+                                       fsl,drive-strength = <1>;
+                                       fsl,voltage = <1>;
+                                       fsl,pull-up = <1>;
+                               };
                        };
 
                        digctl@8001c000 {