diff options
-rw-r--r-- | Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt | 5 | ||||
-rw-r--r-- | drivers/net/phy/mdio-sun4i.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt b/Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt index 00b9f9a3ec1d..4ec56413779d 100644 --- a/Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt +++ b/Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt | |||
@@ -1,7 +1,8 @@ | |||
1 | * Allwinner A10 MDIO Ethernet Controller interface | 1 | * Allwinner A10 MDIO Ethernet Controller interface |
2 | 2 | ||
3 | Required properties: | 3 | Required properties: |
4 | - compatible: should be "allwinner,sun4i-mdio". | 4 | - compatible: should be "allwinner,sun4i-a10-mdio" |
5 | (Deprecated: "allwinner,sun4i-mdio"). | ||
5 | - reg: address and length of the register set for the device. | 6 | - reg: address and length of the register set for the device. |
6 | 7 | ||
7 | Optional properties: | 8 | Optional properties: |
@@ -9,7 +10,7 @@ Optional properties: | |||
9 | 10 | ||
10 | Example at the SoC level: | 11 | Example at the SoC level: |
11 | mdio@01c0b080 { | 12 | mdio@01c0b080 { |
12 | compatible = "allwinner,sun4i-mdio"; | 13 | compatible = "allwinner,sun4i-a10-mdio"; |
13 | reg = <0x01c0b080 0x14>; | 14 | reg = <0x01c0b080 0x14>; |
14 | #address-cells = <1>; | 15 | #address-cells = <1>; |
15 | #size-cells = <0>; | 16 | #size-cells = <0>; |
diff --git a/drivers/net/phy/mdio-sun4i.c b/drivers/net/phy/mdio-sun4i.c index bb88bc7d81fb..9367acc84fbb 100644 --- a/drivers/net/phy/mdio-sun4i.c +++ b/drivers/net/phy/mdio-sun4i.c | |||
@@ -170,6 +170,9 @@ static int sun4i_mdio_remove(struct platform_device *pdev) | |||
170 | } | 170 | } |
171 | 171 | ||
172 | static const struct of_device_id sun4i_mdio_dt_ids[] = { | 172 | static const struct of_device_id sun4i_mdio_dt_ids[] = { |
173 | { .compatible = "allwinner,sun4i-a10-mdio" }, | ||
174 | |||
175 | /* Deprecated */ | ||
173 | { .compatible = "allwinner,sun4i-mdio" }, | 176 | { .compatible = "allwinner,sun4i-mdio" }, |
174 | { } | 177 | { } |
175 | }; | 178 | }; |