Skip to content

Commit a211b8c

Browse files
cdleonardShawn Guo
authored andcommitted
ARM: dts: imx6qdl-sabreauto: Add sensors
The following sensors are on I2C3 on the baseboard: * isil,isl29023 light sensor * fsl,mag3110 magnetometer * fsl,mma8451 accelerometer Added under i2cmux/i2c@1 because they're not otherwise accessible. These are all supported by iio with following configs: * CONFIG_SENSORS_ISL29018 * CONFIG_MAG3110 * CONFIG_MMA8452 Tested with raw reads from iio sysfs. Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent f3af1e5 commit a211b8c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

arch/arm/boot/dts/imx6qdl-sabreauto.dtsi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,27 @@
155155
gpio-controller;
156156
#gpio-cells = <2>;
157157
};
158+
159+
light-sensor@44 {
160+
compatible = "isil,isl29023";
161+
reg = <0x44>;
162+
interrupt-parent = <&gpio5>;
163+
interrupts = <17 IRQ_TYPE_EDGE_FALLING>;
164+
};
165+
166+
magnetometer@e {
167+
compatible = "fsl,mag3110";
168+
reg = <0x0e>;
169+
interrupt-parent = <&gpio2>;
170+
interrupts = <29 IRQ_TYPE_EDGE_RISING>;
171+
};
172+
173+
accelerometer@1c {
174+
compatible = "fsl,mma8451";
175+
reg = <0x1c>;
176+
interrupt-parent = <&gpio6>;
177+
interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
178+
};
158179
};
159180
};
160181
};

0 commit comments

Comments
 (0)