From patchwork Tue Feb 28 10:47:41 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: 62426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2941087wrd; Tue, 28 Feb 2023 02:52:14 -0800 (PST) X-Google-Smtp-Source: AK7set8kQH3MWXt1b8mTnltSEiOho8Bu232Il2ZFGqJs/CRoHlN1IIOGpoHJKho0tORs9m7X//Ef X-Received: by 2002:a17:902:c406:b0:19c:ef59:5ec5 with SMTP id k6-20020a170902c40600b0019cef595ec5mr2387139plk.11.1677581533761; Tue, 28 Feb 2023 02:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677581533; cv=none; d=google.com; s=arc-20160816; b=zgHpnrhZqpirIcRoTZzAE6QDjA0B0pmKDbOWZG5R9HNw3a4dGGzBMn3Q/p3MRkB8DD dToZD+ncuDqiHMXPyX9e1sdqKRKTH2AFBZkW1LaT6MzoToztXjkW4po5tzGeADmYYfjs I5GcrN6YAoKSpjPyljbxK7X7RdjTm4GqJWrL6nfBSyHM1mXEf/SbF/t+6X1ChNjXF64I C1VDKwuEWD7tE3w7q//XmsRiDbmRwox4SXhqOg6OV8EQXI/R3oCK5tNyQ8i70kHCAcJI ntFpDxjffkW62L0PV9mKh2nuLPNEVGwMKPpN0+eh2laxBlD4tK86wStqNJ30Ps8PbDz/ C0lA== 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=QyQ5BWTyYJlfx1hxo9jGb9AQdRNIY7zP6P8241WIMOs=; b=M48v16r4roH+pW/mtokOqWMiy281zZWX1oWV5VTp8mssXLBP7PSA7Oa/oCBt+urRng I5X7TX9vywZ7YQ8OFF77BAXCjbHAvZQ3L7iyXPrj5lfs5L3iuR3pYs9sdb9/pBQWCKR6 kZrsonQn3LDvOnmEECPjen2xa2dfvaPkh4/6jW/ZYQETqA75JJFzfUDMFJ54qmoeKYDn g5buSM0ryR2VmvyWzKO5q6+PWr60tNxDGtumHtbDpT9ppBbFr9ROALqOhyi7OhCaKEsE ttGuZB46psnYOH0lnweji8IngDLC4VRqIKOKhJ09jXUjdJ1aX8rHCOMcJcT7XDTejb5s +6rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EsL4UoDd; 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 p15-20020a170902ebcf00b0019cf747251asi7893415plg.289.2023.02.28.02.52.00; Tue, 28 Feb 2023 02:52:13 -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=EsL4UoDd; 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 S231434AbjB1KtM (ORCPT + 99 others); Tue, 28 Feb 2023 05:49:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbjB1Ksa (ORCPT ); Tue, 28 Feb 2023 05:48:30 -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 BAF9C469A; Tue, 28 Feb 2023 02:48:02 -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 929D76602FDC; Tue, 28 Feb 2023 10:48:00 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677581281; bh=xNmiw2ujYQURCmwW9t7m1kerphWvM2Xx2d/qe8evz/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EsL4UoDdDIceOXiCYkSlqmWUwfG44aQh0lfZSEHL8OECQjdQuvUBvh1ZolqJtIaU8 RUj2bFLzPSTuVesYRUOmQ282jVzYJ4RGjhKZuRh3Ss8MAywL1z7ohC3E9bNreQMTPL 0au+IEQ+7cZbTtuXWwX1Dc3uzp1egiNOGXeVcqIn7zIXQSny54lpAt2JviiQ2Smngf Hoqk1M8I7WShI7dgWtT63W9sUUNyAGTS9FYvqSNR5yAuUl/UMWfS1RYA1aJdtvdeYi sCuc1Gl4WImVJz6Z4H4F1Naerwq6+b+Wj2r50WzbPfU8Ob3ShzqvsMkymKAmcT63h8 jk8AQxf7bYZlg== 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 v3 18/18] arm64: dts: mediatek: mt8183-evb: Override vgpu/vsram_gpu constraints Date: Tue, 28 Feb 2023 11:47:41 +0100 Message-Id: <20230228104741.717819-19-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228104741.717819-1-angelogioacchino.delregno@collabora.com> References: <20230228104741.717819-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?1759071734651861465?= X-GMAIL-MSGID: =?utf-8?q?1759071734651861465?= Override the PMIC-default voltage constraints for VGPU and VSRAM_GPU with the platform specific vmin/vmax for the highest possible SoC binning. Signed-off-by: AngeloGioacchino Del Regno Suggested-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts index fd327437e932..3e3f4b1b00f0 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -138,11 +138,17 @@ &mmc1 { }; &mt6358_vgpu_reg { + regulator-min-microvolt = <625000>; + regulator-max-microvolt = <900000>; + regulator-coupled-with = <&mt6358_vsram_gpu_reg>; regulator-coupled-max-spread = <100000>; }; &mt6358_vsram_gpu_reg { + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1000000>; + regulator-coupled-with = <&mt6358_vgpu_reg>; regulator-coupled-max-spread = <100000>; };