错误设备树:无法请求资源区域 [mem 0x01c20800-0x01c20aff]

发布于 2025-01-11 23:45:51 字数 1287 浏览 0 评论 0原文

错误显示:

[  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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文