Skip to content

Commit

Permalink
arm64: zynqmp: dts: Add rts delay property for rs485 mode on KD240
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Link: https://lore.kernel.org/r/0e0c4c067236e11f661c1d067017e1ca975c9ddb.1721297721.git.michal.simek@amd.com
  • Loading branch information
Manikanta Guntupalli authored and michalsimek committed Aug 5, 2024
1 parent b0e686e commit 1e49d7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/dts/zynqmp-sck-kd-g-revA.dtso
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@
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>;
Expand Down

0 comments on commit 1e49d7f

Please sign in to comment.