Skip to content

Commit 4dae168

Browse files
mriparddavem330
authored andcommitted
net: ethernet: sunxi: Add new compatibles
The Allwinner A10 compatibles were following a slightly different compatible patterns than the rest of the SoCs for historical reasons. Add compatibles matching the other pattern to the ethernet driver for consistency, and keep the older one for backward compatibility. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 028b86b commit 4dae168

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Documentation/devicetree/bindings/net/allwinner,sun4i-emac.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
* Allwinner EMAC ethernet controller
22

33
Required properties:
4-
- compatible: should be "allwinner,sun4i-emac".
4+
- compatible: should be "allwinner,sun4i-a10-emac" (Deprecated:
5+
"allwinner,sun4i-emac")
56
- reg: address and length of the register set for the device.
67
- interrupts: interrupt for the device
78
- phy: A phandle to a phy node defining the PHY address (as the reg
@@ -14,7 +15,7 @@ Optional properties:
1415
Example:
1516

1617
emac: ethernet@01c0b000 {
17-
compatible = "allwinner,sun4i-emac";
18+
compatible = "allwinner,sun4i-a10-emac";
1819
reg = <0x01c0b000 0x1000>;
1920
interrupts = <55>;
2021
clocks = <&ahb_gates 17>;

drivers/net/ethernet/allwinner/sun4i-emac.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,9 @@ static int emac_resume(struct platform_device *dev)
929929
}
930930

931931
static const struct of_device_id emac_of_match[] = {
932+
{.compatible = "allwinner,sun4i-a10-emac",},
933+
934+
/* Deprecated */
932935
{.compatible = "allwinner,sun4i-emac",},
933936
{},
934937
};

0 commit comments

Comments
 (0)