openwrt/target/linux/ipq806x/files-5.15/arch/arm/boot/dts
Christian Marangi 9a24040d20
ipq806x: fix Linksys EAX500 family devices dead Ethernet switch
With 5.15 kernel version Linksys EAX500 family devices suffered from a
big regression where the Ethernet switch became silent and started to
malfunction.

It was discovered later that the cause was not really the kernel upgrade
itself but a hackish implementation of the hw implementation of these
special routers.

In the original Linksys source code, GPIO 63 was handled in a special way
and was reset on reboot.

Normally GPIO 63 is used for pcie2 reset but in every device we support,
pcie2 is actually never used as nothing is attached to it.

Linksys rerouted GPIO 63 to the switch reset pin and deviates from
common hw implementation.

Till now it was used an hack to handle this case... It was set pcie3 as
working (while actually nothing was connected), set it to output low
(for assert-deassert from the pcie init code) and be done with it.
The result was that the GPIO was reset for enough time in early boot and
everything worked correctly.
This hack implementation was born to fail from the very start and in
kernel 5.15 finally problem arised.

In 5.15 pcie code changed and now the GPIO reset pin is not asserted as
probe won't fail if nothing is connected to the line (the old behaviour)
This result in the switch hold the reset pin and the Ethernet switch
dead.

On top of that with 5.15 code got optimized and simply attaching the
GPIO reset to the mdio wasn't enough as the switch require at least 10ms
to be correctly reset.

So implement finally a correct solution where:
- pcie2 is correctly disabled (nothing attached, unused)
- drop the wrong output-low for pcie2 reset pin
- define GPIO 63 as switch reset
- Add the reset-gpios to the mdio0 node
- Set the reset-post-delay-us to 12ms to correctly give time the switch
  to reset

Fixes: #10983
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-02-17 04:27:15 +01:00
..
qcom-ipq8062-wg2600hp3.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8064-ad7200-c2600.dtsi ipq806x: fix dts whitespace 2023-02-09 03:03:51 +01:00
qcom-ipq8064-ad7200.dts
qcom-ipq8064-ap148.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8064-ap161.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8064-asus-onhub.dts ipq806x: onhub: Enable fstools_partname_fallback_scan 2023-02-04 20:16:20 +01:00
qcom-ipq8064-c2600.dts
qcom-ipq8064-d7800.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8064-db149.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8064-ea7500-v1.dts
qcom-ipq8064-ea8500.dts
qcom-ipq8064-eax500.dtsi ipq806x: fix Linksys EAX500 family devices dead Ethernet switch 2023-02-17 04:27:15 +01:00
qcom-ipq8064-g10.dts ipq806x: 5.15: revert unwanted DSA conversion for ASRock G10 2022-10-25 01:29:45 +02:00
qcom-ipq8064-onhub.dtsi ipq806x: Initial TP-Link and ASUS OnHub support 2023-01-21 01:02:25 +01:00
qcom-ipq8064-r7500.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8064-r7500v2.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8064-tplink-onhub.dts ipq806x: onhub: Enable fstools_partname_fallback_scan 2023-02-04 20:16:20 +01:00
qcom-ipq8064-unifi-ac-hd.dts ipq806x: 5.15: replace dtsi patches with upstream version 2022-10-11 21:28:41 +02:00
qcom-ipq8064-vr2600v.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8064-wg2600hp.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8064-wpq864.dts ipq806x: 5.15: standardize wpq864 partition table 2022-12-14 02:23:22 +01:00
qcom-ipq8064-wxr-2533dhp.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8065-nbg6817.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8065-nighthawk.dtsi ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8065-r7800.dts
qcom-ipq8065-rt4230w-rev6.dts ipq806x: 5.15: fix wrong boot-partitions values for split partitions 2022-12-14 02:23:22 +01:00
qcom-ipq8065-tr4400-v2.dts ipq806x: 5.15: fix wrong boot-partitions values for split partitions 2022-12-14 02:23:22 +01:00
qcom-ipq8065-xr500.dts
qcom-ipq8068-cryptid-common.dtsi ipq806x: 5.15: add boot-partitions binding to fix block warning 2022-10-11 21:28:44 +02:00
qcom-ipq8068-ecw5410.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8068-mr42.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00
qcom-ipq8068-mr52.dts ipq806x: 5.15: enable again usb node for each device 2022-10-11 21:28:46 +02:00