Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nordic-pinctrl-option-3
/* Option 3 (equals option 2, but without auto-generation) */
&pinctrl {
uart0_tx_p06 {
pinmux = <0 6 UART_TX>;
output-enable;
};
uart0_rx_p08 {
pinmux = <0 8 UART_RX>;
input-enable;
bias-pull-up;
};
uart0_rts_p05 {
pinmux = <0 5 UART_RTS>;
output-enable;
};
uart0_cts_p07 {
pinmux = <0 7 UART_CTS>;
input-enable;
bias-pull-up;
};
uart0_tx_sleep_p06 {
pinmux = <0 6 UART_TX>;
low-power-enable;
};
uart0_rx_sleep_p08 {
pinmux = <0 8 UART_RX>;
low-power-enable;
};
uart0_rts_sleep_p05 {
pinmux = <0 5 UART_RTS>;
low-power-enable;
};
uart0_cts_sleep_p07 {
pinmux = <0 7 UART_CTS>;
low-power-enable;
};
};
/* Option 3 (equals option 2, but without auto-generation) */
#include "nordic-board-pinctrl.dtsi"
&uart0 {
pinctrl-0 = <&uart0_tx_p06 &uart0_rx_p08 &uart0_rts_p05
&uart0_cts_p07>;
pinctrl-1 = <&uart0_tx_sleep_p06 &uart0_rx_sleep_p08
&uart0_rts_sleep_p05 &uart0_cts_sleep_p07>;
pinctrl-names = "default", "sleep";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment