arm64: dts: ti: k3-am65: Enable MDIO nodes at the board level
authorAndrew Davis <afd@ti.com>
Fri, 28 Oct 2022 14:24:13 +0000 (09:24 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 4 Nov 2022 02:46:01 +0000 (21:46 -0500)
MDIO nodes defined in the top-level AM65x SoC dtsi files are incomplete
and will not be functional unless they are extended with a pinmux.

As the attached PHY is only known about at the board integration level,
these nodes should only be enabled when provided with this information.

Disable the MDIO nodes in the dtsi files and only enable the ones that
are actually pinned out on a given board.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Link: https://lore.kernel.org/r/20221028142417.10642-8-afd@ti.com
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
arch/arm64/boot/dts/ti/k3-am65-main.dtsi
arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
arch/arm64/boot/dts/ti/k3-am654-base-board.dts

index 56562081a8e527c533e72ee747bc4aa3a4280d4b..35af8798f208e786c64cd3d0c06a081379868355 100644 (file)
        mboxes = <&mailbox0_cluster1 &mbox_mcu_r5fss0_core1>;
 };
 
-&icssg0_mdio {
-       status = "disabled";
-};
-
-&icssg1_mdio {
-       status = "disabled";
-};
-
-&icssg2_mdio {
-       status = "disabled";
-};
-
 &mcasp0 {
        status = "disabled";
 };
index fbb631c7664d27de52dbe6aac4cdc38806cb900f..9cdde6e25e7dedc5cfedd2e0e09a94fc2c9c25a4 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <0>;
                        bus_freq = <1000000>;
+                       status = "disabled";
                };
        };
 
                        #address-cells = <1>;
                        #size-cells = <0>;
                        bus_freq = <1000000>;
+                       status = "disabled";
                };
        };
 
                        #address-cells = <1>;
                        #size-cells = <0>;
                        bus_freq = <1000000>;
+                       status = "disabled";
                };
        };
 };
index ad7d27c943cc008daf470b0d87bb9f1cb3718bb8..b76448d82cf9534276855b5bdd5fcc384112e7f5 100644 (file)
                        clocks = <&k3_clks 5 10>;
                        clock-names = "fck";
                        bus_freq = <1000000>;
+                       status = "disabled";
                };
 
                cpts@3d000 {
index 0c63c24941061501e59957a7a06dfe502bbcbff1..beac2c563e831f02703feec57464264c93573d72 100644 (file)
 };
 
 &davinci_mdio {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&mcu_mdio_pins_default>;
 
 &dss {
        status = "disabled";
 };
-
-&icssg0_mdio {
-       status = "disabled";
-};
-
-&icssg1_mdio {
-       status = "disabled";
-};
-
-&icssg2_mdio {
-       status = "disabled";
-};