From patchwork Wed Mar 1 09:55:09 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: 62817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3539524wrd; Wed, 1 Mar 2023 01:56:46 -0800 (PST) X-Google-Smtp-Source: AK7set9nenwhlAZoprJhMpHUHE8n/RiuB4jbmDZR5x1dx6R5tbVuUTgZ95tgcVPGJyS6cF7rcKFw X-Received: by 2002:a17:902:b48f:b0:19d:af20:3fe8 with SMTP id y15-20020a170902b48f00b0019daf203fe8mr4873582plr.21.1677664605994; Wed, 01 Mar 2023 01:56:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677664605; cv=none; d=google.com; s=arc-20160816; b=JZwOD9h5+4cPbb65Qc1yJPNt0zakrKA3T5bITMLrXLXM03UMfw3yftIofOEnVgm0ah 8pkQZOQvANKM71+lRQ/yBc/irHMGWpDKJKgZmldZMcEcWPDnBlzcYmrEDcMiSCaG2Ajc qS9gU6xis9eZadmahreGq9MtYef0QTx1xfrZ/ro2Ua0e3b10qw8UkyaeK0iW5E/uR/JK w1X6FT31AV5MBwEaB/wZvHgKdyT91qYQKnlpwxsBNr5vP5Lg3D8PoB36EuVpJEFgxgWX RIMke24JcFqv95drB8s9//UFlz/SA8Pk0cLus7aV+fgzJZVS35g0LZekPg1gxG+YLRPE gNJg== 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=mV5HuQ9Svg3ODFXa0ShJffVZt3rDKNlMuzzUUjGjtzc=; b=ikXR0Xia2O+R6rrz8syHdPle1WgntYe8PVNJT0VF4HGCN6BZ653nG4msTGzuZ/JJ6G 6Vk2oFzy5btnxtI28uSJP4hG4ogHyBf5ms2CYAon+xndZghna/MreazQfwEk17iM+p2Z M/cTOFtYc6uVNGzr/uu9lRFtGvKv6Xt9MyYEFyI0TH2rZbroBR4UKDQD98I3D1EtYzys /kZz2Mv3sndrlIdzXCYCITjWFrvqj8wN/HMsp3iV6EJWm6VUqjmUXoj++imlbltZUajJ xeHZjT0p8ueH88ZwJfl0fhMS1BS3WsVxrdEUXYTH3ky75q2VR9Q7oX0W86e93IiN410T jb+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NFQfYgKm; 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=QUARANTINE sp=QUARANTINE 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 le16-20020a170902fb1000b001782a6fbc7csi12118365plb.463.2023.03.01.01.56.32; Wed, 01 Mar 2023 01:56:45 -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=NFQfYgKm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbjCAJzs (ORCPT + 99 others); Wed, 1 Mar 2023 04:55:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjCAJzg (ORCPT ); Wed, 1 Mar 2023 04:55:36 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96CC91C599; Wed, 1 Mar 2023 01:55:35 -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 005876602129; Wed, 1 Mar 2023 09:55:31 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677664532; bh=Ua7BwziPqVhfWLXLBzmILApbAUpa3Hpx/UhYQnsGNBU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NFQfYgKmh/wAZEKNGxC8nLtuK2x3mXJaEZNe3LXZeNA+pyYRgjxz7TXDbqb8mDzHh F32yXiXlRUIacfbgzJ+BLcb0CBnFkSNJBavd6zUhLsUI0ucTwr6PUY5AmNvH0/OXL+ +CEuZET5PQJLwGyFV/T+nEZlj7f14XjA0SZ2TrFiPGQl9dHllRAJcOxWMBFrkGOt5H qec7MiXa/qYy4uo1lLvtpGZemKuMDSghuRr5/ux5JLwRGuwUjJMyxVQXq4HHjemDnB D8XPHzo9b1Xo27I/BeL5W4lPvpr3XUPrTGJb+AGmITHSmM1vF4RxhibCWzENOStbdP tluhzhuX6ctGQ== 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 v4 05/19] arm64: dts: mediatek: mt8183-evb: Couple VGPU and VSRAM_GPU regulators Date: Wed, 1 Mar 2023 10:55:09 +0100 Message-Id: <20230301095523.428461-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301095523.428461-1-angelogioacchino.delregno@collabora.com> References: <20230301095523.428461-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?1759158842044874798?= X-GMAIL-MSGID: =?utf-8?q?1759158842044874798?= 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 Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts index 52dc4a50e34d..fd327437e932 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -52,7 +52,6 @@ &auxadc { &gpu { mali-supply = <&mt6358_vgpu_reg>; - sram-supply = <&mt6358_vsram_gpu_reg>; }; &i2c0 { @@ -138,6 +137,16 @@ &mmc1 { non-removable; }; +&mt6358_vgpu_reg { + regulator-coupled-with = <&mt6358_vsram_gpu_reg>; + regulator-coupled-max-spread = <100000>; +}; + +&mt6358_vsram_gpu_reg { + regulator-coupled-with = <&mt6358_vgpu_reg>; + regulator-coupled-max-spread = <100000>; +}; + &pio { i2c_pins_0: i2c0{ pins_i2c{