From 4263276cd1ce4e4635a56e42db4c56cab764001b Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Sat, 30 May 2020 09:27:35 -0500 Subject: [PATCH] boards: particle_xenon: add support for second UART on feather header Provide devicetree configuration for UART2 on the mesh feather header. The peripheral must be enabled in an overlay, optionally including a provided overlay with the hardware flow control signals. Signed-off-by: Peter A. Bigot --- .../dts/mesh_feather_uart2_rtscts.dtsi | 14 ++++++++++++++ boards/arm/particle_xenon/particle_xenon.dts | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 boards/arm/particle_xenon/dts/mesh_feather_uart2_rtscts.dtsi diff --git a/boards/arm/particle_xenon/dts/mesh_feather_uart2_rtscts.dtsi b/boards/arm/particle_xenon/dts/mesh_feather_uart2_rtscts.dtsi new file mode 100644 index 00000000000..0dfa0a648f0 --- /dev/null +++ b/boards/arm/particle_xenon/dts/mesh_feather_uart2_rtscts.dtsi @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2020 Peter Bigot Consulting, LLC + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/* Add hardware flow control to UART2, which is exposed only on Xenon + * mesh boards. + */ +&uart1 { + rts-pin = <35>; + cts-pin = <43>; + /* optional mesh_feather_uart2_rtscts.dtsi */ +}; diff --git a/boards/arm/particle_xenon/particle_xenon.dts b/boards/arm/particle_xenon/particle_xenon.dts index e9ad0e2490b..1e82a833882 100644 --- a/boards/arm/particle_xenon/particle_xenon.dts +++ b/boards/arm/particle_xenon/particle_xenon.dts @@ -26,3 +26,12 @@ full-ohms = <(2100000 + 806000)>; }; }; + +&uart1 { /* feather UART2 */ + compatible = "nordic,nrf-uarte"; + current-speed = <115200>; + status = "disabled"; + tx-pin = <40>; + rx-pin = <42>; + /* optional mesh_feather_uart2_rtscts.dtsi */ +};