Linux driver for MPL3115A2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux driver for MPL3115A2

2,344 Views
gvchougala
Contributor I

I am not able to find out Linux driver for MPL3115A2 sensor. We are using IMAX8MQ-EVK board and want to integrate MPL3115A2 sensor. 

I appreciate your help. 

Labels (1)
Tags (1)
0 Kudos
2 Replies

2,174 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

I would recommend you to download and have a look at the MPL3115A2 Pressure Sensor Linux Driver for Android Devices (REV 1.0).

 

Hope it helps.

 

Best regards,

Tomas

0 Kudos

2,174 Views
gvchougala
Contributor I

Hi,

We used the driver from GitHub for MPL3115A2 sensor. Link to driver on the Github is https://github.com/torvalds/linux/blob/master/drivers/iio/pressure/mpl3115.c

 

We have connected the MPL3115 sensor to IMX8MQ-EVK board.

 

We are able to probe the sensor but not able to find a way on how to read from the sensor. We tried  to read /sys/class/i2c-dev/i2c-1/device/1-0060/iio\:device0/in_temp_scale but it doesn’t exist.

 

We are able to see till /sys/class/i2c-dev/i2c-1/device/1-0060/ but not the iio\:device0/in_temp_scale

 

We would appreciate if you can help us on how to read the data from sensor on the Linux platform. 

Thanks,

Girija

0 Kudos
%3CLINGO-SUB%20id%3D%22lingo-sub-965039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELinux%20driver%20for%20MPL3115A2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-965039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20not%20able%20to%20find%20out%20Linux%20driver%20for%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fos.mbed.com%2Fcookbook%2FMPL3115A2%22%20style%3D%22background-color%3A%20transparent%3B%20box-sizing%3A%20border-box%3B%20color%3A%20%230091bd%3B%20font-family%3A%20Lato%2Csans-serif%3B%20font-size%3A%2038px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%2053.2px%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMPL3115A2%3C%2FA%3E%20sensor.%20We%20are%20using%20IMAX8MQ-EVK%20board%20and%20want%20to%20integrate%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fos.mbed.com%2Fcookbook%2FMPL3115A2%22%20style%3D%22background-color%3A%20transparent%3B%20box-sizing%3A%20border-box%3B%20color%3A%20%230091bd%3B%20font-family%3A%20Lato%2Csans-serif%3B%20font-size%3A%2038px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%2053.2px%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMPL3115A2%3C%2FA%3E%20sensor.%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20appreciate%20your%20help.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-965039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EPressure%20Sensors%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-965041%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Linux%20driver%20for%20MPL3115A2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-965041%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20used%20the%20driver%20from%20GitHub%20for%20MPL3115A2%20sensor.%20Link%20to%20driver%20on%20the%20Github%20is%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Ftorvalds%2Flinux%2Fblob%2Fmaster%2Fdrivers%2Fiio%2Fpressure%2Fmpl3115.c%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fgithub.com%2Ftorvalds%2Flinux%2Fblob%2Fmaster%2Fdrivers%2Fiio%2Fpressure%2Fmpl3115.c%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWe%20have%20connected%20the%20MPL3115%20sensor%20to%20IMX8MQ-EVK%20board.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWe%20are%20able%20to%20probe%20the%20sensor%20but%20not%20able%20to%20find%20a%20way%20on%20how%20to%20read%20from%20the%20sensor.%20We%20tried%26nbsp%3B%20to%20read%20%3CSPAN%20style%3D%22color%3A%20%23d54e53%3B%20font-size%3A%2010.5pt%3B%20%22%3E%2Fsys%2F%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23d681ff%3B%20font-size%3A%2010.5pt%3B%20%22%3Eclass%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23d54e53%3B%20font-size%3A%2010.5pt%3B%20%22%3E%2Fi2c-dev%2Fi%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2010.5pt%3B%20color%3A%20%235d6a6f%3B%22%3E2c-%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23e78c45%3B%20font-size%3A%2010.5pt%3B%20%22%3E1%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23d54e53%3B%20font-size%3A%2010.5pt%3B%20%22%3E%2Fdevice%2F%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23e78c45%3B%20font-size%3A%2010.5pt%3B%20%22%3E1%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2010.5pt%3B%20color%3A%20%235d6a6f%3B%22%3E-%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23e78c45%3B%20font-size%3A%2010.5pt%3B%20%22%3E0060%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23d54e53%3B%20font-size%3A%2010.5pt%3B%20%22%3E%2Fiio%5C%3Adevice0%2Fi%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2010.5pt%3B%20color%3A%20%235d6a6f%3B%22%3En_temp_scale%20but%20it%20doesn%E2%80%99t%20exist.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.5pt%3B%20color%3A%20%235d6a6f%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWe%20are%20able%20to%20see%20till%20%2Fsys%2Fclass%2Fi2c-dev%2Fi2c-1%2Fdevice%2F1-0060%2F%20%3CSPAN%20style%3D%22color%3A%20red%3B%22%3Ebut%20not%20the%3C%2FSPAN%3E%20iio%5C%3Adevice0%2Fin_temp_scale%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3EWe%20would%20appreciate%20if%20you%20can%20help%20us%20on%20how%20to%20read%20the%20data%20from%20sensor%20on%20the%20Linux%20platform.%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EGirija%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-965040%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Linux%20driver%20for%20MPL3115A2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-965040%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20would%20recommend%20you%20to%20download%20and%20have%20a%20look%20at%20the%26nbsp%3B%3CA%20data-content-finding%3D%22Community%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fexternal-link.jspa%3Furl%3Dhttps%253A%252F%252Fwww.nxp.com%252Fwebapp%252Fsps%252Fdownload%252Flicense.jsp%253FcolCode%253DMPL3115A2-DRVR%22%20target%3D%22_blank%22%3EMPL3115A2%20Pressure%20Sensor%20Linux%20Driver%20for%20Android%20Devices%26nbsp%3B%3C%2FA%3E(REV%201.0).%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EHope%20it%20helps.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ETomas%3C%2FP%3E%3C%2FLINGO-BODY%3E