IMX7 Device Tree Error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX7 Device Tree Error

597 次查看
tlamarc
Contributor I

Any ideas why I get the following error when booting an IMX7 platform where I have added a section called nucd_leds to the device tree, but my code does not use the pin it is complaining about (MX7D_PAD_GPIO1_IO08)

ERROR:

imx7d-pinctrl 30330000.iomuxc: pin MX7D_PAD_GPIO1_IO08 already requested by 30b40000.usdhc; cannot claim for nucd_leds
imx7d-pinctrl 30330000.iomuxc: pin-5 (nucd_leds) status -22
imx7d-pinctrl 30330000.iomuxc: could not request pin 5 (MX7D_PAD_GPIO1_IO08) from group status_led on device 30330000.iomuxc
leds-gpio nucd_leds: Error applying setting, reverse things back
leds-gpio: probe of nucd_leds failed with error -22

 

MY CODE:

/ {
nucd_leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_status_led>;

status-red {
label = "status_red";
gpios = <&gpio1 5 0>;
default-state = "off";
};

status-green {
label = "status_green";
gpios = <&gpio1 6 0>;
default-state = "off";
};

status-blue {
label = "status_blue";
gpios = <&gpio1 7 0>;
default-state = "on";
};
};
};


&iomuxc_lpsr {
asc-imx7s {
pinctrl_status_led: status_led {
fsl,pins = <
MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x14 /* Red LED */
MX7D_PAD_LPSR_GPIO1_IO06__GPIO1_IO6 0x14 /* Grn LED */
MX7D_PAD_LPSR_GPIO1_IO07__GPIO1_IO7 0x14 /* Blu LED */
>;
};
};
};

0 项奖励
回复
2 回复数

551 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

Could you check that the dtsis used are not using the pin requested or the newly added GPIO1 5, 6 and 7?

Did you dtsi include the imx7d-sdb.dts or made a completely new?

In such case that there are no other declarations, could you share your complete device tree?

Regards

0 项奖励
回复

546 次查看
tlamarc
Contributor I

My main dts file has this for the includes:

#include "imx7d.dtsi"
#include "leds-mx7.dtsi"

Note that the leds-mx7.dtsi code is posted above (references to GPIO 5, 6, and 7).

 

And my main dts file has this compatible line (reference to imx7d-sdb):

compatible = "fsl,imx7d-sdb", "fsl,imx7d";

 

Also my main dts file also has this section (reference to GPIO1_IO08 error above):

pinctrl_usdhc1_gpio: usdhc1_gpiogrp {
fsl,pins = <
MX7D_PAD_SD1_CD_B__GPIO5_IO0 0x59 /* CD */
MX7D_PAD_SD1_WP__GPIO5_IO1 0x59 /* WP */
MX7D_PAD_SD1_RESET_B__GPIO5_IO2 0x59 /* vmmc */
MX7D_PAD_GPIO1_IO08__SD1_VSELECT 0x59 /* VSELECT */
>;
};

 

There are no other references to GPIO1 5, 6, 7, or 8.

0 项奖励
回复