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

* [PATCH 2/3] ARM: imx: Update imx_v6_v7_defconfig for mag3110 support
  2018-01-09 11:46 [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor Marco Franchi
@ 2018-01-09 11:46 ` 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>
  2 siblings, 1 reply; 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 support for the MAG3110 Magnetometer sensor, included 
in its base board by default.

So add support for this Magnetometer in the imx_v6_v7_defconfig.

Signed-off-by: Marco Franchi <marco.franchi@nxp.com>
---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index 4cb9829..ebff980 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -369,6 +369,7 @@ CONFIG_COMMON_CLK_PWM=y
 CONFIG_IIO=y
 CONFIG_IMX7D_ADC=y
 CONFIG_VF610_ADC=y
+CONFIG_MAG3110=y
 CONFIG_MPL3115=y
 CONFIG_PWM=y
 CONFIG_PWM_FSL_FTM=y
-- 
2.7.4

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

* [PATCH 3/3] ARM: dts: imx7d-sdb: Add support for mpl3115 sensor
       [not found] ` <1515498385-23198-1-git-send-email-marco.franchi-3arQi8VN3Tc@public.gmane.org>
@ 2018-01-09 11:46   ` Marco Franchi
       [not found]     ` <1515498385-23198-3-git-send-email-marco.franchi-3arQi8VN3Tc@public.gmane.org>
  2018-02-02  5:26   ` [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor Shawn Guo
  1 sibling, 1 reply; 7+ messages in thread
From: Marco Franchi @ 2018-01-09 11:46 UTC (permalink / raw)
  To: shawnguo-DgEjT+Ai2ygdnm+yROfE0A
  Cc: fabio.estevam-3arQi8VN3Tc, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Marco Franchi

The i.MX 7D SDB has a MPL3115 Pressure sensor.
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-3arQi8VN3Tc@public.gmane.org>
---
 arch/arm/boot/dts/imx7d-sdb.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts
index a7a5dc7..a20c942 100644
--- a/arch/arm/boot/dts/imx7d-sdb.dts
+++ b/arch/arm/boot/dts/imx7d-sdb.dts
@@ -336,6 +336,11 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c2>;
 	status = "okay";
+
+	mpl3115@60 {
+		compatible = "fsl,mpl3115";
+		reg = <0x60>;
+	};
 };
 
 &i2c3 {
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor
  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:51 ` Fabio Estevam
       [not found] ` <1515498385-23198-1-git-send-email-marco.franchi-3arQi8VN3Tc@public.gmane.org>
  2 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2018-01-10 16:51 UTC (permalink / raw)
  To: Marco Franchi
  Cc: Shawn Guo,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel, Rob Herring, Fabio Estevam,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

On Tue, Jan 9, 2018 at 9:46 AM, Marco Franchi <marco.franchi@nxp.com> wrote:
> 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>

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

* Re: [PATCH 2/3] ARM: imx: Update imx_v6_v7_defconfig for mag3110 support
  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
  0 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2018-01-10 16:52 UTC (permalink / raw)
  To: Marco Franchi
  Cc: Shawn Guo,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel, Rob Herring, Fabio Estevam,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

On Tue, Jan 9, 2018 at 9:46 AM, Marco Franchi <marco.franchi@nxp.com> wrote:
> The i.MX 6UL EVK has support for the MAG3110 Magnetometer sensor, included
> in its base board by default.
>
> So add support for this Magnetometer in the imx_v6_v7_defconfig.
>
> Signed-off-by: Marco Franchi <marco.franchi@nxp.com>

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>

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

* Re: [PATCH 3/3] ARM: dts: imx7d-sdb: Add support for mpl3115 sensor
       [not found]     ` <1515498385-23198-3-git-send-email-marco.franchi-3arQi8VN3Tc@public.gmane.org>
@ 2018-01-10 16:53       ` Fabio Estevam
  0 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2018-01-10 16:53 UTC (permalink / raw)
  To: Marco Franchi
  Cc: Shawn Guo,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel, Rob Herring, Fabio Estevam,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

On Tue, Jan 9, 2018 at 9:46 AM, Marco Franchi <marco.franchi-3arQi8VN3Tc@public.gmane.org> wrote:
> The i.MX 7D SDB has a MPL3115 Pressure sensor.
> 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-3arQi8VN3Tc@public.gmane.org>

Reviewed-by: Fabio Estevam <fabio.estevam-3arQi8VN3Tc@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor
       [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
@ 2018-02-02  5:26   ` Shawn Guo
  1 sibling, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2018-02-02  5:26 UTC (permalink / raw)
  To: Marco Franchi
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A, fabio.estevam-3arQi8VN3Tc,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

On Tue, Jan 09, 2018 at 09:46:23AM -0200, Marco Franchi wrote:
> 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-3arQi8VN3Tc@public.gmane.org>

Applied all, thanks.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[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).