1 From efe205704fa8435b7bca495138dd2dbd973e0c28 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Sun, 2 Feb 2014 14:49:12 +0100
4 Subject: [PATCH] net: phy: sunxi: Add new compatibles
6 The Allwinner A10 compatibles were following a slightly different compatible
7 patterns than the rest of the SoCs for historical reasons. Add compatibles
8 matching the other pattern to the mdio driver for consistency, and keep the
9 older one for backward compatibility.
11 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
14 Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt | 5 +++--
15 drivers/net/phy/mdio-sun4i.c | 3 +++
16 2 files changed, 6 insertions(+), 2 deletions(-)
18 diff --git a/Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt b/Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt
19 index 00b9f9a..4ec5641 100644
20 --- a/Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt
21 +++ b/Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt
23 * Allwinner A10 MDIO Ethernet Controller interface
26 -- compatible: should be "allwinner,sun4i-mdio".
27 +- compatible: should be "allwinner,sun4i-a10-mdio"
28 + (Deprecated: "allwinner,sun4i-mdio").
29 - reg: address and length of the register set for the device.
32 @@ -9,7 +10,7 @@ Optional properties:
34 Example at the SoC level:
36 - compatible = "allwinner,sun4i-mdio";
37 + compatible = "allwinner,sun4i-a10-mdio";
38 reg = <0x01c0b080 0x14>;
41 diff --git a/drivers/net/phy/mdio-sun4i.c b/drivers/net/phy/mdio-sun4i.c
42 index bb88bc7..9367acc 100644
43 --- a/drivers/net/phy/mdio-sun4i.c
44 +++ b/drivers/net/phy/mdio-sun4i.c
45 @@ -170,6 +170,9 @@ static int sun4i_mdio_remove(struct platform_device *pdev)
48 static const struct of_device_id sun4i_mdio_dt_ids[] = {
49 + { .compatible = "allwinner,sun4i-a10-mdio" },
52 { .compatible = "allwinner,sun4i-mdio" },