ath79: Replace reset-button for DIR-859
authorJan Forman <forman.jan96@gmail.com>
Sat, 15 May 2021 18:48:12 +0000 (20:48 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 20 May 2023 11:43:09 +0000 (13:43 +0200)
gpio-export for the switch reset pin replaced with a reset pin definition for the driver, within the phy node.

Signed-off-by: Jan Forman <forman.jan96@gmail.com>
Tested-By: Sebastian Schaper <openwrt@sebastianschaper.net>
target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts

index 804f3434c378757aa99c4b67219a4c7dc3735171..140f0b65c6013a2a12558967d45a1bb0a1bee89b 100644 (file)
                        debounce-interval = <60>;
                };
        };
-
-       gpio-export {
-               compatible = "gpio-export";
-               #size-cells = <0>;
-
-               gpio_switch_reset {
-                       gpio-export,name = "dir-859-a1:reset:switch";
-                       gpio-export,output = <1>;
-                       gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
-               };
-       };
 };
 
 &pcie {
                phy-mode = "sgmii";
                qca,mib-poll-interval = <500>;
 
+               reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+
                qca,ar8327-initvals = <
                        0x04 0x00080080 /* PORT0 PAD MODE CTRL */
                        0x10 0x81000080 /* POWER_ON_STRAP */