-
-
Save gmarull/e2afed5c97a188f3830ff0bd59d3d3ae to your computer and use it in GitHub Desktop.
nordic-pinctrl-option-1
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 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; | |
}; | |
}; | |
}; |
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 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