]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
MIPS: ralink: dts: gardena_smart_gateway_mt7688: Limit UART1
authorReto Schneider <reto.schneider@husqvarnagroup.com>
Tue, 14 Jan 2020 08:48:06 +0000 (09:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:38:29 +0000 (08:38 +0100)
[ Upstream commit e8c192011c920517e5578d51c7aff0ecadd25de3 ]

The radio module asserts CTS when its RX buffer has 10 bytes left.
Putting just 8 instead of 16 bytes into the UART1 TX buffer on the Linux
side ensures to not overflow the RX buffer on the radio module side.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Paul Burton <paul.burton@mips.com>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts

index aa5caaa311047e4be5e16deb25ea511d003cb10c..aad9a8a8669b4161010a0055b2510f5861477054 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinmux_i2s_gpio>;         /* GPIO0..3 */
 
+       fifo-size = <8>;
+       tx-threshold = <8>;
+
        rts-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
        cts-gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
 };