ARM: dts: am335x-nano: Enable RS485 mode for UART3 & 4
authorMark Jackson <mpfj@newflow.co.uk>
Wed, 30 Nov 2022 14:05:44 +0000 (14:05 +0000)
committerTony Lindgren <tony@atomide.com>
Thu, 19 Jan 2023 08:30:52 +0000 (10:30 +0200)
UART3 & 4 are both RS485 ports.
So we need to configure and enable this by default.

Signed-off-by: Mark Jackson <mpfj@newflow.co.uk>
Message-Id: <20221130140547.295859-3-mpfj@newflow.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-nano.dts

index 05cbfe24f7782a7cc849854fc6a11ab3bad29025..cecc2afaeff4751a92b1523e9255694ea2e378b5 100644 (file)
 &uart3 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart3_pins>;
+       rts-gpio = <&gpio2 17 GPIO_ACTIVE_HIGH>;
+       rs485-rts-active-high;
+       rs485-rx-during-tx;
+       rs485-rts-delay = <1 1>;
+       linux,rs485-enabled-at-boot-time;
        status = "okay";
 };
 
 &uart4 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart4_pins>;
+       rts-gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
+       rs485-rts-active-high;
+       rs485-rx-during-tx;
+       rs485-rts-delay = <1 1>;
+       linux,rs485-enabled-at-boot-time;
        status = "okay";
 };