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


Marcin Wojtas
 

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

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

diff --git a/Silicon/Marvell/Armada7k8k/AcpiTables/Armada70x0Db/Dsdt.asl b/=
Silicon/Marvell/Armada7k8k/AcpiTables/Armada70x0Db/Dsdt.asl
index d4902652ec..345c1e4dd6 100644
--- a/Silicon/Marvell/Armada7k8k/AcpiTables/Armada70x0Db/Dsdt.asl
+++ b/Silicon/Marvell/Armada7k8k/AcpiTables/Armada70x0Db/Dsdt.asl
@@ -182,6 +182,27 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "ARM=
ADA7K", 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 (PHY0)=0D
+ {=0D
+ Name (_ADR, 0x0)=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
@@ -215,6 +236,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "ARMA=
DA7K", 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
@@ -234,6 +256,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "ARMA=
DA7K", 3)
Package () { "port-id", 1 },=0D
Package () { "gop-port-id", 2 },=0D
Package () { "phy-mode", "sgmii"},=0D
+ Package () { "phy-handle", \_SB.SMI0.PHY0},=0D
}=0D
})=0D
}=0D
@@ -253,6 +276,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "ARMA=
DA7K", 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
--=20
2.29.0

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