AnsweredAssumed Answered

how to enable mma8451 in imx6qp-sdb

Question asked by Vasu Sriram on Jun 28, 2018

Hello every one I am using imx6qp-sdb

using yocto i created boot image and kernel images its working fine

Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 29 fb
 81 video4linux
 89 i2c
 90 mtd
116 alsa
128 ptm
136 pts
153 spi
180 usb
189 usb_device
207 ttymxc
216 rfcomm
226 drm
242 mxc_vpu
243 mxc_hdmi_cec
244 ttyGS
245 ttyLP
246 mxc_hdmi
247 watchdog
248 tee
249 iio
250 mxc_ipu
251 ptp
252 pps
253 rtc
254 gpiochip

 

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
 31 mtdblock
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc

 

These are the devices available

 

Now i need to up the accelerometer (mma8451 using i2c-1(located in /dev)

 

how to write application for this mma8451  and how to enable that driver and how to read the values of accelerometer using this mma8451.

 

please help me to write application which can work imx6qp-sdp

 

Regards

 

Ram.

Attachments

Outcomes