From 8b3555951dda38a178bbb15f29cce2bc59df318f Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Sat, 19 Nov 2022 16:03:06 +0100 Subject: [PATCH] boards: custom_plank: migrate to pinctrl The board still used deprecated nRF *-pin properties, migrate it to pinctrl. Signed-off-by: Gerard Marull-Paretas --- .../custom_plank/custom_plank-pinctrl.dtsi | 26 +++++++++++++++++++ boards/arm/custom_plank/custom_plank.dts | 8 +++--- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 boards/arm/custom_plank/custom_plank-pinctrl.dtsi 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"; };