Skip to contentSkip to conversation

ARM: dts: am335x-pdu001: Fix RS-485 transceiver switching

PATCH Applied Felix Brack 2 participants 2 messages May 29, 2025 – Jul 7, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: am335x-pdu001: Fix RS-485 transceiver switching

The wiring of the RS-485 transceiver of UART0 of the PDU-001 board allows sending or receiving date exclusively. In other words: no character transmitted will ever be received.
Hence the tx-filter counter in the OMAP serial driver can't work correctly as it relies on receiving the transmitted characters. This in turn will prevent reception of data unless we disable the tx-filter counter.
This patch disables the tx-filter counter by enabling the DTS setting rs485-rx-during-tx. This might sound like the opposite to be done but it uses the enabling of rs485-rx-during-tx not for receiving the data transmitted but for disabling the tx-fiter counter.

---
 arch/arm/boot/dts/ti/omap/am335x-pdu001.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/ti/omap/am335x-pdu001.dts +1 -0
index ded19e24e666..6c96840fe8be 100644
@@ -258,6 +258,7 @@ &uart0 {
 
 	rts-gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
 	rs485-rts-active-high;
+	rs485-rx-during-tx;
 	rs485-rts-delay = <0 0>;
 	linux,rs485-enabled-at-boot-time;
 
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 12 lines · Felix Brack

The wiring of the RS-485 transceiver of UART0 of the PDU-001 board allows sending or receiving date exclusively. In other words: no character transmitted will ever be received.
Hence the tx-filter counter in the OMAP serial driver can't work correctly as it relies on receiving the transmitted characters. This in turn will prevent reception of data unless we disable the tx-filter counter.
This patch disables the tx-filter counter by enabling the DTS setting rs485-rx-during-tx. This might sound like the opposite to be done but it uses the enabling of rs485-rx-during-tx not for receiving the data transmitted but for disabling the tx-fiter counter.

Quoted 1 line

[...]

Applied, thanks!

[1/1] ARM: dts: am335x-pdu001: Fix RS-485 transceiver switching

      commit: 539e87dd661f5ce321019c27ab15cad55345e429

Best regards,

Signature · 1 line
Kevin Hilman <[email protected]>