From: Marco Franchi <marco.franchi@nxp.com>
To: <shawnguo@kernel.org>
Cc: <fabio.estevam@nxp.com>, <robh+dt@kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Marco Franchi <marco.franchi@nxp.com>
Subject: [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor
Date: Tue, 9 Jan 2018 09:46:23 -0200 [thread overview]
Message-ID: <1515498385-23198-1-git-send-email-marco.franchi@nxp.com> (raw)
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
next reply other threads:[~2018-01-09 11:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-09 11:46 Marco Franchi [this message]
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-09 11:46 ` [PATCH 3/3] ARM: dts: imx7d-sdb: Add support for mpl3115 sensor Marco Franchi
2018-01-10 16:53 ` Fabio Estevam
2018-01-10 16:51 ` [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor Fabio Estevam
2018-02-02 5:26 ` Shawn Guo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1515498385-23198-1-git-send-email-marco.franchi@nxp.com \
--to=marco.franchi@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®