Commit efe20570 authored by Maxime Ripard's avatar Maxime Ripard Committed by David S. Miller

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: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4dae1686
* Allwinner A10 MDIO Ethernet Controller interface * Allwinner A10 MDIO Ethernet Controller interface
Required properties: 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. - reg: address and length of the register set for the device.
Optional properties: Optional properties:
...@@ -9,7 +10,7 @@ Optional properties: ...@@ -9,7 +10,7 @@ Optional properties:
Example at the SoC level: Example at the SoC level:
mdio@01c0b080 { mdio@01c0b080 {
compatible = "allwinner,sun4i-mdio"; compatible = "allwinner,sun4i-a10-mdio";
reg = <0x01c0b080 0x14>; reg = <0x01c0b080 0x14>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -170,6 +170,9 @@ static int sun4i_mdio_remove(struct platform_device *pdev) ...@@ -170,6 +170,9 @@ static int sun4i_mdio_remove(struct platform_device *pdev)
} }
static const struct of_device_id sun4i_mdio_dt_ids[] = { static const struct of_device_id sun4i_mdio_dt_ids[] = {
{ .compatible = "allwinner,sun4i-a10-mdio" },
/* Deprecated */
{ .compatible = "allwinner,sun4i-mdio" }, { .compatible = "allwinner,sun4i-mdio" },
{ } { }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment