diff options
author | Breno Lima <breno.lima@nxp.com> | 2016-08-09 15:40:45 -0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2016-08-15 21:32:12 +0800 |
commit | 171befefb274cb3af2fef7e135f325e1063fff56 (patch) | |
tree | 0cdb42bcac163b80537c71cecc6efad3831b7cc1 /arch/arm/boot/dts/imx7s-warp.dts | |
parent | a2f11455316420c749151da3fcb2a89f3cfb51bb (diff) | |
download | linux-stable-171befefb274cb3af2fef7e135f325e1063fff56.tar.gz linux-stable-171befefb274cb3af2fef7e135f325e1063fff56.tar.bz2 linux-stable-171befefb274cb3af2fef7e135f325e1063fff56.zip |
ARM: dts: imx7s-warp: Add MPL3115 sensor support
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx7s-warp.dts')
-rw-r--r-- | arch/arm/boot/dts/imx7s-warp.dts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index e318c989c18f..ae23781034fd 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@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 |