Part Number: PROCESSOR-SDK-AM62X
Tool/software:
Hello,
I’m trying to use a GPIO on the AM6X-SK board with kernel 6.4.16. Specifically, I want to use GPIO0_42, which is intended to be controlled in a driver with:
status = gpio_request(42, "SPI_HANDSHAKE_PIN");
However, I’m encountering an error -517.
I added the following to my device tree (k3-am625-sk.dts):
mygpio0_pins_default: mygpio0-default-pins {
pinctrl-single,pins = <
AM62X_IOPAD(0x00ac, PIN_INPUT, 7) /* (L21) CPMC0_CSn1.GPIO0_42 */
AM62X_IOPAD(0x009c, PIN_INPUT, 7) /* (V25) GPMC0_WAIT1.GPIO0_38 */
AM62X_IOPAD(0x00a0, PIN_INPUT, 7) /* (K25) GPMC0_WPn.GPIO0_39 */
>;
};
};
&main_gpio0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mygpio0_pins_default>;
};
Can anyone point out what might be wrong with my configuration or why I am getting this error?
Thanks in advance!
Hello,
I’m trying to use a GPIO on the AM6X-SK board with kernel 6.4.16. Specifically, I want to use GPIO0_42, which is intended to be controlled in a driver with:
ggreTranslato