MYZR-IMX28系列评估板 Linux-3.14.54 驱动和设备

来自明远智睿的wiki
Admin讨论 | 贡献2018年6月11日 (一) 15:17的版本

跳转至: 导航搜索

文档说明(document instruction)


系统环境说明(system environment instruction)

  • 编译主机CPU架构:64位

CPU architecture of compilation host:64 bit

  • 编译主机系统:Linux

compilation host system:Linux

  • Linux发行版:Ubuntu

release version:

  • Ubuntu版本类型:服务器版

version type: saver version

  • Ubuntu版本号:12.04.5

version no.:

  • Ubuntu系统类型:x86-64

system type:
  注意:开发主机请使用ubuntu 12.04.5 x86-64(桌面版或服务器版均可),使用其他发行版的Linux或Ubuntu的其它版本可能会遇到的不必要的问题。
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)文档中以“$”开头的行,其后是Linux命令。
line start with “$”in the document,following it is Linux command
2)文档中所有的Linux命令建议手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,可能会执行失败)。
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)文档中的Linux执行命令,如果空格后的下一个字符是“-”的(如:sudo apt-get –y install之类的),请手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,通常会执行失败)。
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)文档中所有一行没写完的Linux命令请手动输入到Linux主机执行,(因为复制、粘贴命令不能包含类似“换行符”之类的特殊字符)。
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)按文档输入并执行Linux命令时注意观察命令的执行结果与文档图片中的是否一致,以确认命令是否输入有误及是否执行失败。
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)

为使视图看起来简洁整齐,截图中的命令提示符统一使用myzr$。
To make the view look neat and tidy , the command prompt in the screenshot should use myzr$ uniformly

图片中的Linux命令(Linux command in images)

在文档的图片中观察“linyn@u12045-serv:~$”开头的行可以直观的看到输入的
linux命令。
In the image of the document, you can see the input Linux command visually from the lines that start with “linyn@u12045-serv:~$”
linux command

驱动及相关设备文件(driving and relevant device file)


评估板对应的Linux-3.14.54版本及对应的源码文件和设备见下表:
source code and device corresponding to version Linux-3.14.54 for evaluation board are refered to below table:

功能
(function)
源码位置
(source code position)
Linux 设备和文件夹
(Linux device and folder)
GPIO drivers/gpio/gpiolib.c /sys/class/gpio/
LCD drivers/video/ /dev/fb0
LED drivers/leds/leds-gpio.c /sys/class/leds/
BACKLIGHT drivers/video/backlight/pwm_bl.c /sys/class/backlight/
UART drivers/tty/serial/amba-pl011.c /dev/ttyAMA0
drivers/tty/serial/mxs-auart.c /dev/ttyAPP*
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/staging/iio/adc/mxs-lradc.c /dev/input/event0
FEC drivers/net/ethernet/freescale/fec_main.c eth0,eth1
PWM drivers/pwm/pwm-mxs.c /sys/class/pwm/
SGTL5000 sound/soc/codecs/sgtl5000.c /dev/snd/
USB drivers/usb/ NC
FLEXCAN drivers/net/can/flexcan.c can0,can1
WATCHDOG drivers/watchdog/stmp3xxx_rtc_wdt.c /dev/watchdog

设备树主文件:arch/arm/boot/dts/imx28-evk.dts
main file of device tree:arch/arm/boot/dts/imx28-evk.dts
设备树基础文件:arch/arm/boot/dts/imx28.dtsi
basic file of device tree:arch/arm/boot/dts/imx28.dtsi
管脚功能文件:arch/arm/boot/dts/imx28-pinfunc.h
function file of pin:arch/arm/boot/dts/imx28-pinfunc.h
注意:想详细查看寄存器,请查看“MCIMX28RM.pdf”文件。
note:please check carefully register,please refer to “MCIMX28RM.pdf”file
</div>