All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: imx7s-warp: Add MPL3115 sensor support
@ 2016-08-09 18:40 Breno Lima
  2016-08-09 18:40 ` [PATCH 2/2] ARM: imx_v6_v7_defconfig: Add CONFIG_MPL3115 Breno Lima
  2016-08-15 13:33 ` [PATCH 1/2] ARM: dts: imx7s-warp: Add MPL3115 sensor support Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Breno Lima @ 2016-08-09 18:40 UTC (permalink / raw)
  To: linux-arm-kernel

Add support for MPL3115 NXP pressure sensor.

Tested by reading temperature and pressure:

$ cat /sys/bus/iio/devices/iio:device0/in_temp_raw
$ cat /sys/bus/iio/devices/iio:device0/in_pressure_raw

Signed-off-by: Breno Lima <breno.lima@nxp.com>
---
 arch/arm/boot/dts/imx7s-warp.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts
index e318c98..ae23781 100644
--- a/arch/arm/boot/dts/imx7s-warp.dts
+++ b/arch/arm/boot/dts/imx7s-warp.dts
@@ -155,6 +155,18 @@
 	};
 };
 
+&i2c4 {
+	clock-frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c4>;
+	status = "okay";
+
+	mpl3115 at 60 {
+		compatible = "fsl,mpl3115";
+		reg = <0x60>;
+	};
+};
+
 &uart1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart1>;
@@ -189,6 +201,13 @@
 		>;
 	};
 
+	pinctrl_i2c4: i2c4grp {
+		fsl,pins = <
+			MX7D_PAD_I2C4_SCL__I2C4_SCL	0x4000007f
+			MX7D_PAD_I2C4_SDA__I2C4_SDA	0x4000007f
+		>;
+	};
+
 	pinctrl_uart1: uart1grp {
 		fsl,pins = <
 			MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX	0x79
-- 
2.7.4

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

* [PATCH 2/2] ARM: imx_v6_v7_defconfig: Add CONFIG_MPL3115
  2016-08-09 18:40 [PATCH 1/2] ARM: dts: imx7s-warp: Add MPL3115 sensor support Breno Lima
@ 2016-08-09 18:40 ` Breno Lima
  2016-08-15 13:33 ` [PATCH 1/2] ARM: dts: imx7s-warp: Add MPL3115 sensor support Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Breno Lima @ 2016-08-09 18:40 UTC (permalink / raw)
  To: linux-arm-kernel

Add MPL3115 NXP pressure sensor configuration.

This sensor is used by warp7 board.

Signed-off-by: Breno Lima <breno.lima@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 0685d54..73c4c5e 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -340,6 +340,7 @@ CONFIG_STAGING=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_IIO=y
 CONFIG_VF610_ADC=y
+CONFIG_MPL3115=y
 CONFIG_PWM=y
 CONFIG_PWM_FSL_FTM=y
 CONFIG_PWM_IMX=y
-- 
2.7.4

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

* [PATCH 1/2] ARM: dts: imx7s-warp: Add MPL3115 sensor support
  2016-08-09 18:40 [PATCH 1/2] ARM: dts: imx7s-warp: Add MPL3115 sensor support Breno Lima
  2016-08-09 18:40 ` [PATCH 2/2] ARM: imx_v6_v7_defconfig: Add CONFIG_MPL3115 Breno Lima
@ 2016-08-15 13:33 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2016-08-15 13:33 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 09, 2016 at 03:40:45PM -0300, Breno Lima wrote:
> Add support for MPL3115 NXP pressure sensor.
> 
> Tested by reading temperature and pressure:
> 
> $ cat /sys/bus/iio/devices/iio:device0/in_temp_raw
> $ cat /sys/bus/iio/devices/iio:device0/in_pressure_raw
> 
> Signed-off-by: Breno Lima <breno.lima@nxp.com>

Applied both, thanks.

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

end of thread, other threads:[~2016-08-15 13:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-09 18:40 [PATCH 1/2] ARM: dts: imx7s-warp: Add MPL3115 sensor support Breno Lima
2016-08-09 18:40 ` [PATCH 2/2] ARM: imx_v6_v7_defconfig: Add CONFIG_MPL3115 Breno Lima
2016-08-15 13:33 ` [PATCH 1/2] ARM: dts: imx7s-warp: Add MPL3115 sensor support Shawn Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.