Skip to content

Commit

Permalink
net: phy: sunxi: Add new compatibles
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maxime Ripard authored and David S. Miller committed Feb 7, 2014
1 parent 4dae168 commit efe2057
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
* Allwinner A10 MDIO Ethernet Controller interface

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

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

Example at the SoC level:
mdio@01c0b080 {
compatible = "allwinner,sun4i-mdio";
compatible = "allwinner,sun4i-a10-mdio";
reg = <0x01c0b080 0x14>;
#address-cells = <1>;
#size-cells = <0>;
Expand Down
3 changes: 3 additions & 0 deletions drivers/net/phy/mdio-sun4i.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ static int sun4i_mdio_remove(struct platform_device *pdev)
}

static const struct of_device_id sun4i_mdio_dt_ids[] = {
{ .compatible = "allwinner,sun4i-a10-mdio" },

/* Deprecated */
{ .compatible = "allwinner,sun4i-mdio" },
{ }
};
Expand Down

0 comments on commit efe2057

Please sign in to comment.