From patchwork Wed Feb 8 10:45:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 54376 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3381914wrn; Wed, 8 Feb 2023 02:48:53 -0800 (PST) X-Google-Smtp-Source: AK7set9jFbq/RP77/4+lNof+fPRCxgBpcA9wS0YHdqZfpZVGcF1Eu+uDoLcVjrYv7q8omjDRmGAm X-Received: by 2002:a17:906:2085:b0:8aa:a9df:b7f0 with SMTP id 5-20020a170906208500b008aaa9dfb7f0mr5217341ejq.7.1675853333601; Wed, 08 Feb 2023 02:48:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675853333; cv=none; d=google.com; s=arc-20160816; b=aODdAXJVq9i6kQdLnOGR7Giat7iL3EXRSKouVFzhUW7lmkK6tMK+JpVn7Z5wk6Fmgo 82MKl1yDWtWtdgHE7Pm1hufJ2/CdzYPbQAN2wwKrYJDKEz9pkjrgg6tix14J13+H+LXr uEPzU+/zpCxWKomNYg0NA7kXPdfcDXYEAp3R079mm54vMW055ykM3Y8n4ogjpWgRCxmJ 4dw3IRs5mUPVonGotDG6l6GCN0UCLJapb7K/9frTsaTKdPmfAW3sm8WfvnqK2S2zxoyZ hjlaMwD8VIU20OrkXKhl7J904jowS4PSfwdmfAD67flrbbilk2VblKX/JEByNU2yYexW uWyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NPVkzXD0y7FrrfPz3BYNkGmHlmh/mtfb/jlWaNflUlc=; b=st4qzzPmAK7rvKeLjP19gNb/k+Z3Lwz24Y4b8eoHSw6tKxrfX3Os48bRzag5ZFn22k 3XMW/xGbjmgXUCVUMwbh+2l8vEo0FCQgxwohVhqhZ3vGRPpR8c94ENJjCoRWYpoDkNxs dqNNyFvDqpl4nagLyL8YX7kFzstZaX0ugHmkfZthqRVNQS50m9M4n/d0OMklJ/wC9Sdq vuvpFR3w13bxkB8O4i7ZbFCUcV2062tiCxRuoUAUajCC4wdQ71tHNVOHJlyKH3suihGs C1YjgdJtAiPyqYaEpFpzf6PqkFPrduhVLYHUy9zBGfhsQVC9+D/znbvmsBqm6D47aVT5 fKlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Gx6Z6j9V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wi3-20020a170906fd4300b00886de65e96csi17748269ejb.965.2023.02.08.02.48.31; Wed, 08 Feb 2023 02:48:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Gx6Z6j9V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231258AbjBHKqa (ORCPT + 99 others); Wed, 8 Feb 2023 05:46:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230364AbjBHKqI (ORCPT ); Wed, 8 Feb 2023 05:46:08 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 330094859B; Wed, 8 Feb 2023 02:45:57 -0800 (PST) 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 3503D66020A1; Wed, 8 Feb 2023 10:45:42 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1675853142; bh=mhl1CTumhgyodipibc6iIlxxn58Kbt1J0bEZfVVQx2o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gx6Z6j9Vfk/zIYcAIhInBZGNpZPDvNfKcky8BLgzdwjh4x2v9swakwpPrNLA1ojth BKDp98gIkUWVNpg1u6yTXyrOZB+gr30ypXvEJe3GWyGQiwsRaFmAlpgcBpWllhbpVH KkbAbzPVJmvIqrv1xlcj1bfvRbs6VQNMR2FBYqFmk+5AR4hFf4Rd+CIp2Y+qELGoKQ tfo6AzaHL+v4L/pgw5PD5FAj0CoxH2QfP/CJ7Xe6JAnAWDrcpwFKTin2zDT3CwaxDB JE8Ac505C52JsXxcfw9cj01yMxmTBYD/F2Y0/v0b4FQs+20XdkI2AuP+mG8IVYLXxR lgchIfi7VohaQ== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org Subject: [PATCH 10/16] arm64: dts: mediatek: mt8192-asurada: Assign sram supply to MFG1 pd Date: Wed, 8 Feb 2023 11:45:21 +0100 Message-Id: <20230208104527.118929-11-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230208104527.118929-1-angelogioacchino.delregno@collabora.com> References: <20230208104527.118929-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757259585134824546?= X-GMAIL-MSGID: =?utf-8?q?1757259585134824546?= Add a phandle to the MT8192_POWER_DOMAIN_MFG1 power domain and assign the GPU VSRAM supply to this in mt8192-asurada: this allows to keep the sram powered up while the GPU is used. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 4 ++++ arch/arm64/boot/dts/mediatek/mt8192.dtsi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index ec013d5ef157..df477eb89f21 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -384,6 +384,10 @@ &mfg0 { domain-supply = <&mt6315_7_vbuck1>; }; +&mfg1 { + domain-supply = <&mt6359_vsram_others_ldo_reg>; +}; + &mipi_tx0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 686d5cc22d6a..e7669cd80040 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -506,7 +506,7 @@ mfg0: power-domain@MT8192_POWER_DOMAIN_MFG0 { #size-cells = <0>; #power-domain-cells = <1>; - power-domain@MT8192_POWER_DOMAIN_MFG1 { + mfg1: power-domain@MT8192_POWER_DOMAIN_MFG1 { reg = ; mediatek,infracfg = <&infracfg>; #address-cells = <1>;