aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mxs/patches-3.13/120-dt-add-i2c.patch
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2014-02-05 13:05:39 +0000
committerZoltan Herpai <wigyori@uid0.hu>2014-02-05 13:05:39 +0000
commite65614064231bd19306b2402f1a732ed8a96016e (patch)
treee7adbea89cd372d0be2770fa0e4b5b1b50759086 /target/linux/mxs/patches-3.13/120-dt-add-i2c.patch
parent0c9ad86a1364b5acb8bf88932276f4717a4a3662 (diff)
downloadupstream-e65614064231bd19306b2402f1a732ed8a96016e.tar.gz
upstream-e65614064231bd19306b2402f1a732ed8a96016e.tar.bz2
upstream-e65614064231bd19306b2402f1a732ed8a96016e.zip
mxs: initial 3.13 support
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39476
Diffstat (limited to 'target/linux/mxs/patches-3.13/120-dt-add-i2c.patch')
-rw-r--r--target/linux/mxs/patches-3.13/120-dt-add-i2c.patch81
1 files changed, 81 insertions, 0 deletions
diff --git a/target/linux/mxs/patches-3.13/120-dt-add-i2c.patch b/target/linux/mxs/patches-3.13/120-dt-add-i2c.patch
new file mode 100644
index 0000000000..4e8986d4bb
--- /dev/null
+++ b/target/linux/mxs/patches-3.13/120-dt-add-i2c.patch
@@ -0,0 +1,81 @@
+diff -ruN old/arch/arm/boot/dts/imx23.dtsi new/arch/arm/boot/dts/imx23.dtsi
+--- old/arch/arm/boot/dts/imx23.dtsi 2013-11-19 11:52:31.000000000 +0100
++++ new/arch/arm/boot/dts/imx23.dtsi 2013-11-19 13:08:47.787452900 +0100
+@@ -145,6 +145,39 @@
+ fsl,pull-up = <0>;
+ };
+
++ i2c0_pins_a: i2c0@0 {
++ reg = <0>;
++ fsl,pinmux-ids = <
++ 0x01e0 /* MX23_PAD_I2C_SCL__I2C_SCL */
++ 0x01f0 /* MX23_PAD_I2C_SDA__I2C_SDA */
++ >;
++ fsl,drive-strength = <1>;
++ fsl,voltage = <1>;
++ fsl,pull-up = <1>;
++ };
++
++ i2c1_pins_a: i2c1@0 {
++ reg = <0>;
++ fsl,pinmux-ids = <
++ 0x1171 /* MX23_PAD_LCD_ENABLE__I2C_SCL */
++ 0x1181 /* MX23_PAD_LCD_HSYNC__I2C_SDA */
++ >;
++ fsl,drive-strength = <1>;
++ fsl,voltage = <1>;
++ fsl,pull-up = <1>;
++ };
++
++ i2c2_pins_a: i2c2@0 {
++ reg = <0>;
++ fsl,pinmux-ids = <
++ 0x2031 /* MX23_PAD_SSP1_DATA1__I2C_SCL */
++ 0x2041 /* MX23_PAD_SSP1_DATA2__I2C_SDA */
++ >;
++ fsl,drive-strength = <1>;
++ fsl,voltage = <1>;
++ fsl,pull-up = <1>;
++ };
++
+ auart0_pins_a: auart0@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+@@ -441,7 +474,12 @@
+ };
+
+ i2c@80058000 {
++ #address-cells = <1>;
++ #size-cells = <0>;
++ compatible = "fsl,imx23-i2c";
+ reg = <0x80058000 0x2000>;
++ interrupts = <27>;
++ clock-frequency = <100000>;
+ dmas = <&dma_apbx 3>;
+ dma-names = "rx-tx";
+ status = "disabled";
+diff -ruN old/arch/arm/boot/dts/imx23-olinuxino.dts new/arch/arm/boot/dts/imx23-olinuxino.dts
+--- old/arch/arm/boot/dts/imx23-olinuxino.dts 2013-11-19 11:52:31.000000000 +0100
++++ new/arch/arm/boot/dts/imx23-olinuxino.dts 2013-11-19 12:18:53.000000000 +0100
+@@ -79,6 +79,12 @@
+ status = "okay";
+ };
+
++ i2c0: i2c@80058000 {
++ pinctrl-names = "default";
++ pinctrl-0 = <&i2c1_pins_a>;
++ status = "okay";
++ };
++
+ duart: serial@80070000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&duart_pins_a>;
+@@ -94,7 +100,7 @@
+ usbphy0: usbphy@8007c000 {
+ status = "okay";
+ };
+-
++
+ codec: mxs-builtin-codec {
+ compatible = "fsl,mxs-builtin-codec";
+ reg = <0x80048000 0x2000>, <0x8004c000 0x2000>,