Skip to content

Instantly share code, notes, and snippets.

@gmarull
Last active September 7, 2021 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmarull/e2afed5c97a188f3830ff0bd59d3d3ae to your computer and use it in GitHub Desktop.
Save gmarull/e2afed5c97a188f3830ff0bd59d3d3ae to your computer and use it in GitHub Desktop.
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