Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44a94c7e authored by Corentin Labbe's avatar Corentin Labbe Committed by Maxime Ripard
Browse files

arm64: dts: allwinner: H5: Restore EMAC changes



The original dwmac-sun8i DT bindings have some issue on how to handle
integrated PHY and was reverted in last RC of 4.13.
But now we have a solution so we need to get back that was reverted.

This patch restore arm64 DT about dwmac-sun8i for H5
This reverts a part of commit 87e1f5e8 ("arm64: dts: allwinner: Revert EMAC changes")

Signed-off-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 4904337f
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@
	compatible = "friendlyarm,nanopi-neo2", "allwinner,sun50i-h5";

	aliases {
		ethernet0 = &emac;
		serial0 = &uart0;
	};

@@ -108,6 +109,22 @@
	status = "okay";
};

&emac {
	pinctrl-names = "default";
	pinctrl-0 = <&emac_rgmii_pins>;
	phy-supply = <&reg_gmac_3v3>;
	phy-handle = <&ext_rgmii_phy>;
	phy-mode = "rgmii";
	status = "okay";
};

&external_mdio {
	ext_rgmii_phy: ethernet-phy@7 {
		compatible = "ethernet-phy-ieee802.3-c22";
		reg = <7>;
	};
};

&mmc0 {
	pinctrl-names = "default";
	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
+17 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@
	};

	aliases {
		ethernet0 = &emac;
		serial0 = &uart0;
	};

@@ -136,6 +137,22 @@
	status = "okay";
};

&emac {
	pinctrl-names = "default";
	pinctrl-0 = <&emac_rgmii_pins>;
	phy-supply = <&reg_gmac_3v3>;
	phy-handle = <&ext_rgmii_phy>;
	phy-mode = "rgmii";
	status = "okay";
};

&external_mdio {
	ext_rgmii_phy: ethernet-phy@1 {
		compatible = "ethernet-phy-ieee802.3-c22";
		reg = <1>;
	};
};

&ir {
	pinctrl-names = "default";
	pinctrl-0 = <&ir_pins_a>;
+17 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@
	compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5";

	aliases {
		ethernet0 = &emac;
		serial0 = &uart0;
	};

@@ -143,6 +144,22 @@
	status = "okay";
};

&emac {
	pinctrl-names = "default";
	pinctrl-0 = <&emac_rgmii_pins>;
	phy-supply = <&reg_gmac_3v3>;
	phy-handle = <&ext_rgmii_phy>;
	phy-mode = "rgmii";
	status = "okay";
};

&external_mdio {
	ext_rgmii_phy: ethernet-phy@1 {
		compatible = "ethernet-phy-ieee802.3-c22";
		reg = <1>;
	};
};

&ir {
	pinctrl-names = "default";
	pinctrl-0 = <&ir_pins_a>;