From patchwork Wed Feb 8 10:45:12 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: 54368 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3381166wrn; Wed, 8 Feb 2023 02:46:53 -0800 (PST) X-Google-Smtp-Source: AK7set89uzaIjxC09STWCTppXypIPn2Tg+ZPXOL2zVSZHIs8lRxKEc10B1+NjJUOJK0BfGhNPFnY X-Received: by 2002:a05:6402:2550:b0:4ab:dde:dea7 with SMTP id l16-20020a056402255000b004ab0ddedea7mr1365476edb.2.1675853213721; Wed, 08 Feb 2023 02:46:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675853213; cv=none; d=google.com; s=arc-20160816; b=DFwU/yCe8xvBj8Cc/CNBAbRwmvnWjcj2tRaABweDCisANupSKR8CBStrPcjlIHA3qa t1ZAV7fqSWTHRUu8us+lAbWjEtZ4DxFTiW74g7dZvQXP5/G0O6QdLhTY2hb4ht5OIHLw 8jTFAl7HYpERb0k2L05sWz3d1769jHnA/dF/5IWcHb1k5vo1M6/FN3A2jphx9ekww1L1 SKph8FKYtC4BO89k0KrPCEyFyToU0cIYH9zIm5i/3jMsyBolxpoBQWRBvtAFdH1cm2gz IKtuXkKREsPIxKJ/bxqzAFpqHR6ftXVVk2XMnbKMQ+C/MxWv31r/o0rYxKoPTrTiI9ZD j4wQ== 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=Gs6A3xuh1wg0WbzcNgHtsf7usFbi1rf+zDWg/hjd3e0=; b=YKLyvAVwlqEPR0tSc26RQHT8kMSPd8zmzqpXsU2RlRnrPh2HRjRSxCvMXYB23u7ser aKoH9MgB6T0GbB06hMiAkq8gk4h9AzBpWNaCFS5lPAWvg1I3SiRyohp+XQRYwICwVoqX o+x/j6WLJNupp8gF1YAXpJmbxsTU+HM5aC8gEL3bjVAFNZuyil8IKQgjr6fRylyekUXK an+XwiMQy7wZKbGLYeK/wE4fy2xsuACMkm6oCIvP+5wU2FEuM0TtdLkYuXf0OYvpspB1 SQmXonbbff5biMeojvb//boy5R2knbpCIs8z1V6ykV54PmG4DE0fDAUUb2/GigiolPKu 0Bqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=mbSIEeCx; 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 h25-20020a50ed99000000b004aacfaa3d25si5026219edr.364.2023.02.08.02.46.30; Wed, 08 Feb 2023 02:46: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=mbSIEeCx; 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 S230150AbjBHKp6 (ORCPT + 99 others); Wed, 8 Feb 2023 05:45:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbjBHKpy (ORCPT ); Wed, 8 Feb 2023 05:45:54 -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 6353847EFC; Wed, 8 Feb 2023 02:45:37 -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 724466602091; Wed, 8 Feb 2023 10:45:35 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1675853136; bh=DG0Bfe4ArjgFwtknCIsWC7PDxg3CMEPnouLpXP/YXz4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mbSIEeCx3m5ABKgI70bBZlZl72M3m+skFht303Hzt8fhtoCvG9St6GkUQpii7FiVr kBqJ1MkVDcoiZqE5iBf1rV9QCMXuA1r12odYfNycoB0KzRtt1byoEaEPV9AHwu8ZdU Kco5xghQWkzMyG0c4ZBLzZWELpCObGNygTH93Wdnseeuru6frEFZLEgeBAFdYBA6no OmW33r7rjrKw0mKEopkp19ulQQmjUBnIiOGolUcPeqKDoYDFLbBgksMDuUlB4uG7T1 qwS29jePIo4NTFRXPqcbx2UVIJyx973ZDn4BdRRAT+UJVlhq7pBo/ZkJBWSIfNc/Kl 7sbf726tnsoFw== 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 01/16] arm64: dts: mediatek: mt8183-kukui: Couple VGPU and VSRAM_GPU regulators Date: Wed, 8 Feb 2023 11:45:12 +0100 Message-Id: <20230208104527.118929-2-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?1757259459894578501?= X-GMAIL-MSGID: =?utf-8?q?1757259459894578501?= Add coupling for these regulators, as they have a strict voltage output relation to satisfy in order to ensure GPU stable operation. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index fbe14b13051a..de9778c85b94 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -294,7 +294,6 @@ dsi_out: endpoint { &gpu { mali-supply = <&mt6358_vgpu_reg>; - sram-supply = <&mt6358_vsram_gpu_reg>; }; &i2c0 { @@ -401,6 +400,11 @@ &mt6358codec { Avdd-supply = <&mt6358_vaud28_reg>; }; +&mt6358_vgpu_reg { + regulator-coupled-with = <&mt6358_vsram_gpu_reg>; + regulator-coupled-max-spread = <100000>; +}; + &mt6358_vsim1_reg { regulator-min-microvolt = <2700000>; regulator-max-microvolt = <2700000>; @@ -411,6 +415,11 @@ &mt6358_vsim2_reg { regulator-max-microvolt = <2700000>; }; +&mt6358_vsram_gpu_reg { + regulator-coupled-with = <&mt6358_vgpu_reg>; + regulator-coupled-max-spread = <100000>; +}; + &pio { aud_pins_default: audiopins { pins_bus {