Skip to content

Instantly share code, notes, and snippets.

@gmarull
Last active September 7, 2021 09:23
Embed
What would you like to do?
nordic-pinctrl-option-1
/* Option 1 */
&pinctrl {
uart0_default: uart0_default {
pins1 {
pinmux = <0 6 UART_TX>, <0 5 UART_RTS>;
output-enable;
};
pins2 {
pinmux = <0 8 UART_RX>, <0 7 UART_CTS>;
input-enable;
bias-pull-up;
};
};
uart0_sleep: uart0_sleep {
pins1 {
pinmux = <0 6 UART_TX>, <0 5 UART_RTS>, <0 8 UART_RX>,
<0 7 UART_CTS>;
low-power-enable;
};
};
};
/* Option 1 */
#include "nordic-board-pinctrl.dtsi"
&uart0 {
pinctrl-0 = <&uart0_default>;
pinctrl-1 = <&uart0_sleep>;
pinctrl-names = "default", "sleep";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment