devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor
@ 2018-01-09 11:46 Marco Franchi
  2018-01-09 11:46 ` [PATCH 2/3] ARM: imx: Update imx_v6_v7_defconfig for mag3110 support Marco Franchi
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Marco Franchi @ 2018-01-09 11:46 UTC (permalink / raw)
  To: shawnguo
  Cc: fabio.estevam, robh+dt, linux-arm-kernel, devicetree,
	linux-kernel, Marco Franchi

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>
---
 arch/arm/boot/dts/imx6ul-14x14-evk.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts
index 18fdb08..cb33baa 100644
--- a/arch/arm/boot/dts/imx6ul-14x14-evk.dts
+++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dts
@@ -140,6 +140,17 @@
 	};
 };
 
+&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>;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-02-02  5:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09 11:46 [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor Marco Franchi
2018-01-09 11:46 ` [PATCH 2/3] ARM: imx: Update imx_v6_v7_defconfig for mag3110 support Marco Franchi
2018-01-10 16:52   ` Fabio Estevam
2018-01-10 16:51 ` [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor Fabio Estevam
     [not found] ` <1515498385-23198-1-git-send-email-marco.franchi-3arQi8VN3Tc@public.gmane.org>
2018-01-09 11:46   ` [PATCH 3/3] ARM: dts: imx7d-sdb: Add support for mpl3115 sensor Marco Franchi
     [not found]     ` <1515498385-23198-3-git-send-email-marco.franchi-3arQi8VN3Tc@public.gmane.org>
2018-01-10 16:53       ` Fabio Estevam
2018-02-02  5:26   ` [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).