is MAG3110FCR2 supported on i.MX 6UltraLite EVK?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

is MAG3110FCR2 supported on i.MX 6UltraLite EVK?

1,319 次查看
hafizabdul_kari
Contributor III

As per i.MX6ULL schematic, eCompass MAG3110FCR2 sensor is attached to i2c bus. 

Release Notes https://www.nxp.com/docs/en/release-note/i.MX_Linux_Release_Notes.pdf  page#20

"Supports the MAG3110FCR2 sensor on i.MX 6 boards.

Supports the FXLS8471 sensor on i.MX 6UltraLite EVK board.

Supports MPL3115A2, FXOS8700CQR1, and FXAS21002CQR1 sensors on all thei.MX 7 boards
"
By this we get an impression that MAG3110FCR2 sensor is supported on all i.MX boards mentioned in supported boards section which includes i.MX6ULL.

Now in reference Manual https://www.nxp.com/docs/en/reference-manual/i.MX_Reference_Manual_Linux.pdf   page# 19 , it is stated that:

" i.MX supports magnetometer sensors for the following SoC:

i.MX 6 SABRE, 6SoloLite, and 6SoloX supports the MAG3110FCR2 sensor.

i.MX 6UltraLite EVK supports the FXLS8471 sensor.• i.MX 7Dual supports the MPL3115A2, FXOs8700CQR1 and FXAS21002CQR1sensors."

in boot logs we get:

root@imx6ull14x14evk:~# dmesg | grep mag
[ 1.919010] mag3110 0-000e: 0-000e supply vdd not found, using dummy regulator
[ 1.927356] mag3110 0-000e: 0-000e supply vddio not found, using dummy regulator
[ 1.935043] mag3110 0-000e: check mag3110 chip ID
[ 1.940226] mag3110 0-000e: read chip ID 0xfffffffa is not equal to 0xc4!
[ 1.947419] mag3110: probe of 0-000e failed with error -22
root@imx6ull14x14evk:~#

 

 

 


Am i missing something? Is mag3110 supported on i.MX6ull?
if it is supported, could you please point out why is it reading the wrong CHIP id?

标签 (2)
标记 (1)
0 项奖励
回复
4 回复数

1,303 次查看
hafizabdul_kari
Contributor III

@igorpadykovthanks for the reply.
This document is about i.MX6UL. Following this document, I configured kernel configurations to add SENSORS_MAG3110 and SENSOR_FXLS8471

And then tried enabling sensors.

root@imx6ull14x14evk:~#  echo 1 > /sys/devices/virtual/input/input3/enable
-sh: /sys/devices/virtual/input/input3/enable: No such file or directory


However i am able to enable FXLS8471Q Accelerometer and read it's data.

So, the questions are

  • As mentioned in schematic, is MAG3110 present in i.MX6ULL?
  • As mentioned in Release notes "Supports the MAG3110FCR2 sensor on i.MX 6 boards" It applies to i.MX6ULLEVK as well?
  • Reference Manual says "i.MX 6 SABRE, 6SoloLite, and 6SoloX supports the MAG3110FCR2 sensor." Does it mean MAG3110 is present but not supported?

Thanks,

Abdul Karim

0 项奖励
回复

1,298 次查看
igorpadykov
NXP Employee
NXP Employee
  • As mentioned in schematic, is MAG3110 present in i.MX6ULL?

U1302 MAG3110 in included on SPF-28616_C1.pdf schematic p.8
MCIMX6ULL-EVK_DESIGNFILES

Design files, including hardware schematics, Gerbers, and OrCAD files

 

  • As mentioned in Release notes "Supports the MAG3110FCR2 sensor on i.MX 6 boards" It applies to i.MX6ULLEVK as well?

yes

 

  • Reference Manual says "i.MX 6 SABRE, 6SoloLite, and 6SoloX supports the MAG3110FCR2 sensor." Does it mean MAG3110 is present but not supported?

 

 

1.jpg

 

 

Best regards
igor

0 项奖励
回复

1,296 次查看
hafizabdul_kari
Contributor III

@igorpadykovthanks a lot.
So, it is established that MAG3110 sensor is present and supported .. Am i right in my conclusion?

If yes, Could you please guide me, why is it giving the wrong chip ID?
[ 1.929618] mag3110 0-000e: read chip ID 0xfffffffa is not equal to 0xc4!

How can we make this work?

0 项奖励
回复

1,308 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Abdul

 

one can try procedures from below link

https://imxdev.gitlab.io/tutorial/Interacting_with_i.MX6UL_EVK_sensors/

 

Best regards
igor

0 项奖励
回复