]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: dts: mx6sxsabreauto: enable i2c2/3
authorPeng Fan <peng.fan@nxp.com>
Mon, 28 Nov 2016 09:49:49 +0000 (17:49 +0800)
committerStefano Babic <sbabic@denx.de>
Fri, 27 Jan 2017 09:53:05 +0000 (10:53 +0100)
Enable i2c2/3, add pinctrl settings.
Add max7310 for i2c3.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/dts/imx6sx-sabreauto.dts

index 240a2864d044feeed2fe649729f760220c7a8684..a4c2627f974149b3febf9605da77c3d34b66830d 100644 (file)
        status = "okay";
 };
 
+&i2c2 {
+       clock-frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c2_1>;
+       status = "okay";
+};
+
+&i2c3 {
+        clock-frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c3_2>;
+       status = "okay";
+
+       max7310_a: gpio@30 {
+               compatible = "maxim,max7310";
+               reg = <0x30>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       max7310_b: gpio@32 {
+               compatible = "maxim,max7310";
+               reg = <0x32>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+};
+
 &iomuxc {
        imx6x-sabreauto {
+               pinctrl_i2c2_1: i2c2grp-1 {
+                       fsl,pins = <
+                               MX6SX_PAD_GPIO1_IO03__I2C2_SDA          0x4001b8b1
+                               MX6SX_PAD_GPIO1_IO02__I2C2_SCL          0x4001b8b1
+                       >;
+               };
+
+               pinctrl_i2c3_2: i2c3grp-2 {
+                       fsl,pins = <
+                               MX6SX_PAD_KEY_ROW4__I2C3_SDA            0x4001b8b1
+                               MX6SX_PAD_KEY_COL4__I2C3_SCL            0x4001b8b1
+                       >;
+               };
+
                pinctrl_uart1: uart1grp {
                        fsl,pins = <
                                MX6SX_PAD_GPIO1_IO04__UART1_TX          0x1b0b1