]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: dts: Add rts delay property for rs485 mode on KD240
authorManikanta Guntupalli <manikanta.guntupalli@amd.com>
Thu, 18 Jul 2024 10:15:23 +0000 (12:15 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 5 Aug 2024 14:10:36 +0000 (16:10 +0200)
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>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/0e0c4c067236e11f661c1d067017e1ca975c9ddb.1721297721.git.michal.simek@amd.com
arch/arm/dts/zynqmp-sck-kd-g-revA.dtso

index 1727a1cc15c16a4b965518cc085d5092f0b887fc..4de29d5d3ff6cbec1913de464b1597d49e723b7a 100644 (file)
        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>;