OSDN Git Service

ARM: dts: imx6ul-evk: Add support for mag3110 sensor
authorMarco Franchi <marco.franchi@nxp.com>
Tue, 9 Jan 2018 11:46:23 +0000 (09:46 -0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 12 Feb 2018 13:13:00 +0000 (21:13 +0800)
The i.MX 6UL EVK has a MAG3110 Magnetometer sensor in its base board.
Add support for this sensor, which is included in the trivial i2c devices
and according to the bindings documentation, just need a compatible field
and an address.

Signed-off-by: Marco Franchi <marco.franchi@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6ul-14x14-evk.dts

index 18fdb08..cb33baa 100644 (file)
        };
 };
 
+&i2c1 {
+       clock-frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c1>;
+       status = "okay";
+
+       mag3110@e {
+               compatible = "fsl,mag3110";
+               reg = <0x0e>;
+       };
+};
 
 &lcdif {
        assigned-clocks = <&clks IMX6UL_CLK_LCDIF_PRE_SEL>;