Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
* 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:
@@ -9,7 +10,7 @@ Optional properties:

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>;
+3 −0
Original line number Diff line number Diff line
@@ -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" },
	{ }
};