mxs: add support for 4.1
[openwrt/openwrt.git] / target / linux / mxs / patches-4.1 / 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 @@ -444,7 +477,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";