Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Maxime Ripard and committed by
David S. Miller
efe20570 4dae1686

+6 -2
+3 -2
Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt
··· 1 1 * Allwinner A10 MDIO Ethernet Controller interface 2 2 3 3 Required properties: 4 - - compatible: should be "allwinner,sun4i-mdio". 4 + - compatible: should be "allwinner,sun4i-a10-mdio" 5 + (Deprecated: "allwinner,sun4i-mdio"). 5 6 - reg: address and length of the register set for the device. 6 7 7 8 Optional properties: ··· 10 9 11 10 Example at the SoC level: 12 11 mdio@01c0b080 { 13 - compatible = "allwinner,sun4i-mdio"; 12 + compatible = "allwinner,sun4i-a10-mdio"; 14 13 reg = <0x01c0b080 0x14>; 15 14 #address-cells = <1>; 16 15 #size-cells = <0>;
+3
drivers/net/phy/mdio-sun4i.c
··· 170 170 } 171 171 172 172 static const struct of_device_id sun4i_mdio_dt_ids[] = { 173 + { .compatible = "allwinner,sun4i-a10-mdio" }, 174 + 175 + /* Deprecated */ 173 176 { .compatible = "allwinner,sun4i-mdio" }, 174 177 { } 175 178 };