]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: dra7: add dt nodes for new cpsw switch dev driver
authorGrygorii Strashko <grygorii.strashko@ti.com>
Tue, 19 Nov 2019 22:19:23 +0000 (00:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 19:25:24 +0000 (11:25 -0800)
Add DT nodes for new cpsw switch dev driver.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/boot/dts/dra7-l4.dtsi

index 5cac2dd58241fb33aff9356c8b0f6e7097ad860f..37e048771b0fe7c0aa1a6c6417e16b9efdcccc54 100644 (file)
@@ -3079,6 +3079,58 @@ cpsw_emac1: slave@300 {
                                        phys = <&phy_gmii_sel 2>;
                                };
                        };
+
+                       mac_sw: switch@0 {
+                               compatible = "ti,dra7-cpsw-switch","ti,cpsw-switch";
+                               reg = <0x0 0x4000>;
+                               ranges = <0 0 0x4000>;
+                               clocks = <&gmac_main_clk>;
+                               clock-names = "fck";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               syscon = <&scm_conf>;
+                               status = "disabled";
+
+                               interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>;
+                               interrupt-names = "rx_thresh", "rx", "tx", "misc";
+
+                               ethernet-ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       cpsw_port1: port@1 {
+                                               reg = <1>;
+                                               label = "port1";
+                                               mac-address = [ 00 00 00 00 00 00 ];
+                                               phys = <&phy_gmii_sel 1>;
+                                       };
+
+                                       cpsw_port2: port@2 {
+                                               reg = <2>;
+                                               label = "port2";
+                                               mac-address = [ 00 00 00 00 00 00 ];
+                                               phys = <&phy_gmii_sel 2>;
+                                       };
+                               };
+
+                               davinci_mdio_sw: mdio@1000 {
+                                       compatible = "ti,cpsw-mdio","ti,davinci_mdio";
+                                       clocks = <&gmac_main_clk>;
+                                       clock-names = "fck";
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       bus_freq = <1000000>;
+                                       reg = <0x1000 0x100>;
+                               };
+
+                               cpts {
+                                       clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 25>;
+                                       clock-names = "cpts";
+                               };
+                       };
                };
        };
 };