]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
ARM: imx6sx: remove Atheros AR8031 PHY fixup
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 11 May 2021 04:37:34 +0000 (06:37 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 May 2021 03:32:46 +0000 (11:32 +0800)
If this patch breaks your system, enable AT803X_PHY driver and add a PHY
node to the board device tree:

phy-connection-type = "rgmii-txid"; (or rgmii-id)
ethernet-phy@X {
reg = <0xX>;

qca,clk-out-frequency = <125000000>;

vddio-supply = <&vddh>;

vddio: vddio-regulator {
regulator-name = "VDDIO";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};

vddh: vddh-regulator {
regulator-name = "VDDH";
};
};

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-imx6sx.c

index 781e2a94fdd7497ac7d576c8609623e068fe32e4..e65ed5218f53cddc5b38ab787c19a2a9c69201dc 100644 (file)
 #include "common.h"
 #include "cpuidle.h"
 
-static int ar8031_phy_fixup(struct phy_device *dev)
-{
-       u16 val;
-
-       /* Set RGMII IO voltage to 1.8V */
-       phy_write(dev, 0x1d, 0x1f);
-       phy_write(dev, 0x1e, 0x8);
-
-       /* introduce tx clock delay */
-       phy_write(dev, 0x1d, 0x5);
-       val = phy_read(dev, 0x1e);
-       val |= 0x0100;
-       phy_write(dev, 0x1e, val);
-
-       return 0;
-}
-
-#define PHY_ID_AR8031   0x004dd074
-static void __init imx6sx_enet_phy_init(void)
-{
-       if (IS_BUILTIN(CONFIG_PHYLIB))
-               phy_register_fixup_for_uid(PHY_ID_AR8031, 0xffffffff,
-                                          ar8031_phy_fixup);
-}
-
 static void __init imx6sx_enet_clk_sel(void)
 {
        struct regmap *gpr;
@@ -57,7 +32,6 @@ static void __init imx6sx_enet_clk_sel(void)
 
 static inline void imx6sx_enet_init(void)
 {
-       imx6sx_enet_phy_init();
        imx6sx_enet_clk_sel();
 }