Skip to content

Commit 4b236a0

Browse files
montjoiemripard
authored andcommitted
arm: dts: sunxi: h3/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 sunxi-h3-h5.dtsi This reverts partially commit fe45174 ("arm: dts: sunxi: Revert EMAC changes") Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 079573e commit 4b236a0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

arch/arm/boot/dts/sunxi-h3-h5.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,32 @@
396396
clocks = <&osc24M>;
397397
};
398398

399+
emac: ethernet@1c30000 {
400+
compatible = "allwinner,sun8i-h3-emac";
401+
syscon = <&syscon>;
402+
reg = <0x01c30000 0x10000>;
403+
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
404+
interrupt-names = "macirq";
405+
resets = <&ccu RST_BUS_EMAC>;
406+
reset-names = "stmmaceth";
407+
clocks = <&ccu CLK_BUS_EMAC>;
408+
clock-names = "stmmaceth";
409+
#address-cells = <1>;
410+
#size-cells = <0>;
411+
status = "disabled";
412+
413+
mdio: mdio {
414+
#address-cells = <1>;
415+
#size-cells = <0>;
416+
int_mii_phy: ethernet-phy@1 {
417+
compatible = "ethernet-phy-ieee802.3-c22";
418+
reg = <1>;
419+
clocks = <&ccu CLK_BUS_EPHY>;
420+
resets = <&ccu RST_BUS_EPHY>;
421+
};
422+
};
423+
};
424+
399425
spi0: spi@1c68000 {
400426
compatible = "allwinner,sun8i-h3-spi";
401427
reg = <0x01c68000 0x1000>;

0 commit comments

Comments
 (0)