Skip to content

Instantly share code, notes, and snippets.

@gmarull
Created September 7, 2021 09:54
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/02f76fba628fa556853c2acf01a65efb to your computer and use it in GitHub Desktop.
Save gmarull/02f76fba628fa556853c2acf01a65efb to your computer and use it in GitHub Desktop.
nordic-pinctrl-option-5
/* Option 5 */
&pinctrl {
uart0_default: uart0_default {
compatible = "nordic,nrf-uarte-pinctrl";
tx-pin = <6>;
tx-config = <OUT IDISC PN>;
rx-pin = <8>;
rx-config = <INP, ICONN, PU>;
rts-pin = <5>;
rts-config = <OUT IDISC PN>;
cts-pin = <7>;
cts-config = <INP, ICONN, PU>;
};
uart0_sleep: uart0_sleep {
compatible = "nordic,nrf-uarte-pinctrl";
tx-pin = <6>;
tx-config = <INP, IDISC, PN>;
rx-pin = <8>;
rx-config = <INP, IDISC, PN>;
rts-pin = <5>;
rts-config = <INP, IDISC, PN>;
cts-pin = <7>;
cts-config = <INP, IDISC, PN>;
};
};
/* Option 5 */
#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