arm64: dts: ti: k3-j721e-main: Add ICSSG MDIO nodes
authorSuman Anna <s-anna@ti.com>
Tue, 1 Jun 2021 15:00:32 +0000 (10:00 -0500)
committerNishanth Menon <nm@ti.com>
Mon, 7 Jun 2021 14:54:26 +0000 (09:54 -0500)
The ICSSGs on K3 J721E SoCs contain an MDIO controller that can
be used to control external PHYs associated with the Industrial
Ethernet peripherals within each ICSSG instance. The MDIO module
used within the ICSSG is similar to the MDIO Controller used
in TI Davinci SoCs. A bus frequency of 1 MHz is chosen for the
MDIO operations.

The nodes are added and enabled in the common k3-j721e-main.dtsi
file by default, and disabled in the existing J721E board dts
file. These nodes need pinctrl lines, and so should be enabled
only on boards where they are actually wired and pinned out for
ICSSG Ethernet. Any new board dts file should disable these if
they are not sure.

Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20210601150032.11432-3-s-anna@ti.com
arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
arch/arm64/boot/dts/ti/k3-j721e-main.dtsi

index 351bb84db65bf94c4077ba3f8513a1c0aafa1ea0..1991f620d94b2e4b5b183650439ebb31a4d20d55 100644 (file)
 &dss {
        status = "disabled";
 };
+
+&icssg0_mdio {
+       status = "disabled";
+};
+
+&icssg1_mdio {
+       status = "disabled";
+};
index 3bcafe4c1742e82273420abc103bd0cdcd7c646f..598613876b0f11b717ec8abb39140f04fb56a66f 100644 (file)
                        reg-names = "iram", "control", "debug";
                        firmware-name = "j7-txpru0_1-fw";
                };
+
+               icssg0_mdio: mdio@32400 {
+                       compatible = "ti,davinci_mdio";
+                       reg = <0x32400 0x100>;
+                       clocks = <&k3_clks 119 1>;
+                       clock-names = "fck";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       bus_freq = <1000000>;
+               };
        };
 
        icssg1: icssg@b100000 {
                        reg-names = "iram", "control", "debug";
                        firmware-name = "j7-txpru1_1-fw";
                };
+
+               icssg1_mdio: mdio@32400 {
+                       compatible = "ti,davinci_mdio";
+                       reg = <0x32400 0x100>;
+                       clocks = <&k3_clks 120 4>;
+                       clock-names = "fck";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       bus_freq = <1000000>;
+               };
        };
 };