MY-IMX6 Linux-3.14.52 Device and Driver

跳转至: 导航搜索

Document instruction

System environment instruction

  • Compilation host CPU architeture:64 bit.
  • Compilation host system:Linux.
  • Linux release version:Ubuntu
  • Ubuntu version type:server version
  • Ubuntu version number:12.04.5
  • Ubuntu version type:x86-64
Note:for development host please use ubuntu 12.04.5 x86-64(either desktop version or server version is ok),some unneccessory problems may arise if use Linux in other release version or Ubuntu in other versions.

Operation instruction

1)Line start with “$”in the document,following it is Linux command.
2)All Linux commands are recommended to enter manually to Linux host for execution(direct copy,pasting to Linux host for execution may cause failure)
3)If following a space in Linux execution command is “-”(such as:sudo apt-ge t –y install and the like),please enter manually to Linux host for execution(direct copy,pasting to Linux host for execution normally cause failure).
4)Any uncompleted Linux command in all lines in the doucment,please enter manually to the Linux host for execution(because copy,pasting commands don't contain special charater such as“line break”).
5)Observe whether result of command execution is consistent with images in the documents after enter and execute Linux commands as per documents,to ensure whether entering of command is correct or whether there is failure of execution.
6)Please follow strictly the documents for the first compilation,otherwise some unexpected errors may arise.

Screenshots instruction

To make the view look neat and tidy , the command prompt in the screenshot should use myzr $ uniformly.

Linux command in images

In the image of the document, you can see the input Linux command visually from the lines that start with “[email protected]:~$”

Driving and relevant device file

File in source code and device corresponding to version Linux-3.14.52 for development board are refered to below table:

Function Source code position Linux device and folder
GPIO drivers/gpio/gpiolib.c /sys/class/gpio/ /
LED drivers/leds/leds-gpio.c /sys/class/leds/ /
BUTTON drivers/input/keyboard/gpio_keys.c /dev/input/event2
LVDS drivers/video/mxc/ldb.c /dev/fb*
LCD drivers/video/mxc/mxc_lcdif.c /dev/fb*
BACKLIGHT drivers/video/backlight/pwm_bl.c /sys/class/backlight/
UART drivers/tty/serial/imx.c /dev/ttymxc*
I2C drivers/i2c/i2c-dev.c /dev/i2c-0
SPI drivers/spi/spidev.c /dev/spidev1.0
MMC/SD/SDIO drivers/mmc/ /dev/mmcblk*
NAND GPMI drivers/mtd/nand/gpmi-nand/ /dev/mtd*
TOUCH SCREEN drivers/input/touchscreen/myts-ft5x0x.c /dev/input/event0
FEC drivers/net/ethernet/freescale/fec_main.c eth0
PWM drivers/pwm/pwm-imx.c /sys/class/pwm/
HDMI drivers/video/mxc/mxc_hdmi.c /dev/mxc_hdmi
IPU drivers/mxc/ipu3/ /dev/mxc_ipu
GPU drivers/mxc/gpu-viv/ /dev/galcore
VPU drivers/mxc/vpu/mxc_vpu.c /dev/mxc_vpu
OV5642 drivers/media/platform/mxc/capture/ /dev/video0
MIPI DSI drivers/video/mxc/mipi_dsi.c NC
MIPI CSI2 drivers/mxc/mipi/mxc_mipi_csi2.c NC
V4L2 drivers/media/v4l2-core/ NC
SGTL5000 sound/soc/codecs/sgtl5000.c /dev/snd/
PCIE drivers/pci/host/pci-imx6.c /sys/class/pci_bus
SATA drivers/ata/ahci_platform.c /dev/sda或/dev/sdb
WM8962 sound/soc/codecs/wm8962.c /dev/snd/
ISL1208 drivers/rtc/rtc-isl1208.c /dev/rtc0
USB drivers/usb/ NC
FLEXCAN drivers/net/can/flexcan.c can0,can1
WATCHDOG drivers/watchdog/imx2_wdt.c /dev/watchdog

Main file of device tree:arch/arm/boot/dts/myimx6ek***.dts (“***”represent 200-6q-2g,200-6q,2 00-6qp,200-6s-1g,200-6s and 200-6u;314-6q-2g,314-6q and 314-6u)
Basic file of device tree:arch/arm/boot/dts/imx6qdl.dtsi</span>
Function file of pin:arch/arm/boot/dts/imx6*-pinfunc.h (“*”represent q or dl)
Note:please check carefully register,please refer to“IMX6DQRM_201406.pdf”file.