* [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
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Marco Franchi @ 2018-01-09 11:46 UTC (permalink / raw)
To: linux-arm-kernel
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 at 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-09 11:46 ` [PATCH 3/3] ARM: dts: imx7d-sdb: Add support for mpl3115 sensor Marco Franchi
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Marco Franchi @ 2018-01-09 11:46 UTC (permalink / raw)
To: linux-arm-kernel
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
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-09 11:46 ` 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
3 siblings, 1 reply; 7+ messages in thread
From: Marco Franchi @ 2018-01-09 11:46 UTC (permalink / raw)
To: linux-arm-kernel
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@nxp.com>
---
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 at 60 {
+ compatible = "fsl,mpl3115";
+ reg = <0x60>;
+ };
};
&i2c3 {
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [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-09 11:46 ` [PATCH 3/3] ARM: dts: imx7d-sdb: Add support for mpl3115 sensor Marco Franchi
@ 2018-01-10 16:51 ` Fabio Estevam
2018-02-02 5:26 ` Shawn Guo
3 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2018-01-10 16:51 UTC (permalink / raw)
To: linux-arm-kernel
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
* [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: linux-arm-kernel
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
* [PATCH 3/3] ARM: dts: imx7d-sdb: Add support for mpl3115 sensor
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
0 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2018-01-10 16:53 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jan 9, 2018 at 9:46 AM, Marco Franchi <marco.franchi@nxp.com> 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@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [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
` (2 preceding siblings ...)
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
3 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2018-02-02 5:26 UTC (permalink / raw)
To: linux-arm-kernel
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@nxp.com>
Applied all, thanks.
^ 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-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
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).