Skip to contentSkip to conversation

linux-fslc-imx: Replace MPL3115 driver

PATCH New Breno Lima 1 participant 1 message Aug 12, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore

Breno Lima

author
#0 lore raw

PATCH 1/1 linux-fslc-imx: Replace MPL3115 driver

There are currently two driver implementations for the MPL3115:
- drivers/input/misc/mpl3115.c (from NXP kernel)
- drivers/iio/pressure/mpl3115.c (from upstream kernel).

Use the CONFIG_MPL3115 instead of CONFIG_INPUT_MPL3115 because this driver uses the Industrial I/O framework, which is the preferred and standard subsystem for sensors.

The data from this sensor can be read by using the following commands on a warp7 board:

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

---
 recipes-kernel/linux/linux-fslc-imx/defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-fslc-imx/defconfig +1 -1
index 371d736..ab1d187 100644
@@ -169,7 +169,6 @@ CONFIG_TOUCHSCREEN_TSC2007=y
 CONFIG_TOUCHSCREEN_STMPE=y
 CONFIG_INPUT_MISC=y
 CONFIG_INPUT_MMA8450=y
-CONFIG_INPUT_MPL3115=y
 CONFIG_SENSOR_FXLS8471=y
 CONFIG_INPUT_ISL29023=y
 CONFIG_SERIO_SERPORT=m
@@ -362,6 +361,7 @@ CONFIG_STAGING_MEDIA=y
 CONFIG_IIO=y
 CONFIG_IMX7D_ADC=y
 CONFIG_VF610_ADC=y
+CONFIG_MPL3115=y
 CONFIG_PWM=y
 CONFIG_PWM_IMX=y
 CONFIG_EXT2_FS=y
Signature · 1 line
2.7.4