[13287.036732] imx6ul-pinctrl 20e0000.iomuxc: pin MX6UL_PAD_RESERVE16 already reques ted by 21c8000.lcdif; cannot claim for gpioled
[13287.052717] imx6ul-pinctrl 20e0000.iomuxc: pin-16 (gpioled) status -22
[13287.060421] imx6ul-pinctrl 20e0000.iomuxc: could not request pin 16 (MX6UL_PAD_RE SERVE16) from group ledgrp on device 20e0000.iomuxc
[13287.073160] imx6ul-led gpioled: Error applying setting, reverse things back
[13287.081324] led driver and device was match !
[13287.085811] Major num; 249
[13287.085811] Minor num :0
[13287.097788] foxling node has been found!
[13287.101868] get gpio num :137
[13287.114761] led driver and device was match !
[13287.119559] Major num; 249
[13287.119559] Minor num :0
[13287.125219] ------------[ cut here ]------------
[13287.130829] WARNING: CPU: 0 PID: 857 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x54/0x7 4()
[13287.138735] sysfs: cannot create duplicate filename '/class/led_devices'
[13287.145455] Modules linked in: leddriver(O+) leddevice(O) [last unloaded: leddriv er]
终端输出如上图所示
原因:引脚冲突
解决方法:
打开设备树,xxxx.dts,查找使用的引脚,删除/更改重复的pin
重新加载内核模块:
root@freescale /lib/modules/4.1.15/led_platform$ insmod leddriver.ko
[ 59.503353] led driver and device was match !
[ 59.512193] Major num; 249
[ 59.512193] Minor num :0
[ 59.525911] foxling node has been found!
[ 59.540126] get gpio num :137
root@freescale /lib/modules/4.1.15/led_platform$