PKGBUILDs/core/linux-olinuxino/0001-ARM-imx23-olinuxino-Add-spi-support.patch

62 lines
1.6 KiB
Diff
Raw Normal View History

2013-01-16 23:28:16 +00:00
From 3ff60233d6f7f8fc192e986633f0616d5e67860c Mon Sep 17 00:00:00 2001
From: Fadil Berisha <f.koliqi@gmail.com>
Date: Fri, 26 Oct 2012 20:53:11 -0400
Subject: [PATCH] [SIGNED-OFF] ARM: imx23-olinuxino: Add spi support
imx23-olinuxino board has spi pins exposed on UEXT connector. This
patch add spi support
Signed-off-by: Fadil Berisha <f.koliqi@gmail.com>
---
arch/arm/boot/dts/imx23-olinuxino.dts | 9 +++++++++
arch/arm/boot/dts/imx23.dtsi | 13 +++++++++++++
2 files changed, 22 insertions(+)
diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts
index 384d8b6..6a92fdf0 100644
--- a/arch/arm/boot/dts/imx23-olinuxino.dts
+++ b/arch/arm/boot/dts/imx23-olinuxino.dts
@@ -47,6 +47,15 @@
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 {
diff --git a/arch/arm/boot/dts/imx23.dtsi b/arch/arm/boot/dts/imx23.dtsi
index 6d31aa3..65415c5 100644
--- a/arch/arm/boot/dts/imx23.dtsi
+++ b/arch/arm/boot/dts/imx23.dtsi
@@ -279,6 +279,19 @@
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 {
--
1.7.10