Skip to content

Commit

Permalink
arm: dts: visconti: Add DT support for Toshiba Visconti5 ethernet con…
Browse files Browse the repository at this point in the history
…troller

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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
iwamatsu-t authored and davem330 committed Feb 15, 2021
1 parent df53e4f commit ec8a42e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/arm64/boot/dts/toshiba/tmpv7708-rm-mbrc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,21 @@
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>;
};
};
};
25 changes: 25 additions & 0 deletions arch/arm64/boot/dts/toshiba/tmpv7708.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,20 @@
#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>;
Expand Down Expand Up @@ -384,6 +398,17 @@
#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";
};
};
};

Expand Down

0 comments on commit ec8a42e

Please sign in to comment.