ath79: define switch reset-gpios for D-Link DIR-842
authorSebastian Schaper <openwrt@sebastianschaper.net>
Tue, 19 May 2020 10:38:21 +0000 (12:38 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 26 May 2020 20:49:18 +0000 (22:49 +0200)
GPIO 11 needs to be pulled high for the external gigabit switch to work,
this is currently solved via gpio-hog. Replace with phy0 reset-gpios.

Tested on revisions C1 and C3. Reset button is still working for reboot,
to enter failsafe, and to enter bootloader http recovery.

Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
target/linux/ath79/dts/qca9563_dlink_dir-842-c.dtsi

index 2482874c99af6c0f39be634e05a4def8001c423f..8071332451e9c1221ecefe6cd2f0a77e2ce88581 100644 (file)
                        debounce-interval = <60>;
                };
        };
-
-       // Pull up on boot - otherwise the reset button won't work
-       reset-button {
-               gpio-hog;
-               output-high;
-               gpios = <11 GPIO_ACTIVE_LOW>;
-               line-name = "reset-button";
-       };
 };
 
 &uart {
        phy0: ethernet-phy@0 {
                reg = <0>;
                qca,mib-poll-interval = <500>;
+               reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
 
                qca,ar8327-initvals = <
                        0x04 0x00080080 /* PORT0 PAD MODE CTRL */
 
 &wmac {
        status = "okay";
+
        qca,no-eeprom;
 };