ARM: dts: am4372: Add PRUSS MDIO controller node
authorAndrew F. Davis <afd@ti.com>
Thu, 29 Jul 2021 22:46:19 +0000 (17:46 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 3 Aug 2021 12:25:13 +0000 (15:25 +0300)
The PRU-ICSS1 instance on AM437x SoCs has a MDIO sub-module that
can be used to control external PHYs associated with the Industrial
Ethernet peripherals within the PRUSS. The MDIO module used within
this PRU-ICSS is an instance of the MDIO Controller used in TI
Davinci SoCs. The same bus frequency of 1 MHz is chosen as the
regular MDIO node. Note that there is no MDIO node added to the
smaller PRU-ICSS0 instance as the MDIO pins are not pinned out.

The node is added and enabled in the common am4372.dtsi file by
default, and disabled in all the existing AM437x board dts files.
This node needs pinctrl lines, and so should be enabled only on
boards where they are actually wired and pinned out for PRUSS
Ethernet. Any new board dts file should disable these if they
are not sure.

Signed-off-by: Andrew F. Davis <afd@ti.com>
[s-anna@ti.com: fix reg address, add commit description]
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am4372.dtsi
arch/arm/boot/dts/am437x-cm-t43.dts
arch/arm/boot/dts/am437x-gp-evm.dts
arch/arm/boot/dts/am437x-idk-evm.dts
arch/arm/boot/dts/am437x-sk-evm.dts
arch/arm/boot/dts/am43x-epos-evm.dts

index 2200a09c20656d7f3753382c2024299f579b3b84..61a1d88f9df6836c7e465c7c0833f72c7afb95b9 100644 (file)
                                        reg-names = "iram", "control", "debug";
                                        firmware-name = "am437x-pru1_1-fw";
                                };
+
+                               pruss1_mdio: mdio@32400 {
+                                       compatible = "ti,davinci_mdio";
+                                       reg = <0x32400 0x90>;
+                                       clocks = <&dpll_core_m4_ck>;
+                                       clock-names = "fck";
+                                       bus_freq = <1000000>;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                               };
                        };
 
                        pruss0: pruss@40000 {
index a83f46ed0c9af729a375ca468c2fb7ec441ff1d4..5ce8e684e7d35b38caaf8d5f7ea8d0ab83a1c11e 100644 (file)
                           <600000 1100000>,
                           <300000 950000>;
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};
index e2677682b540c03bb8d9feda0f2854e782d45269..c2e4896076e7f39c2b3abf63d846565794213bda 100644 (file)
 &cpu {
        cpu0-supply = <&dcdc2>;
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};
index 2dc5255122668063141ee19c2f877ce30dc7f52a..53f64e3ce7356c56d2d205b9771d6d43aa1a8fa0 100644 (file)
                opp-suspend;
        };
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};
index 496ed34f77551511e420f90779f9e9a866b613ad..20a34d2d85df951c40fd3e1a2dbb01557d5f8210 100644 (file)
                };
        };
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};
index aae0af10a5b1f47701d05ace58ca2d79aead920a..d16aa2221c910e859a16fb6ee8c6c5fdb3a58b97 100644 (file)
 &cpu {
        cpu0-supply = <&dcdc2>;
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};