This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Linux
I am working on U-boot. And I have a gpio5 defined in the dts file as following:
&gpio5 {
pinctrl-names = "default";
status = "okay";
pinctrl-0 = <&gpio5_mux_pins>;
ti,no-reset-on-init;
p11 {
gpio-hog;
gpios = <11 GPIO_ACTIVE_LOW>;
output-high;
line-name = "led1";
};
};
and the gpio5_mux_pins defined in dts file as:
gpio5_mux_pins: gpio5_mux_pins {
pinctrl-single,pins = <
/* GPIO 5_11 to yellow LED */
0x244(PIN_OUTPUT_PULLUP | MUX_MODE7)
>;
};
And in my code, I have
err = dm_gpio_lookup_name("led1", gpio);
if (err) {
printf("gpio ret=%d\n", err);
return err;
}
the dm_gpio_lookup_name() always return -22.
Why it does not find the "led1"?