关于内核模块加载报错xxxx-pinctrl xxx.iomuxc: pin xxxxxx already reques

这篇博客记录了在Linux环境下遇到的引脚冲突问题,具体表现为iomuxc引脚已经被LCDIF占用,无法再分配给GPIOLED。解决方法是检查并修改设备树,避免引脚重复使用。在完成修改后成功加载了内核模块leddriver,并展示了加载过程及相应的内核日志信息。
摘要由CSDN通过智能技术生成
[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$

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值