mxs: add 3.14 config and patches
[openwrt/svn-archive/archive.git] / target / linux / mxs / patches-3.14 / 120-dt-add-i2c.patch
1 --- a/arch/arm/boot/dts/imx23.dtsi
2 +++ b/arch/arm/boot/dts/imx23.dtsi
3 @@ -146,6 +146,39 @@
4 fsl,pull-up = <MXS_PULL_DISABLE>;
5 };
6
7 + i2c0_pins_a: i2c0@0 {
8 + reg = <0>;
9 + fsl,pinmux-ids = <
10 + 0x01e0 /* MX23_PAD_I2C_SCL__I2C_SCL */
11 + 0x01f0 /* MX23_PAD_I2C_SDA__I2C_SDA */
12 + >;
13 + fsl,drive-strength = <1>;
14 + fsl,voltage = <1>;
15 + fsl,pull-up = <1>;
16 + };
17 +
18 + i2c1_pins_a: i2c1@0 {
19 + reg = <0>;
20 + fsl,pinmux-ids = <
21 + 0x1171 /* MX23_PAD_LCD_ENABLE__I2C_SCL */
22 + 0x1181 /* MX23_PAD_LCD_HSYNC__I2C_SDA */
23 + >;
24 + fsl,drive-strength = <1>;
25 + fsl,voltage = <1>;
26 + fsl,pull-up = <1>;
27 + };
28 +
29 + i2c2_pins_a: i2c2@0 {
30 + reg = <0>;
31 + fsl,pinmux-ids = <
32 + 0x2031 /* MX23_PAD_SSP1_DATA1__I2C_SCL */
33 + 0x2041 /* MX23_PAD_SSP1_DATA2__I2C_SDA */
34 + >;
35 + fsl,drive-strength = <1>;
36 + fsl,voltage = <1>;
37 + fsl,pull-up = <1>;
38 + };
39 +
40 auart0_pins_a: auart0@0 {
41 reg = <0>;
42 fsl,pinmux-ids = <
43 @@ -443,7 +476,12 @@
44 };
45
46 i2c@80058000 {
47 + #address-cells = <1>;
48 + #size-cells = <0>;
49 + compatible = "fsl,imx23-i2c";
50 reg = <0x80058000 0x2000>;
51 + interrupts = <27>;
52 + clock-frequency = <100000>;
53 dmas = <&dma_apbx 3>;
54 dma-names = "rx-tx";
55 status = "disabled";
56 --- a/arch/arm/boot/dts/imx23-olinuxino.dts
57 +++ b/arch/arm/boot/dts/imx23-olinuxino.dts
58 @@ -79,6 +79,12 @@
59 status = "okay";
60 };
61
62 + i2c0: i2c@80058000 {
63 + pinctrl-names = "default";
64 + pinctrl-0 = <&i2c1_pins_a>;
65 + status = "okay";
66 + };
67 +
68 duart: serial@80070000 {
69 pinctrl-names = "default";
70 pinctrl-0 = <&duart_pins_a>;
71 @@ -94,7 +100,7 @@
72 usbphy0: usbphy@8007c000 {
73 status = "okay";
74 };
75 -
76 +
77 codec: mxs-builtin-codec {
78 compatible = "fsl,mxs-builtin-codec";
79 reg = <0x80048000 0x2000>, <0x8004c000 0x2000>,