您尚未登录。

楼主 # 2024-05-19 21:36:38

sxlyq_666
会员
注册时间: 2023-09-07
已发帖子: 76
积分: 72

已经将PG11在dtsi文件中屏蔽了,驱动仍然提示说该引脚被占用

也查看了其它的dtsi文件,都再没有出现pg11的定义和引用,咋回事呢?

pitft: pitft@0{
                compatible = "sitronix,st7789v";
                reg = <0>;
                status = "disabled";

                spi-max-frequency = <50000000>;
                rotate = <90>;
                fps = <33>;
                buswidth = <8>;
                dc-gpios = <&pio 0 1 GPIO_ACTIVE_HIGH>;  /* PA1 */
                /*reset-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; */
/*PG11*/
                led-gpios = <&pio 0 0 GPIO_ACTIVE_LOW>;  /* PA0 */
                debug = <0x0>;
        };

错误提示如下:

   40.183249] sun8i-h3-pinctrl 1c20800.pinctrl: pin PG11 already requested by leds; cannot claim for mytestleds
[   40.193749] sun8i-h3-pinctrl 1c20800.pinctrl: pin-203 (mytestleds) status -22
[   40.201243] sun8i-h3-pinctrl 1c20800.pinctrl: could not request pin 203 (PG11) from group PG11  on device 1c20800.pinctrl
[   40.212667] mytest-led mytestleds: Error applying setting, reverse things back
[   40.232025] mytest-led: probe of mytestleds failed with error -22

离线

楼主 #2 2024-05-19 22:07:00

sxlyq_666
会员
注册时间: 2023-09-07
已发帖子: 76
积分: 72

Re: 已经将PG11在dtsi文件中屏蔽了,驱动仍然提示说该引脚被占用

我已经搞定了。错误在 by leds  这个地方,把leds屏蔽即可。谢谢。 请管理员帮我删帖,谢谢。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn