]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: imx6sx-udoo-neo: enable i2c-2 and i2c-4 for onboard sensors
authorPeter Robinson <pbrobinson@gmail.com>
Sat, 1 Jun 2019 07:07:17 +0000 (08:07 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 12 Jun 2019 08:04:01 +0000 (16:04 +0800)
The i2c2 bus has a external plug which enables the easy connection of external
"bricks" with sensors of various kinds, while i2c4 on the Extended/Full boards
has a pair of on board motion sensors, accelerometer and magnetometer on one chip
and gyroscope on another so it makes sense to enable these i2c buses for use.
Tested on UDOO Neo Full.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts
arch/arm/boot/dts/imx6sx-udoo-neo-full.dts
arch/arm/boot/dts/imx6sx-udoo-neo.dtsi

index b6ba03cf69260d0d05f6068ff70e1162fe86d8c3..cc9994e7d833ca9d3ddd28e37b901fed0def8ea6 100644 (file)
@@ -16,3 +16,7 @@ memory@80000000 {
                reg = <0x80000000 0x40000000>;
        };
 };
+
+&i2c4 { /* Onboard Motion sensors */
+       status = "okay";
+};
index 4d5e3794a4670afbdd56a204984f5de54cdaafdb..12e802f6208a4242e2683c9f969ed9465431cd17 100644 (file)
@@ -31,3 +31,7 @@ ethphy1: ethernet-phy@0 {
                };
        };
 };
+
+&i2c4 { /* Onboard Motion sensors */
+       status = "okay";
+};
index b4fcee2e3b5cc601442c406e5d63694e13781f55..1c3362dfb97a760ab8b64ff1cb479c64d51542f0 100644 (file)
@@ -188,6 +188,20 @@ vgen6_reg: vldo4 {
        };
 };
 
+&i2c2 { /* Brick snap in sensors connector */
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c2>;
+       clock-frequency = <100000>;
+       status = "okay";
+};
+
+&i2c4 { /* Onboard Motion sensors */
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c4>;
+       clock-frequency = <100000>;
+       status = "disabled";
+};
+
 &iomuxc {
        pinctrl_bt_reg: btreggrp {
                fsl,pins =
@@ -219,6 +233,18 @@ pinctrl_i2c1: i2c1grp {
                        <MX6SX_PAD_GPIO1_IO01__I2C1_SDA         0x4001b8b1>;
        };
 
+       pinctrl_i2c2: i2c2grp {
+               fsl,pins =
+                       <MX6SX_PAD_GPIO1_IO03__I2C2_SDA         0x4001b8b1>,
+                       <MX6SX_PAD_GPIO1_IO02__I2C2_SCL         0x4001b8b1>;
+       };
+
+       pinctrl_i2c4: i2c4grp {
+               fsl,pins =
+                       <MX6SX_PAD_USB_H_DATA__I2C4_SDA         0x4001b8b1>,
+                       <MX6SX_PAD_USB_H_STROBE__I2C4_SCL       0x4001b8b1>;
+       };
+
        pinctrl_uart1: uart1grp {
                fsl,pins =
                        <MX6SX_PAD_GPIO1_IO04__UART1_TX         0x1b0b1>,