From: Sebastian Schaper Date: Tue, 19 May 2020 10:38:21 +0000 (+0200) Subject: ath79: define switch reset-gpios for D-Link DIR-842 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8643c0b53d74aeb535c6700c115d323cb55ec7fb;p=openwrt%2Fstaging%2Fmkresin.git ath79: define switch reset-gpios for D-Link DIR-842 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 --- diff --git a/target/linux/ath79/dts/qca9563_dlink_dir-842-c.dtsi b/target/linux/ath79/dts/qca9563_dlink_dir-842-c.dtsi index 2482874c99..8071332451 100644 --- a/target/linux/ath79/dts/qca9563_dlink_dir-842-c.dtsi +++ b/target/linux/ath79/dts/qca9563_dlink_dir-842-c.dtsi @@ -25,14 +25,6 @@ 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 { @@ -116,6 +108,7 @@ 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 */ @@ -140,5 +133,6 @@ &wmac { status = "okay"; + qca,no-eeprom; };