Skip to content

Commit efe2057

Browse files
mriparddavem330
authored andcommitted
net: phy: 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 mdio 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 4dae168 commit efe2057

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
* Allwinner A10 MDIO Ethernet Controller interface
22

33
Required properties:
4-
- compatible: should be "allwinner,sun4i-mdio".
4+
- compatible: should be "allwinner,sun4i-a10-mdio"
5+
(Deprecated: "allwinner,sun4i-mdio").
56
- reg: address and length of the register set for the device.
67

78
Optional properties:
89
- phy-supply: phandle to a regulator if the PHY needs one
910

1011
Example at the SoC level:
1112
mdio@01c0b080 {
12-
compatible = "allwinner,sun4i-mdio";
13+
compatible = "allwinner,sun4i-a10-mdio";
1314
reg = <0x01c0b080 0x14>;
1415
#address-cells = <1>;
1516
#size-cells = <0>;

drivers/net/phy/mdio-sun4i.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ static int sun4i_mdio_remove(struct platform_device *pdev)
170170
}
171171

172172
static const struct of_device_id sun4i_mdio_dt_ids[] = {
173+
{ .compatible = "allwinner,sun4i-a10-mdio" },
174+
175+
/* Deprecated */
173176
{ .compatible = "allwinner,sun4i-mdio" },
174177
{ }
175178
};

0 commit comments

Comments
 (0)