Since networking is needed even for u-boot, lets move the MDIO pinmux
hack down to evm.dts.

Until MDIO is converted to DM model, it won't be possible to probe for
pinmux from the MDIO node. To work around this, hack the board dts
to set the default mux option to include MDIO. This hack is a limitation
for now till we get u-boot MDIO driver into DM model.

Signed-off-by: Nishanth Menon <n...@ti.com>
---
 arch/arm/dts/k3-am642-evm-u-boot.dtsi | 4 ----
 arch/arm/dts/k3-am642-evm.dts         | 3 ++-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/arch/arm/dts/k3-am642-evm-u-boot.dtsi 
b/arch/arm/dts/k3-am642-evm-u-boot.dtsi
index 64857b09099d..c8fd08885366 100644
--- a/arch/arm/dts/k3-am642-evm-u-boot.dtsi
+++ b/arch/arm/dts/k3-am642-evm-u-boot.dtsi
@@ -113,10 +113,6 @@
              <0x0 0x43000200 0x0 0x8>;
        reg-names = "cpsw_nuss", "mac_efuse";
        /delete-property/ ranges;
-       pinctrl-0 = <&mdio1_pins_default        /* HACK: as MDIO driver is not 
DM enabled */
-                    &rgmii1_pins_default
-                    &rgmii2_pins_default>;
-
        cpsw-phy-sel@04044 {
                compatible = "ti,am64-phy-gmii-sel";
                reg = <0x0 0x43004044 0x0 0x8>;
diff --git a/arch/arm/dts/k3-am642-evm.dts b/arch/arm/dts/k3-am642-evm.dts
index 39feea78a084..ed3a6f1341b0 100644
--- a/arch/arm/dts/k3-am642-evm.dts
+++ b/arch/arm/dts/k3-am642-evm.dts
@@ -425,7 +425,8 @@
 
 &cpsw3g {
        pinctrl-names = "default";
-       pinctrl-0 = <&rgmii1_pins_default
+       pinctrl-0 = <&mdio1_pins_default        /* HACK: as MDIO driver is not 
DM enabled */
+                    &rgmii1_pins_default
                     &rgmii2_pins_default>;
 };
 
-- 
2.40.0

Reply via email to