From patchwork Thu Feb 23 13:43:31 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: 60983 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp318645wrd; Thu, 23 Feb 2023 05:44:52 -0800 (PST) X-Google-Smtp-Source: AK7set+P+pZuNk6gZSnoNXu06hbZN5sx2RSa6EcrvujNIqjak0/EY5MJA1wFWkPDET2r6zVRyfxT X-Received: by 2002:a05:6402:268e:b0:4ac:373e:9d18 with SMTP id w14-20020a056402268e00b004ac373e9d18mr12790818edd.0.1677159891873; Thu, 23 Feb 2023 05:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159891; cv=none; d=google.com; s=arc-20160816; b=J2iEifRyRKrDxE9MMgEtvQR1WgxE7QnJu5L49SgcKTxLpOgLVf51QDnbXcivu/VSTP BTrEZgt692ek4dOKhIjupmBzjsEbT867e9IAzeYvWeLSc56MCFRGQZDL46RFMKwlKmEg XEEJXq2yQOfklQjzCWpNkAev5XjmelxcyScgCRM2BBEJrnKUDNCEvN+dDCabXiUt6qO3 7BsqDKPGKhM8yOVLFMCi0XSJhIPmqAZcmgFtoJ7JkORdwxGOpyZmxSjbqxGM5vCYUPSR 2vh/9r7H0SdbZ9QQ295ch9c89g1iyUjRgGx5GK4cUazBEfMa+8hKxgPvFkQz5VNEWlVQ zoDQ== 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=EcWytE1zV3qPuUgTUrHlKD06haM13Dukluujzyp0c64=; b=IebrFWlvEFIGRF3jEnEohkkM9Fk4+GeXaLpHH8pZ+stMhDyQeSTxZQmmyXpbLfNsJT T0gLFKUdnFkrNv9LsLrP2FuXJbdvqi09XzCKNDQlwVo56K62tiQiIO9cUeR+f+YRMHLT N+sFEYg+14UVTsZGKzCSlHFOf5OF2y9BY6DuHYRVkzUDUsqZbE1VJDyreZyZRew6LPVb ZnbZCiROxlXoi+JEKB5k6VrijEbyrV8pO9bFZhzaF5rlKGAavx1ZMiUcSHBmiu8dO6jo UPeSbRj3gXqNprQ+D00tOm236HbKvp9tNMtLYw1wkFAeR5psvpzwhAQXluwtQlbuVczP 5NBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PhinQSxl; 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 q13-20020aa7da8d000000b004af6e31cef3si1933842eds.160.2023.02.23.05.44.29; Thu, 23 Feb 2023 05:44:51 -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=PhinQSxl; 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 S234384AbjBWNoG (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234155AbjBWNn7 (ORCPT ); Thu, 23 Feb 2023 08:43:59 -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 5DE284DBE8; Thu, 23 Feb 2023 05:43:58 -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 B0F376602209; Thu, 23 Feb 2023 13:43:56 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159837; bh=hCOuhzILoJBXJQ8GwcXy/t+mRkm6ZJBcUpxH7FjYYQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PhinQSxlLUvLFlJ3LSKtKkJDW37sEE5MRSPBDy6B+ZgFZQOIy0MoeDmOWFNEhSIN2 lXXDKlwI69+LpfLiM3M3aJ+tCQZKyvibKE4KefuI+hgsY58K1EGXPVvV8tgjmLJhpf oQVlZBN6usLWiKZZURy72rzYtZ0zZ9VTuMIAd6vBhGKi/DaS9qhR+ACnoDnU8LROEa JlL/JyuhKztsWwrCzYvuDoCv2A73O9yKYnYgtupQUKFRTIQB50eMFzewCt6aUWKtXP 9Elxwafmcvu0TasGoVVMKwUhIeNx+djwFPNw2C0tL1PeKDjLW/qTUOfcRQ+LNXRa25 vQf+7VP50tbBQ== 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 v2 02/16] arm64: dts: mediatek: mt8183-kukui: Override vgpu/vsram_gpu constraints Date: Thu, 23 Feb 2023 14:43:31 +0100 Message-Id: <20230223134345.82625-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223134345.82625-1-angelogioacchino.delregno@collabora.com> References: <20230223134345.82625-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?1758629610446346442?= X-GMAIL-MSGID: =?utf-8?q?1758629610446346442?= 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 --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index de9778c85b94..63952c1251df 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -401,6 +401,9 @@ &mt6358codec { }; &mt6358_vgpu_reg { + regulator-min-microvolt = <625000>; + regulator-max-microvolt = <900000>; + regulator-coupled-with = <&mt6358_vsram_gpu_reg>; regulator-coupled-max-spread = <100000>; }; @@ -416,6 +419,9 @@ &mt6358_vsim2_reg { }; &mt6358_vsram_gpu_reg { + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1000000>; + regulator-coupled-with = <&mt6358_vgpu_reg>; regulator-coupled-max-spread = <100000>; };