diff mbox series

[SRU,jammy:linux-xilinx-zynqmp,12/14] arm64: zynqmp: dts: Add rts delay property for rs485 mode on KD240

Message ID 20240822091117.1760423-13-portia.stephens@canonical.com
State New
Headers show
Series Backport ps uart RS485 driver | expand

Commit Message

Portia Stephens Aug. 22, 2024, 9:11 a.m. UTC
From: Manikanta Guntupalli <manikanta.guntupalli@amd.com>

BugLink: https://bugs.launchpad.net/bugs/2055237

Add "rs485-rts-delay" property to uartps node with delay_rts_before_send
and delay_rts_after_send values as 10ms for rs485 mode on KD240.

10ms rts delay values have been chosen based on testing with rs485
temperature sensor (which is part of the kit) as safe minimum value
for reliable operation at a baud rate of 9600.

Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com>
State: pending
(cherry picked from git@github.com:Xilinx/linux-xlnx.git xlnx_rebase_v6.6)
Signed-off-by: Portia Stephens <portia.stephens@canonical.com>
---
 arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts
index 5cd7ed12dd079..1d41b4061b2cc 100644
--- a/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts
+++ b/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts
@@ -349,6 +349,7 @@  &uart0 {
 	status = "okay";
 	rts-gpios = <&gpio 72 GPIO_ACTIVE_HIGH>;
 	linux,rs485-enabled-at-boot-time;
+	rs485-rts-delay = <10 10>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart0_default>;
 	assigned-clock-rates = <100000000>;