To follow new best practice for DTS files, this patch changes
definition for GPIO pin 4 on Wifi chip (USB power control) from
'gpio-export' to 'gpio_hog'. Tested and confirmed to work.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiew...@wp.pl>
---
 .../linux/ath79/dts/ar7241_netgear_wnr2200.dts  | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/target/linux/ath79/dts/ar7241_netgear_wnr2200.dts 
b/target/linux/ath79/dts/ar7241_netgear_wnr2200.dts
index 738fc55ec6..3b4eb7fa86 100644
--- a/target/linux/ath79/dts/ar7241_netgear_wnr2200.dts
+++ b/target/linux/ath79/dts/ar7241_netgear_wnr2200.dts
@@ -136,16 +136,6 @@
                        linux,default-trigger = "phy0tpt";
                };
        };
-
-       gpio-export {
-               compatible = "gpio-export";
-
-               gpio_usb_power {
-                       gpio-export,name = "netgear:power:usb";
-                       gpio-export,output = <1>;
-                       gpios = <&ath9k 4 GPIO_ACTIVE_HIGH>;
-               };
-       };
 };
 
 &spi {
@@ -213,6 +203,13 @@
                qca,no-eeprom;
                #gpio-cells = <2>;
                gpio-controller;
+
+               usb {
+                       gpio-hog;
+                       line-name = "netgear:power:usb";
+                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                       output-high;
+               };
        };
 };
 
-- 
2.22.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to