From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mx.groups.io with SMTP id smtpd.web08.20076.1623608232936883920 for ; Sun, 13 Jun 2021 11:17:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=zr1Z6qPP; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.49, mailfrom: mw@semihalf.com) Received: by mail-lf1-f49.google.com with SMTP id bp38so17239281lfb.0 for ; Sun, 13 Jun 2021 11:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=orVPp7QmuJM+o/qO/xweHahHQPpfO7keiMIk9kbGMsQ=; b=zr1Z6qPPEH30eVqOlkk1tH8TildscPSIUf45nkqFVtlPO9PwKW8nc1iwgKygxkw1Tx Xt880oiO6XHFLvwKU0h9VWzE0x+2TzZpMMmoECk0UcvXYm3ICMuNf3NuuUIBD/d9fm+m S5J7ISCnoVcWXwGnR7okBDcdBsih8YV+HMpCmbdTb/IXaQon6tpLOAC3k8Ygr0afyxqG +fb6ZmcUdKKWasg8G48XwTZqjxr+zxHGNjEli5k2w8WBiQ+ZUTGuhU+hrwtZH1sya1TW ZIpD+YXs5WQ04PdBQVhpF2am2irNDFlo8Dz3GgyVEf/oQgt+JYx6KzX1fQwXzHFCv6L3 /Ebw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=orVPp7QmuJM+o/qO/xweHahHQPpfO7keiMIk9kbGMsQ=; b=Gik00N1FWjqqdoMX8X/Uq43bJaKgjIj59z3hiwQTFfoA59JqtzG7ZY1SuYTNCeonYy MHDbr7OpeiQA3WtcqEzcLpWCENg/uoWwqEwAIXvk8HfgAcWXpceWai0J1kL0E222XgMH kOxq856AkSZZmepCu1GTimktSRHYwFmhU4MTrJHeOoT84zoU4rZ3VKYZoX35qZOrJFQ5 w2C6Aq4zm9EGqrMutN/bEOCsauNKyEM7usB//0lXPQeh7VLtR6Tj36EPVSXY1orz1A/h rLCOMQ3lIzqkgUgo9RkYMbfQzJhUTptIOGWWNuw860c7BG5N6Ovh25b5VfB3Mqeofm8O CkiA== X-Gm-Message-State: AOAM530St8sd07FpGBCZhCeUnEgLwepWLpjc3BZ4f6QzK9od3VEoLX1z EaISWYwuoBxlvvCpdqYTszE9AuT+ScXCTQ== X-Google-Smtp-Source: ABdhPJxuxV2UjmGx6pwmrvtIhtAZjqys7hjfutumn7eYBA9bK4GMuF8wA1Mi1H2cmJBx5YKCAIbKiw== X-Received: by 2002:a05:6512:23a0:: with SMTP id c32mr1471897lfv.554.1623608231101; Sun, 13 Jun 2021 11:17:11 -0700 (PDT) Return-Path: Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id s16sm1521813ljh.139.2021.06.13.11.17.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 11:17:10 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif@nuviainc.com, ardb+tianocore@kernel.org, jaz@semihalf.com, gjb@semihalf.com, upstream@semihalf.com, Samer.El-Haj-Mahmoud@arm.com, jon@solid-run.com, Marcin Wojtas Subject: [edk2-platforms PATCH 2/4] Marvell/Cn913xDb: Add ACPI MDIO description Date: Sun, 13 Jun 2021 20:16:29 +0200 Message-Id: <20210613181631.2247221-3-mw@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210613181631.2247221-1-mw@semihalf.com> References: <20210613181631.2247221-1-mw@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 ports. Signed-off-by: Marcin Wojtas --- Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl | 1 + Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl | 24 ++++++++++= ++++++++++ 2 files changed, 25 insertions(+) diff --git a/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl b/S= ilicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl index 691a709c18..8377b13763 100644 --- a/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl +++ b/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl @@ -91,6 +91,7 @@ DefinitionBlock ("Cn9131DbASsdt.aml", "SSDT", 2, "MVEBU "= , "CN9131", 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 diff --git a/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl b/S= ilicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl index 30de868907..d76a2a902b 100644 --- a/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl +++ b/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl @@ -185,6 +185,27 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "CN9= 130", 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 @@ -218,6 +239,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "CN91= 30", 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 @@ -237,6 +259,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "CN91= 30", 3) Package () { "port-id", 1 },=0D Package () { "gop-port-id", 2 },=0D Package () { "phy-mode", "rgmii-id"},=0D + Package () { "phy-handle", \_SB.SMI0.PHY0},=0D }=0D })=0D }=0D @@ -256,6 +279,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "CN91= 30", 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