ARM: dts: am57xx: Add PRUSS MDIO controller nodes
authorSuman Anna <s-anna@ti.com>
Thu, 29 Jul 2021 22:46:21 +0000 (17:46 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 3 Aug 2021 12:25:14 +0000 (15:25 +0300)
The PRUSSs on AM57xx SoCs contain an MDIO controller that can
be used to control external PHYs associated with the Industrial
Ethernet peripherals within each 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 nodes are added in the common am57-pruss.dtsi file and enabled
by default, but are disabled in all the existing AM57xx board dts
files. These nodes need 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: Suman Anna <s-anna@ti.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am57-pruss.dtsi
arch/arm/boot/dts/am571x-idk.dts
arch/arm/boot/dts/am572x-idk.dts
arch/arm/boot/dts/am574x-idk.dts
arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
arch/arm/boot/dts/am57xx-cl-som-am57x.dts

index 494d56830b34c22e54dcd7f0c36be6fd7d3783db..46c5383f0eee220d757cdce4a7bcae0bf3e5aa33 100644 (file)
                                reg-names = "iram", "control", "debug";
                                firmware-name = "am57xx-pru1_1-fw";
                        };
+
+                       pruss1_mdio: mdio@32400 {
+                               compatible = "ti,davinci_mdio";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               clocks = <&dpll_gmac_h13x2_ck>;
+                               clock-names = "fck";
+                               bus_freq = <1000000>;
+                               reg = <0x32400 0x90>;
+                       };
                };
        };
 
                                reg-names = "iram", "control", "debug";
                                firmware-name = "am57xx-pru2_1-fw";
                        };
+
+                       pruss2_mdio: mdio@32400 {
+                               compatible = "ti,davinci_mdio";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               clocks = <&dpll_gmac_h13x2_ck>;
+                               clock-names = "fck";
+                               bus_freq = <1000000>;
+                               reg = <0x32400 0x90>;
+                       };
                };
        };
 };
index e81078c2d00d75678083558374933cd5a482db76..48425020281a9a3f633b4ebc1feaa741a1ea6a21 100644 (file)
        pinctrl-1 = <&mmc2_pins_hs>;
        pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>;
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};
+
+&pruss2_mdio {
+       status = "disabled";
+};
index 6504265f3f7ebfcfadd2c0e93254a8667b6eb74c..94a738cb0a4d6cfe0e1ab44d16454bdcbc927328 100644 (file)
        pinctrl-1 = <&mmc2_pins_hs>;
        pinctrl-2 = <&mmc2_pins_ddr_rev20>;
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};
+
+&pruss2_mdio {
+       status = "disabled";
+};
index dcc32f4b347fbcf6d031816fc76c31ffaf8adaef..6dff3660bf0993d1bec9e0eb3c70954db823d39d 100644 (file)
 &emif1 {
        status = "okay";
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};
+
+&pruss2_mdio {
+       status = "disabled";
+};
index 6b82ecf803c5edd49551b1c76ae1972a7bc3137c..994e69ab38d725e6d19cf8a3d84a3eb7780d0fde 100644 (file)
        status = "okay";
        memory-region = <&dsp2_memory_region>;
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};
+
+&pruss2_mdio {
+       status = "disabled";
+};
index aed81568a297d0e2c252ed9879479560763715f8..2e94f32d9dfcac09a0069fe0b2b50318c3c48e25 100644 (file)
        status = "okay";
        ti,no-reset-on-init;
 };
+
+&pruss1_mdio {
+       status = "disabled";
+};
+
+&pruss2_mdio {
+       status = "disabled";
+};