From: Tim Harvey <tharvey@gateworks.com>
Date: Thu, 8 Sep 2022 20:41:08 +0000 (-0700)
Subject: arm: dts: imx8mp-venice-gw74xx: fix uart configuration gpio hogs
X-Git-Tag: v2025.01-rc5-pxa1908~1238^2~61
X-Git-Url: http://git.dujemihanovic.xyz/img/html/index.html?a=commitdiff_plain;h=35a9b624006959c121e209b6daaa99ff0cf12b9c;p=u-boot.git

arm: dts: imx8mp-venice-gw74xx: fix uart configuration gpio hogs

Update the UART config gpio hogs such that it is configured for RS232
by default on boot. Additionally rename them to match the names used
on the reset of the venice boards.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---

diff --git a/arch/arm/dts/imx8mp-venice-gw74xx-u-boot.dtsi b/arch/arm/dts/imx8mp-venice-gw74xx-u-boot.dtsi
index caf5d3a7f6..8a3b4b6c56 100644
--- a/arch/arm/dts/imx8mp-venice-gw74xx-u-boot.dtsi
+++ b/arch/arm/dts/imx8mp-venice-gw74xx-u-boot.dtsi
@@ -116,29 +116,29 @@
 		line-name = "m2_wdis#";
 	};
 
-	uart_rs485_hog {
+	rs485_en {
 		gpio-hog;
-		gpios = <31 GPIO_ACTIVE_LOW>;
+		gpios = <31 GPIO_ACTIVE_HIGH>;
 		output-low;
-		line-name = "uart_rs485";
+		line-name = "rs485_en";
 	};
 };
 
 &gpio5 {
 	u-boot,dm-spl;
 
-	uart_half_hog {
+	rs485_half {
 		gpio-hog;
-		gpios = <0 GPIO_ACTIVE_LOW>;
-		output-high;
-		line-name = "uart_half";
+		gpios = <0 GPIO_ACTIVE_HIGH>;
+		output-low;
+		line-name = "rs485_hd";
 	};
 
-	uart_term_hog {
+	rs485_term {
 		gpio-hog;
-		gpios = <1 GPIO_ACTIVE_LOW>;
+		gpios = <1 GPIO_ACTIVE_HIGH>;
 		output-low;
-		line-name = "uart_term";
+		line-name = "rs485_term";
 	};
 };