arm: dts: visconti: Add DT support for Toshiba Visconti5 ethernet controller
authorNobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Mon, 15 Feb 2021 15:24:38 +0000 (00:24 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 22:59:35 +0000 (14:59 -0800)
Add the ethernet controller node in Toshiba Visconti5 SoC-specific DT file.
And enable this node in TMPV7708 RM main board's board-specific DT file.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/boot/dts/toshiba/tmpv7708-rm-mbrc.dts
arch/arm64/boot/dts/toshiba/tmpv7708.dtsi

index ed0bf7f13f54e82a35ed03f6df03cd4f62cdd121..48fa8776e36fe8805bac33559f26d2e49c72338b 100644 (file)
        clocks = <&uart_clk>;
        clock-names = "apb_pclk";
 };
+
+&piether {
+       status = "okay";
+       phy-handle = <&phy0>;
+       phy-mode = "rgmii-id";
+       clocks = <&clk300mhz>, <&clk125mhz>;
+       clock-names = "stmmaceth", "phy_ref_clk";
+
+       mdio0 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "snps,dwmac-mdio";
+               phy0: ethernet-phy@1 {
+                       device_type = "ethernet-phy";
+                       reg = <0x1>;
+               };
+       };
+};
index 242f25f4e12ab4e5d69e4640e09b65beec7b6fc2..3366786699fcfc349d718d32988d55553ebbc309 100644 (file)
                #clock-cells = <0>;
        };
 
+       clk125mhz: clk125mhz {
+               compatible = "fixed-clock";
+               clock-frequency = <125000000>;
+               #clock-cells = <0>;
+               clock-output-names = "clk125mhz";
+       };
+
+       clk300mhz: clk300mhz {
+               compatible = "fixed-clock";
+               clock-frequency = <300000000>;
+               #clock-cells = <0>;
+               clock-output-names = "clk300mhz";
+       };
+
        soc {
                #address-cells = <2>;
                #size-cells = <2>;
                        #size-cells = <0>;
                        status = "disabled";
                };
+
+               piether: ethernet@28000000 {
+                       compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.20a";
+                       reg = <0 0x28000000 0 0x10000>;
+                       interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq";
+                       snps,txpbl = <4>;
+                       snps,rxpbl = <4>;
+                       snps,tso;
+                       status = "disabled";
+               };
        };
 };