错误设备树:无法请求资源区域 [mem 0x01c20800-0x01c20aff]
错误显示:
[ 156.303744] blinkled: loading out-of-tree module taints kernel.
[ 156.303871] blinkled: module verification failed: signature and/or required key missing - tainting kernel
[ 156.304614] Good ! device probed! 65
[ 156.304644] demo_file 1c20800.gpioa7: can't request region for resource [mem 0x01c20800-0x01c20aff]
[ 156.304663] demo_file: probe of 1c20800.gpioa7 failed with error -16
[ 156.304747] The blinkled driver is success
我的代码设备:
gpioa7: gpioa7@1c20800{
reg = < 0x1c20800 0x300 >;
clocks = < 0x03 0x36 0x12 0x13 0x00 >;
clock-names = "apb\0hosc\0losc";
gpio-controller;
#gpio-cells = < 0x03 >;
gpios = < 0x0c 0x07 0x01 0x04 >;
input;
interrupt-controller;
#interrupt-cells = < 0x03 >;
interrupt-parent = < 0x01 >;
interrupts = < 0x01 0x00 0x48 0x08 >;
compatible = "gpio,input-pa7-pin";
status = "okay";
};
认为错误是因为 dts 有 2 个具有相同地址的节点而引起的:
soc {
pinctrl@1c20800 {
......
};
};
但我不知道不知道如何解决?谢谢!
ERROR SHOW:
[ 156.303744] blinkled: loading out-of-tree module taints kernel.
[ 156.303871] blinkled: module verification failed: signature and/or required key missing - tainting kernel
[ 156.304614] Good ! device probed! 65
[ 156.304644] demo_file 1c20800.gpioa7: can't request region for resource [mem 0x01c20800-0x01c20aff]
[ 156.304663] demo_file: probe of 1c20800.gpioa7 failed with error -16
[ 156.304747] The blinkled driver is success
MY CODE DEVICETREE:
gpioa7: gpioa7@1c20800{
reg = < 0x1c20800 0x300 >;
clocks = < 0x03 0x36 0x12 0x13 0x00 >;
clock-names = "apb\0hosc\0losc";
gpio-controller;
#gpio-cells = < 0x03 >;
gpios = < 0x0c 0x07 0x01 0x04 >;
input;
interrupt-controller;
#interrupt-cells = < 0x03 >;
interrupt-parent = < 0x01 >;
interrupts = < 0x01 0x00 0x48 0x08 >;
compatible = "gpio,input-pa7-pin";
status = "okay";
};
Think error is caused because dts has 2 nodes with same address:
soc {
pinctrl@1c20800 {
......
};
};
But i don't know how to fix it? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论