Commit 2027c1d3 authored by Simon Guinot's avatar Simon Guinot Committed by Kamal Mostafa

net: mvneta: introduce compatible string "marvell, armada-xp-neta"

[ Upstream commit f522a975 ]

The mvneta driver supports the Ethernet IP found in the Armada 370, XP,
380 and 385 SoCs. Since at least one more hardware feature is available
for the Armada XP SoCs then a way to identify them is needed.

This patch introduces a new compatible string "marvell,armada-xp-neta".
Signed-off-by: default avatarSimon Guinot <simon.guinot@sequanux.org>
Fixes: c5aff182 ("net: mvneta: driver for Marvell Armada 370/XP network unit")
Acked-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent fb0e5c08
* Marvell Armada 370 / Armada XP Ethernet Controller (NETA) * Marvell Armada 370 / Armada XP Ethernet Controller (NETA)
Required properties: Required properties:
- compatible: should be "marvell,armada-370-neta". - compatible: "marvell,armada-370-neta" or "marvell,armada-xp-neta".
- reg: address and length of the register set for the device. - reg: address and length of the register set for the device.
- interrupts: interrupt for the device - interrupts: interrupt for the device
- phy: See ethernet.txt file in the same directory. - phy: See ethernet.txt file in the same directory.
......
...@@ -3100,6 +3100,7 @@ static int mvneta_remove(struct platform_device *pdev) ...@@ -3100,6 +3100,7 @@ static int mvneta_remove(struct platform_device *pdev)
static const struct of_device_id mvneta_match[] = { static const struct of_device_id mvneta_match[] = {
{ .compatible = "marvell,armada-370-neta" }, { .compatible = "marvell,armada-370-neta" },
{ .compatible = "marvell,armada-xp-neta" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, mvneta_match); MODULE_DEVICE_TABLE(of, mvneta_match);
......
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