From: Mathias Kresin Date: Sun, 15 Mar 2020 22:54:47 +0000 (+0100) Subject: lantiq: vgv7510kw22: fix missing wireless X-Git-Tag: v21.02.0-rc1~3437 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0270b1995bd3396177dfd17e3ef57efa71e845dc;p=openwrt%2Fstaging%2Fchunkeey.git lantiq: vgv7510kw22: fix missing wireless For some reason pin 7 (gphy0_led1_pins) need to be set to output prior to loading the PCI driver. Otherwise the wireless doesn't appear on the PCI bus. Of course, it doesn't make much sense, since pin 7 is used to drive the LAN1 led. It can either be done by setting the pins function to GPHY or GPIO + direction output. However, the pinctrl driver doesn't provide a way to switch a pin to GPIO. It is done indirectly by the pinctrl driver at the time a GPIO is requested (requesting a GPIO always resets the function to GPIO). Do it via pinmux driver, as it is always loaded first. Use the GPHY function as it's the pins intended purpose for this board. Fixes: FS#2895 Signed-off-by: Mathias Kresin --- diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi index 8db1ffbf81..017e473a04 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi @@ -108,7 +108,7 @@ ð0 { pinctrl-0 = <&mdio_pins>, - <&gphy0_led0_pins>, <&gphy0_led1_pins>, + <&gphy0_led0_pins>, <&gphy1_led0_pins>, <&gphy1_led1_pins>; pinctrl-names = "default"; @@ -191,7 +191,7 @@ &gpio { pinctrl-names = "default"; - pinctrl-0 = <&state_default>; + pinctrl-0 = <&state_default>, <&gphy0_led1_pins>; state_default: pinmux { pci-rst {