diff options
author | wigyori <wigyori@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-06-27 10:12:03 +0000 |
---|---|---|
committer | wigyori <wigyori@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-06-27 10:12:03 +0000 |
commit | d841bfcc1e6cbabc460efc3581a686b182aee0af (patch) | |
tree | 02298d3da4d9e9632c3e910191ff364fc949fe5d /target/linux/imx23/patches/100-imx23-i2c.patch | |
parent | e95fe206636ccc5f5abb547a9f901dbe76007585 (diff) |
imx23: add new target for i.MX233-based boards
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37038 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/imx23/patches/100-imx23-i2c.patch')
-rw-r--r-- | target/linux/imx23/patches/100-imx23-i2c.patch | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/target/linux/imx23/patches/100-imx23-i2c.patch b/target/linux/imx23/patches/100-imx23-i2c.patch new file mode 100644 index 0000000000..096d0acfb6 --- /dev/null +++ b/target/linux/imx23/patches/100-imx23-i2c.patch @@ -0,0 +1,79 @@ +diff -ruN linux-3.8.11.orig/arch/arm/boot/dts/imx23.dtsi linux-3.8.11/arch/arm/boot/dts/imx23.dtsi +--- linux-3.8.11.orig/arch/arm/boot/dts/imx23.dtsi 2013-05-01 18:56:10.000000000 +0200 ++++ linux-3.8.11/arch/arm/boot/dts/imx23.dtsi 2013-05-07 01:17:33.000000000 +0200 +@@ -292,8 +292,42 @@ + fsl,voltage = <1>; + fsl,pull-up = <1>; + }; +- }; + ++ 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>; ++ }; ++ ++ }; ++ + digctl@8001c000 { + reg = <0x8001c000 2000>; + status = "disabled"; +@@ -400,8 +434,14 @@ + status = "disabled"; + }; + +- i2c@80058000 { ++ i2c0: i2c@80058000 { ++ #address-cells = <1>; ++ #size-cells = <0>; ++ compatible = "fsl,imx28-i2c"; + reg = <0x80058000 0x2000>; ++ interrupts = <27 26>; ++ clock-frequency = <100000>; ++ fsl,i2c-dma-channel = <3>; + status = "disabled"; + }; + +diff -ruN linux-3.8.11.orig/arch/arm/boot/dts/imx23-olinuxino.dts linux-3.8.11/arch/arm/boot/dts/imx23-olinuxino.dts +--- linux-3.8.11.orig/arch/arm/boot/dts/imx23-olinuxino.dts 2013-05-01 18:56:10.000000000 +0200 ++++ linux-3.8.11/arch/arm/boot/dts/imx23-olinuxino.dts 2013-05-07 01:16:41.000000000 +0200 +@@ -68,6 +68,12 @@ + }; + + apbx@80040000 { ++ i2c0: i2c@80058000 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&i2c1_pins_a>; ++ status = "okay"; ++ }; ++ + duart: serial@80070000 { + pinctrl-names = "default"; + pinctrl-0 = <&duart_pins_a>; |