[edk2-platforms PATCH 4/4] Marvell/Armada80x0Db: Add ACPI MDIO description


Marcin Wojtas
 

As the MDIO ACPI binding in DSDT is now established,
add description for the SMI controllers, along with the 1G PHYs.
Add also a missing 'managed' property to the 10G ports.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
---
Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl | 38 +++++++++=
+++++++++++
1 file changed, 38 insertions(+)

diff --git a/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl b/=
Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl
index 62ba62c7d2..91401c74c8 100644
--- a/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl
+++ b/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl
@@ -229,6 +229,23 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "ARM=
ADA8K", 3)
})=0D
}=0D
=0D
+ Device (SMI0)=0D
+ {=0D
+ Name (_HID, "MRVL0100") // _HID: H=
ardware ID=0D
+ Name (_UID, 0x00) // _UID: U=
nique ID=0D
+ Name (_CRS, ResourceTemplate ()=0D
+ {=0D
+ Memory32Fixed (ReadWrite,=0D
+ 0xf212a200, // Address=
Base=0D
+ 0x00000010, // Address=
Length=0D
+ )=0D
+ })=0D
+ Device (PHY1)=0D
+ {=0D
+ Name (_ADR, 0x1)=0D
+ }=0D
+ }=0D
+=0D
Device (PP20)=0D
{=0D
Name (_HID, "MRVL0110") // _HID: H=
ardware ID=0D
@@ -262,6 +279,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "ARMA=
DA8K", 3)
Package () { "port-id", 0 },=0D
Package () { "gop-port-id", 0 },=0D
Package () { "phy-mode", "10gbase-kr"},=0D
+ Package () { "managed", "in-band-status"},=0D
}=0D
})=0D
}=0D
@@ -281,11 +299,29 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "AR=
MADA8K", 3)
Package () { "port-id", 2 },=0D
Package () { "gop-port-id", 3 },=0D
Package () { "phy-mode", "rgmii-id"},=0D
+ Package () { "phy-handle", \_SB.SMI0.PHY1},=0D
}=0D
})=0D
}=0D
}=0D
=0D
+ Device (SMI1)=0D
+ {=0D
+ Name (_HID, "MRVL0100") // _HID: H=
ardware ID=0D
+ Name (_UID, 0x01) // _UID: U=
nique ID=0D
+ Name (_CRS, ResourceTemplate ()=0D
+ {=0D
+ Memory32Fixed (ReadWrite,=0D
+ 0xf412a200, // Address=
Base=0D
+ 0x00000010, // Address=
Length=0D
+ )=0D
+ })=0D
+ Device (PHY0)=0D
+ {=0D
+ Name (_ADR, 0x0)=0D
+ }=0D
+ }=0D
+=0D
Device (PP21)=0D
{=0D
Name (_HID, "MRVL0110") // _HID: H=
ardware ID=0D
@@ -319,6 +355,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "ARMA=
DA8K", 3)
Package () { "port-id", 0 },=0D
Package () { "gop-port-id", 0 },=0D
Package () { "phy-mode", "10gbase-kr"},=0D
+ Package () { "managed", "in-band-status"},=0D
}=0D
})=0D
}=0D
@@ -338,6 +375,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "ARMA=
DA8K", 3)
Package () { "port-id", 1 },=0D
Package () { "gop-port-id", 2 },=0D
Package () { "phy-mode", "rgmii-id"},=0D
+ Package () { "phy-handle", \_SB.SMI1.PHY0},=0D
}=0D
})=0D
}=0D
--=20
2.29.0

Join devel@edk2.groups.io to automatically receive all group messages.