]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commitdiff
ARM: dts: keystone-k2g: Add PRUSS MDIO controller nodes
authorSuman Anna <s-anna@ti.com>
Tue, 7 Nov 2017 20:07:55 +0000 (14:07 -0600)
committerSuman Anna <s-anna@ti.com>
Sun, 24 Feb 2019 01:20:50 +0000 (19:20 -0600)
The PRUSSs on 66AK2G 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 2.5 MHz is chosen
as the regular MDIO node.

The nodes are added to the common keystone-k2g dts file and are
disabled. These need to be enabled in the respective board files
supporting 66AK2G SoCs and where the ethernet is pinned out and
connected properly.

Signed-off-by: Suman Anna <s-anna@ti.com>
arch/arm/boot/dts/keystone-k2g.dtsi

index d3dd70d719a9c053cb72d937c60606be53273356..6a0a481db259a4778a8325e3169746987abb0e71 100644 (file)
                                        reg-names = "iram", "control", "debug";
                                        firmware-name = "k2g-pru0_1-fw";
                                };
+
+                               pruss0_mdio: mdio@20ab2400 {
+                                       compatible = "ti,davinci_mdio";
+                                       reg = <0x20ab2400 0x90>;
+                                       clocks = <&k2g_clks 0x0014 1>;
+                                       clock-names = "fck";
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       bus_freq = <2500000>;
+                                       status = "disabled";
+                               };
                        };
                };
 
                                        reg-names = "iram", "control", "debug";
                                        firmware-name = "k2g-pru1_1-fw";
                                };
+
+                               pruss1_mdio: mdio@20af2400 {
+                                       compatible = "ti,davinci_mdio";
+                                       reg = <0x20af2400 0x90>;
+                                       clocks = <&k2g_clks 0x0015 1>;
+                                       clock-names = "fck";
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       bus_freq = <2500000>;
+                                       status = "disabled";
+                               };
                        };
                };