-
-
Save gmarull/214b49e6780af75aa9eec08abb45be84 to your computer and use it in GitHub Desktop.
nordic-pinctrl-option-2
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 2 */ | |
#include "nordic-soc-die-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"; | |
}; |
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 2 */ | |
/* This file is autogenerated for each available SoC/die. */ | |
/* Contains all common combinations (can be thousands) */ | |
&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; | |
}; | |
... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment