ARM: dts: am33xx-l4: Add PRUSS MDIO controller node
authorSuman Anna <s-anna@ti.com>
Thu, 29 Jul 2021 22:46:12 +0000 (17:46 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 3 Aug 2021 12:25:09 +0000 (15:25 +0300)
The PRUSS on AM335x 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 the
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.

The node is added to the common am33xx-l4.dtsi file and is disabled.
This needs to be enabled in the respective board files using the
relevant AM335x SoCs supporting PRUSS and where the ethernet is
pinned out and connected properly.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am33xx-l4.dtsi

index 148176361b4ea47c79d1839a0ca7d3d25624549f..c9629cb5ccd1eeba1729040b8d5e8bd420db313a 100644 (file)
                                        reg-names = "iram", "control", "debug";
                                        firmware-name = "am335x-pru1-fw";
                                };
+
+                               pruss_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>;
+                                       status = "disabled";
+                               };
                        };
                };
        };