From patchwork Thu Jun 23 10:09:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12892046 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A3C1ECCA47C for ; Thu, 23 Jun 2022 10:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZeiSTA+gYS5jxsN8dxMnH3udDz0uwz0c2aWxcvJlZlg=; b=dUnMC9TLaMutYBX+s06WtTfO1K EWruyEyc5SELCswwqrxV+pbXDEqzdBwlcH/g1xfKGhQcCDZROY9SlmcGJVOZktNiES6xipE6Met/3 ysvElYsVFTtI7qYce0v+tAiRQ+saWWmS4PNbGAnWDTKLGBfEkMq3Rbr5hticZPQx9nt5OPbDrj7tp rxjl3DSbyi3jjTpM+DUrkRl+Jr4IzXIyOeGkLswlTwyMbAqpVewYDCGlruBXS6P/Al+GuxWWeO3xr CwOlZLdyQwakAM07rnHz/c9DkwdULjGKPpkDk7Z0v4nXjGdYot8tk4Gjk3Lz1Sbrpkb39TToYeBYZ a+zClqcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4Jn8-00ES10-7w; Thu, 23 Jun 2022 10:10:26 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4Jmn-00ERrm-CR; Thu, 23 Jun 2022 10:10:06 +0000 Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id A520666017CF; Thu, 23 Jun 2022 11:10:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655979004; bh=fdj/NDREE13nXimTiZFPKHxqmbz8mAHTy/iF6JaIN7U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KbhLxup9FZmSqGXBELMNjXZopSuyFCH+mOrVqAHuo9IseIS7pouJiI0NaKBxt3pZU KfGuMyfOxV4BQUoUe/2HsTR4sxN/RBZ8h6R7zoVdKU59whUASk6q5r6VHAanB/wKpV roAilsWSIgfpgQQSPD5XTKvIpATfhLcEr7+kEtwwvR5gBJDFQzgauAqMoOHRInP71V EGD7PH8TMKZyUNMSaDx0H/K8+FFLWgQqNiVPQEJUvG+fKqK6gJrn3gWydLZhVfmfnB /fH3TqVph350nKJnE9KIbdRdmvNZp5xWU703CvaYtwEP6LO7lCAhWWOh5DDhcxv06I 2U0c7UmlIs3Cw== From: AngeloGioacchino Del Regno To: robh+dt@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH 1/5] soc: mediatek: mt8192-pm-domains: Allow probing vreg supply on MFG0/1 Date: Thu, 23 Jun 2022 12:09:47 +0200 Message-Id: <20220623100951.21153-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> References: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220623_031005_593391_4DE1BCDA X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The MT8192 SoC has multiple MFG power-domains, exclusively used for the GPU which, in turn, requires external power supplies: add the MTK_SCPD_DOMAIN_SUPPLY cap to MFG0 and MFG1 to allow voting for regulators on/off upon usage of these power domains. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/mediatek/mt8192-pm-domains.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/mediatek/mt8192-pm-domains.h b/drivers/soc/mediatek/mt8192-pm-domains.h index 558c4ee4784a..b97b2051920f 100644 --- a/drivers/soc/mediatek/mt8192-pm-domains.h +++ b/drivers/soc/mediatek/mt8192-pm-domains.h @@ -58,6 +58,7 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8192[] = { .pwr_sta2nd_offs = 0x0170, .sram_pdn_bits = GENMASK(8, 8), .sram_pdn_ack_bits = GENMASK(12, 12), + .caps = MTK_SCPD_DOMAIN_SUPPLY, }, [MT8192_POWER_DOMAIN_MFG1] = { .name = "mfg1", @@ -85,6 +86,7 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8192[] = { MT8192_TOP_AXI_PROT_EN_2_CLR, MT8192_TOP_AXI_PROT_EN_2_STA1), }, + .caps = MTK_SCPD_DOMAIN_SUPPLY, }, [MT8192_POWER_DOMAIN_MFG2] = { .name = "mfg2", From patchwork Thu Jun 23 10:09:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12892048 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1F7BC43334 for ; Thu, 23 Jun 2022 10:11:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=95JFI3t5tzea5C3bBX/GI2kh0xSak+21TaQ80pe6mjo=; b=Yo1VGtC+Lr+KMPk85AAqszXbM5 fugPRfYsCL7OQVSP3Ep5kswJAwm8INOBGl941NrwlWkydE2NMk7XZTzTv1ZGub9sqz9MiJW1fhscN 0m1zxMnHAsjsw5xZHdxdSHcbdYNeIY8qHzWVN/Kj5F1evIPzhvgQDbLL87Kfj4toqadlNb5jKrRWz sTVqnos0fSCfZBL9GOswnvsIFJ/r0AEOoJEAmcWylyFzi9L6HYf28Q0i5Kho60GBni1gCHVyJiUW3 +11+yU28bpt6yMqTzb94wSTVpz16p2YsWjd1ZF5Z4ibV9qK1d1rvMFrmNRvAVfUAxlR3rrPqEy+LP Am2iw9XA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4Jng-00ESI2-87; Thu, 23 Jun 2022 10:11:00 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4Jmn-00ERrn-Vh; Thu, 23 Jun 2022 10:10:07 +0000 Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 467BA66017B4; Thu, 23 Jun 2022 11:10:04 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655979004; bh=CoBtqHoaJ3crvrFEw2/iijyoBgcPexhypiGbzCdpsQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kk6kNeH/ymNQtWIUdrryOOACFxxYI6sdBOrYPVwRB2Do2i6U6qxFK/zAb7sLRgJE9 xUhM+HWCZJF0xcxUe7r7aMc5ro+MNopm0iE8+pE4jGfmkR75dOGq2Qwi8z3C4/kYFv Xb50jnDqvB+mbV605xxIvO3c9vPwscpIoWBXkU/JBRA9DnyB4YWLF58puDmG7WN3q1 Jbf4RnjRTqegmU3BBxkTDTFpJj8I4ocDurd9xlPUdXmMw31kVzZ7uG4p8OyHDFx9my sPZjvweyKwmgqJg/xjPZLcJiOpSyiufF7xC4YTsY7iy5g1droDJBL95nOW+BnbGBx0 8afLewG6QLrDA== From: AngeloGioacchino Del Regno To: robh+dt@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH 2/5] soc: mediatek: mt8183-pm-domains: Allow probing vreg supply on MFG_ASYNC Date: Thu, 23 Jun 2022 12:09:48 +0200 Message-Id: <20220623100951.21153-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> References: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220623_031006_186421_CC17D6A8 X-CRM114-Status: UNSURE ( 9.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the MTK_SCPD_DOMAIN_SUPPLY cap to the MFG_ASYNC power domain in order to be able to vote for GPU-related regulators on/off. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/mediatek/mt8183-pm-domains.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/mediatek/mt8183-pm-domains.h b/drivers/soc/mediatek/mt8183-pm-domains.h index 71b8757e552d..99de67fe5de8 100644 --- a/drivers/soc/mediatek/mt8183-pm-domains.h +++ b/drivers/soc/mediatek/mt8183-pm-domains.h @@ -41,6 +41,7 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8183[] = { .pwr_sta2nd_offs = 0x0184, .sram_pdn_bits = 0, .sram_pdn_ack_bits = 0, + .caps = MTK_SCPD_DOMAIN_SUPPLY, }, [MT8183_POWER_DOMAIN_MFG] = { .name = "mfg", From patchwork Thu Jun 23 10:09:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12892049 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F3839C433EF for ; Thu, 23 Jun 2022 10:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oY+Pnvadw0/Gxu9Yiogd5miDKzvP5WPdhbnpel4dXTw=; b=s8h5ODZuWFpTvqyWzYqTDE4onL Ofyd0blzvtGhTpIzh/lla5B+/1Yy9oE20PSuxQKIRKddEYn+41qHaed7L8uXqmvVb9VEaEqE0Y1oL c/up7tjtldhzSxM6NcinhEnTo8MTCsY5F7c5cWCF7qAV9mRnGvccPoQQFCbS/5MRiG/FPgrlGQDAs pPcjL2ss8Gqk5l+XMbsSRUEZuJVhSUdkKPCKBArD0P6DEw7ZD4/YUSN1PS1lwy2BwEfIwtF0J4/nT Pvyz6MaTOnw9cWrt13lJSXh3Nqxjmopt8TXdUs10EiWvoM9TywkAUhazC1QuRyHUEX8vpQCBsbWl1 uGLclkUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4Jnh-00ESIW-OQ; Thu, 23 Jun 2022 10:11:01 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4Jmo-00ERsX-JI; Thu, 23 Jun 2022 10:10:07 +0000 Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id E611766017CE; Thu, 23 Jun 2022 11:10:04 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655979005; bh=MQ1fY3/YQ3FihXnEhKH3AztkzbIz3/gmcC+bWRFCvME=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PBw4goKZ9D8tsWxsCWyAIkBmRrVwO0yz2+VyTndpY80/CNjsum6ZgnxhGGc6TVhwC RA1hsnPYrqs+0NJZR1pAtsTPeMKH07O5HBe7WK6WZLcvNJIQwWsm1PZaX0A2u0m3yg Tq5Lcck28IuNQluwf36YvUJq5KsFqS1IPnsxSC8zO2JdtRH0ljpZkCJAs1RrSSIrkS YgZZkYhW/NluE9v9rqJtcBiIugfwthAMRKNif4nqyp7yXev/0CCMQyc2W+zPbmyRiU NxLVWqw4EZpCjRcsi3WsakLcaI3KRrFOhE3yB3LKpmqX8waCwM0s5g1m8Sgt0KTqSu +fpQj4iVxrlZQ== From: AngeloGioacchino Del Regno To: robh+dt@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH 3/5] soc: mediatek: mt8195-pm-domains: Allow probing vreg supply on MFG1 Date: Thu, 23 Jun 2022 12:09:49 +0200 Message-Id: <20220623100951.21153-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> References: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220623_031006_827968_F8049617 X-CRM114-Status: GOOD ( 11.63 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org As done in MT8192, also add the MTK_SCPD_DOMAIN_SUPPLY cap to the MFG1 power domain in MT8195 to allow voting for regulators on/off. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/mediatek/mt8195-pm-domains.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mt8195-pm-domains.h b/drivers/soc/mediatek/mt8195-pm-domains.h index 0529d130b675..d7387ea1b9c9 100644 --- a/drivers/soc/mediatek/mt8195-pm-domains.h +++ b/drivers/soc/mediatek/mt8195-pm-domains.h @@ -162,7 +162,7 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8195[] = { MT8195_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_CLR, MT8195_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_STA1), }, - .caps = MTK_SCPD_KEEP_DEFAULT_OFF, + .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY, }, [MT8195_POWER_DOMAIN_MFG2] = { .name = "mfg2", From patchwork Thu Jun 23 10:09:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12892050 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43318C43334 for ; Thu, 23 Jun 2022 10:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LMgCK3pwnxf5oYWJe93ENbvYx0hUewwpFIPzFHxOi/k=; b=sRRgjBe45RRNhYQ+JdcM9vKvFs 7LXjifB7nWLJm/JlP9J4UDvNfmMp/8cPG2S5uSkv/vf3fHnxsHXpGvxG8scoxAeNKom+YbGcPdtwr z9dhPHfenM+UGEErwfBvLdN8ET4F0rcsp6CSKWhtP+7fN4RfA3JahnFonVWkzdYl69kRNrpOSrDO1 DDa73eOcSQ4UM+xrm6AmtGKaXccGDbs3cW57cC3OxKDf0bosv70AbSj5V06aKXI9syCBAHGkGuahr DPuq4cnkJ2++EnHHnshz60vjRuUo5QIj1gAA6UKsqlQnxpNkVPQD4O5XTwkpg3jQ0AEiEZE4jmUQO Cx3P1rVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4JoF-00ESeD-Tj; Thu, 23 Jun 2022 10:11:35 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4Jmr-00ERsn-8F; Thu, 23 Jun 2022 10:10:10 +0000 Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 892C666017D1; Thu, 23 Jun 2022 11:10:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655979006; bh=ArWDB16Gc91tVSWokUuwuvangO7rCvezoVWw+007RDo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i+VlilDqcFJfuiZNeFUzVfy19TIIdmZyQrqcwbm0C5oiznKm+2WoqBKMTB78nm/Ya S6Ggl+YSv1lT2DrAmfTXeX9lV8aXrkUI3/r0DXVe2pchDedAjnZNq5MPHEOBD5iP3+ ySUtIuYVk7vYTEZCmemo5FaDesfv/wBPqadqGY528bMIJksgidERS0HHajvx3R3dbW sLOSLLM6ANkwGSKcrRRdNSSxuHzf9yFULxB4yQGdz8Q0jset7C0NPoYkmOArXG4jpF isQPEpwGAFxUVHoMOduqZGkWlI/2eRmsV/iGQxDPRRce/Tj8vCx9k01VFlDQTww4il ukVy4Rpw7YiYg== From: AngeloGioacchino Del Regno To: robh+dt@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH 4/5] soc: mediatek: mt8186-pm-domains: Allow probing vreg supply on MFG1 Date: Thu, 23 Jun 2022 12:09:50 +0200 Message-Id: <20220623100951.21153-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> References: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220623_031009_498660_8ECFB975 X-CRM114-Status: GOOD ( 11.09 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the MTK_SCPD_DOMAIN_SUPPLY cap to the MFG1 power domain in MT8186 to allow voting for sram regulators on/off. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/mediatek/mt8186-pm-domains.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mt8186-pm-domains.h b/drivers/soc/mediatek/mt8186-pm-domains.h index bf2dd0cdc3a8..108af61854a3 100644 --- a/drivers/soc/mediatek/mt8186-pm-domains.h +++ b/drivers/soc/mediatek/mt8186-pm-domains.h @@ -51,7 +51,7 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8186[] = { MT8186_TOP_AXI_PROT_EN_1_CLR, MT8186_TOP_AXI_PROT_EN_1_STA), }, - .caps = MTK_SCPD_KEEP_DEFAULT_OFF, + .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY, }, [MT8186_POWER_DOMAIN_MFG2] = { .name = "mfg2", From patchwork Thu Jun 23 10:09:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12892051 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F464CCA480 for ; Thu, 23 Jun 2022 10:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iTzfwVQNhQYk3LSeDUOpai/aL5+NZ7UnxvSU/1W/PzI=; b=uoS28dAdgsBqN1z9HIc2py6BGU oqhuretyUQOzKiLm8HBp+FRI8lu3Akm4++viBMcnaGa6o8QsOOrF8CbLIy7QcotVowYu6LhnhSV3m cvOUcXLQcEtpeT09LWzLA4E+8EXkllbnrPqvIMDV1Smf7IHWGf+UiOzslly2xGDNzYQlM762yBfIV N18UQUSmtI/nW6mV5xZKcZlYy6rn3+kHv78wn8DWxlumg32j/g35pnA6xLClbrMVOOhJpKNIdVOBn koCEvi3HcPW3gcxQeUmoojdnyp6KOD8y16NOI17k5q4dm0RYeRQ4HLGo71caZVBjmCbkd88a6hFgg 8pubm3wA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4JoG-00ESev-Qc; Thu, 23 Jun 2022 10:11:36 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4Jmr-00ERtI-8G; Thu, 23 Jun 2022 10:10:10 +0000 Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 36FD566017D0; Thu, 23 Jun 2022 11:10:06 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655979006; bh=ZgzmMPSygjLJDHZK16WVrb6boCW48PbwILdNxmzVx4o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b5OyyYCZT9D/A+T06gMVb/yfzIImNPIFoiDSaLXV7pCtC7jU0XBbKh2GzOSlIQmME Qs0f4Xqi+zl93TDWEQzkMHrunxW/5YaAMorotCo3mbNBI2WUFdWbp6kQaS9ndcxiYF ITIVZOlPzV8KKrwTxgDLu7jibHCZFYvQcP2+mqCEyhSbzcL/UZrISOlsW5MwR08jz1 QMp4o72jSPLlmWk1fbdjJC8YZicdctiqDkQxj/5uVmvOEFuMUpdgcT0R4pfXsc/1KK TfNLq/StExqA7YQo+jXRDe1fzmP0S4GC8BJJMEtvypmOi58ZmMqBIvd7nzu4Oaa9ma OPv4QeDWmruqQ== From: AngeloGioacchino Del Regno To: robh+dt@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH 5/5] arm64: dts: mediatek: mt8183-kukui: Assign sram supply to mfg_async pd Date: Thu, 23 Jun 2022 12:09:51 +0200 Message-Id: <20220623100951.21153-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> References: <20220623100951.21153-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220623_031009_488518_6E0B4343 X-CRM114-Status: GOOD ( 11.32 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add a phandle to the MT8183_POWER_DOMAIN_MFG_ASYNC power domain and assign the GPU VSRAM supply to this in mt8183-kukui: this allows to keep the sram powered up while the GPU is used. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 4 ++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index 89e4358f140a..33f3bf277ce9 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -821,6 +821,10 @@ cros_ec { }; }; +&mfg_async { + domain-supply = <&mt6358_vsram_gpu_reg>; +}; + &mfg { domain-supply = <&mt6358_vgpu_reg>; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 9485c1efc87c..9d32871973a2 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -788,7 +788,7 @@ power-domain@MT8183_POWER_DOMAIN_CONN { #power-domain-cells = <0>; }; - power-domain@MT8183_POWER_DOMAIN_MFG_ASYNC { + mfg_async: power-domain@MT8183_POWER_DOMAIN_MFG_ASYNC { reg = ; clocks = <&topckgen CLK_TOP_MUX_MFG>; clock-names = "mfg";