diff --git a/boards/arm/custom_plank/custom_plank-pinctrl.dtsi b/boards/arm/custom_plank/custom_plank-pinctrl.dtsi new file mode 100644 index 0000000..4da31cb --- /dev/null +++ b/boards/arm/custom_plank/custom_plank-pinctrl.dtsi @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022 Nordic Semiconductor ASA + * SPDX-License-Identifier: Apache-2.0 + */ + +&pinctrl { + uart0_default: uart0_default { + group1 { + psels = , + , + , + ; + }; + }; + + uart0_sleep: uart0_sleep { + group1 { + psels = , + , + , + ; + low-power-enable; + }; + }; + +}; diff --git a/boards/arm/custom_plank/custom_plank.dts b/boards/arm/custom_plank/custom_plank.dts index b17cedd..dee804d 100644 --- a/boards/arm/custom_plank/custom_plank.dts +++ b/boards/arm/custom_plank/custom_plank.dts @@ -5,6 +5,7 @@ /dts-v1/; #include +#include "custom_plank-pinctrl.dtsi" / { model = "Custom Plank Board"; @@ -31,8 +32,7 @@ status = "okay"; current-speed = <115200>; - tx-pin = <6>; - rx-pin = <8>; - rts-pin = <5>; - cts-pin = <7>; + pinctrl-0 = <&uart0_default>; + pinctrl-1 = <&uart0_sleep>; + pinctrl-names = "default", "sleep"; };