From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mx.groups.io with SMTP id smtpd.web08.20078.1623608234646352313 for ; Sun, 13 Jun 2021 11:17:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=X8Tj962D; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.45, mailfrom: mw@semihalf.com) Received: by mail-lf1-f45.google.com with SMTP id x24so11546679lfr.10 for ; Sun, 13 Jun 2021 11:17:14 -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=C2FHH9zEV1PSQwaN6rdK63C4pWO+A5d1YPnwsphA9dI=; b=X8Tj962DLVVJWyLIRrEKiq0cEurRQAjDvlounFHTtZGvNrWYl0uv/DMvzkgctNj5PU +rmhFhuC91OMqcoV9oyoeqWLmqbZP9wprvD648tztjbHDxIfN+OzkayZtofe1C7Z1Sab TaI4Z5g1veAeEM+RsISm/hWXOxfKga/ZeBkASp31FeoIdp1KYw9vL13jBfPLYy82hgkt XyZAVady+7uhVH0HJjjqH4K88HTlwSQAFH8qg/Q6QqT7AY6zQPvZ83QN81yXkVHeghjy fOYgBeQapZCYEtbYM8wR7E5urlXFp21DgRmorVoOmnlgKzdGGJz4XQbaWiuXqTOHeQNw Cg5g== 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=C2FHH9zEV1PSQwaN6rdK63C4pWO+A5d1YPnwsphA9dI=; b=TKfd8d7iuyN+ZhAz3WdUPh2W9a8MTcAnWEL3EQkgcSKJ4C55OePzbJilChcykW9M2v v5z6uwogJF2jq81Et0SJVcsIZxb1j/o9mZVC1KwdkAyspyQHi+07SV9TpigNsuV0BmMc Rk5OuE03vU0v4Vsa+OQhXeGbqLnnl4t6vVWycI/b/DufnYTkULKjrPiFdtimBJoYd8n4 TYgq9REWlhHkqnI7TIX0kw48QTKW3L8+d/RGB0Z+2nAhzj3mSIuOABMUTyH6cA34i2f6 r8pf16JT2r72bVGb2EysGHxcBaI3zx2SOQ1pZ307TjsIQRSQs15Ljve9FLLucz416KPp KR2A== X-Gm-Message-State: AOAM532HRfMxY3a0SLehAw1QiHSUCspZXgNKaMInPiH/D+jHmQGHNhGn IAuRiEpg5GTkO/Y/IcZXwEF4qXXKEOCQ9g== X-Google-Smtp-Source: ABdhPJxUQVDr8KryGebpgTkV2RRr8KtDN6apav73Qi6mLcuDsuGu0YJbBy3dSCOK8iE+rnhVPRXyBg== X-Received: by 2002:a05:6512:2110:: with SMTP id q16mr9076831lfr.526.1623608232983; Sun, 13 Jun 2021 11:17:12 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 11:17:12 -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 4/4] Marvell/Armada80x0Db: Add ACPI MDIO description Date: Sun, 13 Jun 2021 20:16:31 +0200 Message-Id: <20210613181631.2247221-5-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 controllers, along with the 1G PHYs. Add also a missing 'managed' property to the 10G ports. Signed-off-by: Marcin Wojtas --- 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