-
-
Save gmarull/6993e3eacad1b0d7c00c1ea2f16c3a12 to your computer and use it in GitHub Desktop.
nordic-pinctrl-option-3
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 3 (equals option 2, but without auto-generation) */ | |
&pinctrl { | |
uart0_tx_p06 { | |
pinmux = <0 6 UART_TX>; | |
output-enable; | |
}; | |
uart0_rx_p08 { | |
pinmux = <0 8 UART_RX>; | |
input-enable; | |
bias-pull-up; | |
}; | |
uart0_rts_p05 { | |
pinmux = <0 5 UART_RTS>; | |
output-enable; | |
}; | |
uart0_cts_p07 { | |
pinmux = <0 7 UART_CTS>; | |
input-enable; | |
bias-pull-up; | |
}; | |
uart0_tx_sleep_p06 { | |
pinmux = <0 6 UART_TX>; | |
low-power-enable; | |
}; | |
uart0_rx_sleep_p08 { | |
pinmux = <0 8 UART_RX>; | |
low-power-enable; | |
}; | |
uart0_rts_sleep_p05 { | |
pinmux = <0 5 UART_RTS>; | |
low-power-enable; | |
}; | |
uart0_cts_sleep_p07 { | |
pinmux = <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 3 (equals option 2, but without auto-generation) */ | |
#include "nordic-board-pinctrl.dtsi" | |
&uart0 { | |
pinctrl-0 = <&uart0_tx_p06 &uart0_rx_p08 &uart0_rts_p05 | |
&uart0_cts_p07>; | |
pinctrl-1 = <&uart0_tx_sleep_p06 &uart0_rx_sleep_p08 | |
&uart0_rts_sleep_p05 &uart0_cts_sleep_p07>; | |
pinctrl-names = "default", "sleep"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment