Hello,
I have a use case where I need to use UART_RTS and UART_CTS as GPIO for toggling the led. I also want to use the other two pins UART_TX and UART_RX for handling UART specific function at the same time. I made an overlay file for this. It works when I flashed it on nRF9160dk but in Fanstel BLG840F, it doesn't seem to work at all.
I am certain it is due to the overlay being incorrect for the custom board - Fanstel BLG840F. But not sure how to rectify it!
I also went through driving a GPIO pin directly but it didn't even worked on nRF9160dk board.
Hoping some help from the community.
&spi3 { status = "disabled"; }; /{ gpioCustom{ compatible = "gpio-keys"; gpioCus0: gpioCus0{ gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; label = "Custom"; }; gpioCus1: gpioCus1{ gpios = < &gpio0 26 GPIO_ACTIVE_HIGH >; label = "Custom2"; }; }; aliases{ gpiocus0 = &gpioCus0; gpiocus1 = &gpioCus1; }; }; &uart0_default { group1 { psels = <NRF_PSEL_DISCONNECTED(UART_RTS)>, <NRF_PSEL(UART_RX, 0, 28)>, <NRF_PSEL(UART_TX, 0, 29)>; }; group2 { psels = <NRF_PSEL_DISCONNECTED(UART_CTS)>; // bias-pull-up; }; }; &uart0_sleep { group1 { psels = <NRF_PSEL_DISCONNECTED(UART_RTS)>, <NRF_PSEL_DISCONNECTED(UART_CTS)>; // low-power-enable; }; };