ARM: dts: imx6dl-yapp4: Move the internal switch PHYs under the switch node
authorMichal Vokáč <michal.vokac@ysoft.com>
Wed, 14 Feb 2024 09:03:28 +0000 (10:03 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sun, 25 Feb 2024 12:57:58 +0000 (20:57 +0800)
commit79978bff2e4b8e05ebdf5fc3ee6b794002393484
tree2b5bdb08c9223da14a3cffa7272819a70adc72a4
parent023bd910d3ab735459f84b22bb99fb9e00bd9d76
ARM: dts: imx6dl-yapp4: Move the internal switch PHYs under the switch node

We identified that the PHYs actually do not work since commit 7da7b84fee58
("ARM: dts: imx6dl-yapp4: Move phy reset into switch node") as
a coincidence of several circumstances.

The reset signal is kept asserted by a pull-down resistor on the board
unless it is deasserted by GPIO from the SoC. This is to keep the switch
dead until it is configured properly by the kernel and user space.

Prior to the referenced commit the switch was reset by the FEC driver
and the reset GPIO was actively deasserted. The mdio-bus was scanned
and the attached switch and its PHYs were found and configured.

With the referenced commit the switch is reset by the qca8k driver.
Because of another bug in the qca8k driver, functionality of the reset
pin depends on its pre-kernel configuration. See commit c44fc98f0a8f
("net: dsa: qca8k: fix illegal usage of GPIO")

The problem did not appear until we removed support for the switch
and configuration of its reset pin from the bootloader.

To fix that, properly describe the internal mdio-bus configuration of
the qca8334 switch. The PHYs are internal to the switch and sit on its
internal mdio-bus.

Fixes: 7da7b84fee58 ("ARM: dts: imx6dl-yapp4: Move phy reset into switch node")
Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6dl-yapp4-common.dtsi