-
-
Save gmarull/02f76fba628fa556853c2acf01a65efb to your computer and use it in GitHub Desktop.
nordic-pinctrl-option-5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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>; | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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