Commit f847a3a8 authored by Arınç ÜNAL's avatar Arınç ÜNAL Committed by Matthias Brugger

arm: dts: mt7623: add gmacs to mt7623.dtsi

There are two gigabit MACs on the MT7623AI and MT7623NI SoCs. Add them to
mt7623.dtsi and adjust the DTs that call mt7623.dtsi.

Now that there are labels for the MACs, remove them from under &eth on the
DTs that call mt7623.dtsi. Remove the unnecessary mdio label from Bananapi
BPI-R2.
Signed-off-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
Link: https://lore.kernel.org/r/20230210182505.24597-2-arinc.unal@arinc9.comSigned-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent ac9a7868
......@@ -980,6 +980,18 @@ eth: ethernet@1b100000 {
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
gmac0: mac@0 {
compatible = "mediatek,eth-mac";
reg = <0>;
status = "disabled";
};
gmac1: mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
status = "disabled";
};
};
crypto: crypto@1b240000 {
......
......@@ -112,20 +112,19 @@ &crypto {
status = "okay";
};
&eth {
&gmac0 {
status = "okay";
phy-mode = "trgmii";
gmac0: mac@0 {
compatible = "mediatek,eth-mac";
reg = <0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
&eth {
status = "okay";
mdio-bus {
#address-cells = <1>;
......
......@@ -116,20 +116,19 @@ &crypto {
status = "okay";
};
&eth {
&gmac0 {
status = "okay";
phy-mode = "trgmii";
gmac0: mac@0 {
compatible = "mediatek,eth-mac";
reg = <0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
&eth {
status = "okay";
mdio-bus {
#address-cells = <1>;
......
......@@ -171,22 +171,21 @@ dpi0_out: endpoint {
};
};
&eth {
&gmac0 {
status = "okay";
phy-mode = "trgmii";
gmac0: mac@0 {
compatible = "mediatek,eth-mac";
reg = <0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
&eth {
status = "okay";
mdio: mdio-bus {
mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
......
......@@ -156,27 +156,25 @@ dpi0_out: endpoint {
};
};
&eth {
&gmac0 {
status = "okay";
phy-mode = "trgmii";
gmac0: mac@0 {
compatible = "mediatek,eth-mac";
reg = <0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "rgmii";
phy-handle = <&phy5>;
};
&gmac1 {
status = "okay";
phy-mode = "rgmii";
phy-handle = <&phy5>;
};
&eth {
status = "okay";
mdio-bus {
#address-cells = <1>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment