Part Number: PROCESSOR-SDK-AM65X
Other Parts Discussed in Thread: PCA9554, PCA9555, TLV320AIC3106
Hi Forum,
I am trying to configure GPIO pins as inputs or outputs, and then write to or read from them using simple command-line utilities in Linux. I am using the Processor SDK for Linux, 06.00.00.07.
Following are my chages added for the configuration done in k3-am654-base-board.dts:
1.main_gpio1_pins_default: main-gpio1-pins-default {
pinctrl-single,pins = <
AM65X_WKUP_IOPAD(0x0048, PIN_OUTPUT, 7) /* (P5) WKUP_GPIO0_30 */
>;
};
2.Under the section
gpio-keys {
................
GPIO2 {
label = "TEST_GPIO2";
linux,code =<0>;
gpios = <&wkup_gpio0 30 GPIO_ACTIVE_HIGH>;
};
Result: I'm Able to see the configured GPIO in the shell as Input even though configured as Output in .dts and that GPIO is not configured for any other pins.
Not able to Toggle the GPIO and is configured always shows Input.
Can any one help how to toggle it in the SHELL?

