Skip to content

Instantly share code, notes, and snippets.

@gmarull
Created September 7, 2021 09:59
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/ecb2c0066ac4b7ac5420f326ab94f683 to your computer and use it in GitHub Desktop.
Save gmarull/ecb2c0066ac4b7ac5420f326ab94f683 to your computer and use it in GitHub Desktop.
nordic-pinctrl-option-6
/* Option 6 */
&pinctrl {
uart0_default: uart0_default {
compatible = "nordic,nrf-uarte-pinctrl";
tx {
pin = <0 6>;
output-enable;
};
rx {
pin = <0 8>;
input-enable;
bias-pull-up;
};
rts {
pin = <0 5>;
output-enable;
}
cts {
pins = <0 7>;
input-enable;
bias-pull-up;
};
};
uart0_sleep: uart0_sleep {
compatible = "nordic,nrf-uarte-pinctrl";
tx {
pin = <0 6>;
low-power-enable;
};
rx {
pin = <0 8>;
low-power-enable;
};
rts {
pin = <0 5>;
low-power-enable;
}
cts {
pins = <0 7>;
low-power-enable;
};
};
};
/* Option 6 */
#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