ath79: fix RS-485 on Teltonika RUT-955
authorDaniel Golle <daniel@makrotopia.org>
Wed, 17 Mar 2021 03:39:51 +0000 (03:39 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 17 Mar 2021 17:41:24 +0000 (17:41 +0000)
DTR GPIO isn't actually needed and triggers boot warning.
TX pin was off by one (GPIO 19 instead of GPIO 18).

Reported-by: @tophirsch
Fixes: d1130ad265 ("ath79: add support for Teltonika RUT955")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/ath79/dts/ar9344_teltonika_rut955-h7v3c0.dts
target/linux/ath79/dts/ar9344_teltonika_rut955.dts
target/linux/ath79/dts/ar9344_teltonika_rut9xx.dtsi

index f61f2bf6287179d01522964bbe22ac0be49635a4..eb9606e58bf0c11502f523e5405389ce22bc591a 100644 (file)
        };
 };
 
-&hs_uart {
-       dtr-gpios = <&gpio_ext 15 GPIO_ACTIVE_HIGH>;
-};
-
 &eth0 {
        status = "okay";
 
index 7914928aa0887679f0f5f524312bef1f40ab743e..ba840a05d3d2380ac5c3749a49fd1f9acbec1fb9 100644 (file)
        };
 };
 
-&hs_uart {
-       dtr-gpios = <&gpio_ext 13 GPIO_ACTIVE_HIGH>;
-};
-
 &eth0 {
        status = "okay";
 
index 88b9170fc03c43d150063685073226007dc595bd..d9c66d2745fe5d52b526acb5d7c6c025a42e460b 100644 (file)
 &pinmux {
        pmx_spi: spi {
                // SPI_CS1 on GPIO 3
-               pinctrl-single,bits = <0x0 0x07000000 0xff000000>;
+               pinctrl-single,bits =   <0x0 0x07000000 0xff000000>;
        };
 
        pmx_leds_switch: leds_switch {
                // switch port LEDs on GPIO 1, GPIO 13, GPIO 14 and GPIO 22
-               pinctrl-single,bits =  <0x0 0x00002d00 0x0000ff00>,
-                                       <0xc 0x002c2b00 0x00ffff00>,
+               pinctrl-single,bits =   <0x00 0x00002d00 0x0000ff00>,
+                                       <0x0c 0x002c2b00 0x00ffff00>,
                                        <0x14 0x002a0000 0x00ff0000>;
        };
 
        pmx_uart2: uart2 {
                // UART1_DTR on GPIO 0, UART1_RD on GPIO 11, UART1_TD on GPIO 18
-               pinctrl-single,bits = <0x0 0x0 0xff>,
-                               <0x10 0x4f000000 0xff000000>,
-                               <0x3c 0x000b0000 0x00ff0000>;
+               pinctrl-single,bits =   <0x00 0x00000000 0x000000ff>,
+                                       <0x10 0x004f0000 0x00ff0000>,
+                                       <0x3c 0x000b0000 0x00ff0000>;
        };
 };