From patchwork Thu Feb 23 13:43:30 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: 60982 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp318592wrd; Thu, 23 Feb 2023 05:44:47 -0800 (PST) X-Google-Smtp-Source: AK7set8kHXWPiRBjT+MKaK4V1ak4WUFA6zo6EZUbXAwHV49NxHpvTYN0Xb+svEhrxQnQVJVff2JX X-Received: by 2002:a17:906:73da:b0:8d3:be84:1cc6 with SMTP id n26-20020a17090673da00b008d3be841cc6mr9654089ejl.3.1677159887676; Thu, 23 Feb 2023 05:44:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159887; cv=none; d=google.com; s=arc-20160816; b=WWzZEhOs54hP+2hHfuJkiqLAV0iKxwFuqePrg+eJdnWIR+SC7tlmSvEvBG4Uof1wMK kvJ6aqZhqXcfm4Pug26azkjM7YBCcYgTHx4HUrE8TRpS9szbtka49HC66PdkeQMIwgSj kgY5whw9vYBOkYh6kMWduxYcnGvPuhMGxlvltqxYr9L+t+xrg5jcbF4jLYzbsXScEMzp WhLJKywLOVdt8/6IufhIcCcJrbrkWybNv/Zz0JZtDdZplEpqUm9a45zPB+42j98TSEhz ixQux4Sr7jBhOPN6lHcjDdn+Cda9X8w7ZClCgS4CBI2tTDlQsP9JHMfSNGpjVnw3Q5pO YQLQ== 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=7TygdOeWQTpz2f8gBD/DGmlXExAUxciSBYq7LXZrasM=; b=av1TC2UW7/AEH0/e6rvjE/gPsa+yK7c2rbUSJclpqP/qAEEpjKWiJ8v0z4AToq3xf/ T4g7+iZvi/fqwNSDfkDOHZMqnKDn8t+Y+PhoHKpi+X2DB/LOyWc6a78/yhGf8qxYTPKT TxsPZ1KhY7QCPCvIeV5bMY8jxf793zu485d8KiSROZhANgXCI3IoMCxn90TQhx2/+uip 8+LWnuw5GX/f21WilZml3AGJ9gjRSRK4RuD1inSD7rPyzu97+roYAzjbCeLZPle+50LF gtDVfZESb7itUZqGC0E3hq/UYb5fQ5hDe548gQPtdehEZBPn8NW1N58JKnJl6vwvhU1L M0yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UqxbLCz8; 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 fl5-20020a1709072a8500b008ce419809a0si11938435ejc.217.2023.02.23.05.44.24; Thu, 23 Feb 2023 05:44:47 -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=UqxbLCz8; 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 S234354AbjBWNoC (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234073AbjBWNn6 (ORCPT ); Thu, 23 Feb 2023 08:43:58 -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 CB0564E5C4; Thu, 23 Feb 2023 05:43: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 1486F6602208; 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=1677159836; bh=1V2jxX0ANAEWX9LhnlvthMdf0fZsDfORdoxEzmZYOWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UqxbLCz8YHPHJZ9kauVlS3ft33uV+Tec6ZhPT1U3ATczFXnqwSLCJHvz4cyADKVND bwPjNx21ZnZ3Ks6QJtzE0J24frRwjmTRWZRmxcDPPANbFp5paKF6fGPg1/rl+CmpgW obPMTF3+HXqjminUq1KC3eXFDOsjy4DUWcHS2zFA1ZFYlu43RS0RA8EWwZXOGRBvbT 7MbWgwnGO0h34kVEV2xqBwxc8vPuh6uRxAlqa+eABVfwfvPPY3Re4ssUOvTv1imOwo pKR9zaTuTXMDmX12RZXxBSMWAJK1Z1yl+bSzYC6EG9wToiHXiFO0g+Zt5leCqvoYn2 JKR4BvnpgMkaA== 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 01/16] arm64: dts: mediatek: mt8183-kukui: Couple VGPU and VSRAM_GPU regulators Date: Thu, 23 Feb 2023 14:43:30 +0100 Message-Id: <20230223134345.82625-2-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?1758629606291699488?= X-GMAIL-MSGID: =?utf-8?q?1758629606291699488?= 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-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 { 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>; }; From patchwork Thu Feb 23 13:43:32 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: 60984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp318693wrd; Thu, 23 Feb 2023 05:44:59 -0800 (PST) X-Google-Smtp-Source: AK7set8ArTdJ+wTb3p7HIl4IWbG08Pn/SGnqXx6g4mjq4/P1caEjhmlCQ70hwMcqu+LmstRYk3Jh X-Received: by 2002:a17:906:73d2:b0:87c:c1:111 with SMTP id n18-20020a17090673d200b0087c00c10111mr15317348ejl.4.1677159899444; Thu, 23 Feb 2023 05:44:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159899; cv=none; d=google.com; s=arc-20160816; b=E8AMUBXgZ4fcVUgt2BLDhnxSUd4SJ8hl3I7qC3qgWpvVwCPvyjBZ0Pub7Oxh78jsWQ dT6pJJqlpvWebUxENuI+l8bwuB7gf0dtF/TFalL37FGMZCzOhS+dm4UD92z1bM+sz3gm h6f2+zlznQi2jzTXdpJmNIMoRQtVMQsGYZwzCoBggCkcPBrQBk8YatsDHQMUajy2h8ka vYqNttZxjPNq8+t6T1cINlDnjROeI18Itemj03c3HnwmMMWlcDxJB6g9rqydIvgzIOm2 LidWn7D+JQLIm0O4+QdGMILINFiw4pW5DYPZN8Rq1p1vRTDWOT+Qw4ZJnQgBEGBxsPbM PFRg== 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=PeksOt2o57ZhTAjru0t0681d+unyxQCSrcSwQkRnzLM=; b=lBr0192pSwp9+wyW+VfotT2EfXLutDs9Z3nJ5gM4aiuyhCqskjudqjUZU4YETNX3LK +mP29253vGiDJkHtgU1CaMfC8antynJ9LFmi8yoACZOo34CGeWoGC717DShevJzW5EqN 7OOuo41KEnFZ2dyom/B2q2SMvYuOOJC402HQgY9WXjCWs8BnRNtdcP/wGF3NW66QlgCB BeI86OXKzakovFrwsPvFQkcSzLAFPKuDTKOfeNpJANCXSLtCGLxnyeWhIBJF0v6ABDS4 HbcMOj/zJgVG1rhxG64gQeGCu5PEdPi/0bY69yx0PFvNi9DhEcFWIkI8TkalQZBFPaVE SfWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=AP3bxT47; 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 ms32-20020a170907622000b008b17a84e038si21384507ejc.329.2023.02.23.05.44.36; Thu, 23 Feb 2023 05:44:59 -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=AP3bxT47; 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 S234575AbjBWNoJ (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234272AbjBWNn7 (ORCPT ); Thu, 23 Feb 2023 08:43:59 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F41354E5C4; 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 58449660220A; Thu, 23 Feb 2023 13:43:57 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159837; bh=O+KDnSI3KszDtxSXA0fyQMxxMHho/MGieF2kZyp8r7c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AP3bxT479EcxEZGP2VzwVZJBT0ZPQ39hal42JpJafcKPtXdX+WGz+JaibwRIiKu+D O5akJ3a08NT4gqhpiLtg2O/8N64h+30NOpNpsemItFnlIwxGbj/Tk4sZrfZyWqe5C+ 7SVaoERKNpvUrrbiwre5FxSgc7eWnacYwoCoKq5O21cUlKleWag1ZqtoeqFsurd2d0 +bFb+ZGSmx1QXcMl/F1t6sQoaCCPQ14CBCfKDWS9UHM//f8sm69s5eFfuWaNEPG4jF gniLh0o5jr6kS1mbCY+ql46i/PFFg8SBmp+d+k8iB04H7Eyxtl8tNLYE3SnHXuc5qm iaPL61eHbLceg== 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 03/16] arm64: dts: mediatek: mt8183: Remove second opp-microvolt entries from gpu table Date: Thu, 23 Feb 2023 14:43:32 +0100 Message-Id: <20230223134345.82625-4-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?1758629618652399790?= X-GMAIL-MSGID: =?utf-8?q?1758629618652399790?= This was done to keep a strict relation between VSRAM and VGPU, but it never worked: now we're doing it transparently with the new mediatek-regulator-coupler driver. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 32 ++++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 3d1d7870a5f1..e01b96adef02 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -563,82 +563,82 @@ gpu_opp_table: opp-table-0 { opp-300000000 { opp-hz = /bits/ 64 <300000000>; - opp-microvolt = <625000>, <850000>; + opp-microvolt = <625000>; }; opp-320000000 { opp-hz = /bits/ 64 <320000000>; - opp-microvolt = <631250>, <850000>; + opp-microvolt = <631250>; }; opp-340000000 { opp-hz = /bits/ 64 <340000000>; - opp-microvolt = <637500>, <850000>; + opp-microvolt = <637500>; }; opp-360000000 { opp-hz = /bits/ 64 <360000000>; - opp-microvolt = <643750>, <850000>; + opp-microvolt = <643750>; }; opp-380000000 { opp-hz = /bits/ 64 <380000000>; - opp-microvolt = <650000>, <850000>; + opp-microvolt = <650000>; }; opp-400000000 { opp-hz = /bits/ 64 <400000000>; - opp-microvolt = <656250>, <850000>; + opp-microvolt = <656250>; }; opp-420000000 { opp-hz = /bits/ 64 <420000000>; - opp-microvolt = <662500>, <850000>; + opp-microvolt = <662500>; }; opp-460000000 { opp-hz = /bits/ 64 <460000000>; - opp-microvolt = <675000>, <850000>; + opp-microvolt = <675000>; }; opp-500000000 { opp-hz = /bits/ 64 <500000000>; - opp-microvolt = <687500>, <850000>; + opp-microvolt = <687500>; }; opp-540000000 { opp-hz = /bits/ 64 <540000000>; - opp-microvolt = <700000>, <850000>; + opp-microvolt = <700000>; }; opp-580000000 { opp-hz = /bits/ 64 <580000000>; - opp-microvolt = <712500>, <850000>; + opp-microvolt = <712500>; }; opp-620000000 { opp-hz = /bits/ 64 <620000000>; - opp-microvolt = <725000>, <850000>; + opp-microvolt = <725000>; }; opp-653000000 { opp-hz = /bits/ 64 <653000000>; - opp-microvolt = <743750>, <850000>; + opp-microvolt = <743750>; }; opp-698000000 { opp-hz = /bits/ 64 <698000000>; - opp-microvolt = <768750>, <868750>; + opp-microvolt = <768750>; }; opp-743000000 { opp-hz = /bits/ 64 <743000000>; - opp-microvolt = <793750>, <893750>; + opp-microvolt = <793750>; }; opp-800000000 { opp-hz = /bits/ 64 <800000000>; - opp-microvolt = <825000>, <925000>; + opp-microvolt = <825000>; }; }; From patchwork Thu Feb 23 13:43:33 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: 60985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp318748wrd; Thu, 23 Feb 2023 05:45:07 -0800 (PST) X-Google-Smtp-Source: AK7set81LHpW/CYoW8c4Qds3PjwKwNttnZOm4OdpSNCu1rw62dM4RDQ8/2BK3xgMD1oVQb7nSwCG X-Received: by 2002:a17:906:105e:b0:89a:8238:3323 with SMTP id j30-20020a170906105e00b0089a82383323mr17690807ejj.6.1677159906897; Thu, 23 Feb 2023 05:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159906; cv=none; d=google.com; s=arc-20160816; b=AKvbGlQFle/xN3lsuoXRDJdbai5EMhJIk/cVdT+Ilmrs35fO0CayxKOm0+3OQl5MjS Co+tLhJLDJg5ewkx3YEF6+4MzfXtvRAITbwo55EeZgZ6iWTwYxllY8rlDLajKhNNd2Rr XOHzuba2omVqgy1zAY63n4PTMUqLiRFXio56Wqple1vrOqBdf/JoX2Hl+WVUP7GpY4PP V9wNh56Dq7U0e4quxyIZSkwS38fp8bFmLWF9LUZyg/ATF4SqS3FYuW1asaftD8DKCvmx VqKYUM/eXXnAVejxlf/rJnfXFPbodW4+Ly1QQYYcg37yRT/R8IlPqKd4QZrUoZaimCpd aHiw== 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=2+ffK6k3wuxRJkjIkwzv9FZHaR6LLvsyi/OIXg5VlQo=; b=HpnR4nMXD9cYdOYQ+O4GZ/lqVCFaWU2uxu8oLWjKV6CfJdFsp1iDUPevpn0oQCcZ+U xiFBf6E9ZJWzdw8kceAcC8JDMTX1NRY6Nq248x9L+Cynmjoe7VjX3LgS/2LZKphmtiSY P7jomJ414WwkwWUmMXUFXNwpFXY5tEJ1HoP3IKBFlDRjm9EY/2/RguG1SaC5bZ0dqPEy iZ6pTurZWfKm2a5bLDfQDxEVswXB0jUrKudf9iT1dQLmZLzrDicMAtcQKpgGfLpXjbPd qU6LwcjC4NakSfwxt/NyhcVXnBKPiHYIfliRW5rCoOMPaUv1G7BKGXfN+AEQzXKOXgCB tlGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WlHxlvYZ; 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 ay21-20020a170907901500b008e01978a238si7397511ejc.52.2023.02.23.05.44.43; Thu, 23 Feb 2023 05:45:06 -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=WlHxlvYZ; 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 S234604AbjBWNoN (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234311AbjBWNoA (ORCPT ); Thu, 23 Feb 2023 08:44:00 -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 9DA994DBE8; Thu, 23 Feb 2023 05:43:59 -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 00374660220B; Thu, 23 Feb 2023 13:43:57 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159838; bh=iTiXsbcvL98tLYBNMasBh9C/GsvGSy9IVHh+FRRt/uQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WlHxlvYZhxImKA/EjmjKE1w6P5Qc75JZ/An6P0DwEXCUUhAT0LZTb1G8KatASzVwS rTldgl7J1lSp/I/2C5dXrjBJkr+WDCi/IhvDiGChKfVNtnapxZLoHMXeJUJYv3Uu8N FBOj27fNjQUQ4H5Of6Rbxmkgikx8LbSxzPl8mY52uBeD9P4O1aa5mml7muMKjQfmnQ YUI5rJWK8drYypyz4I83DOtUIaDr68Sg784Y6HLC/iyxTjI2cbuxcIeW1s7vBIKO0d ohpt1xwRskUr3FK7NX9PscPFCT5rxQ6M4fAFdyGXqt+l9QHjMwcJ79QBbqkZaxI6fV o2R7M25q8pCvA== 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 04/16] arm64: dts: mt8183-pumpkin: Couple VGPU and VSRAM_GPU regulators Date: Thu, 23 Feb 2023 14:43:33 +0100 Message-Id: <20230223134345.82625-5-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?1758629626798534601?= X-GMAIL-MSGID: =?utf-8?q?1758629626798534601?= 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-pumpkin.dts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts index a1d01639df30..c228f04d086b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts @@ -71,7 +71,6 @@ &auxadc { &gpu { mali-supply = <&mt6358_vgpu_reg>; - sram-supply = <&mt6358_vsram_gpu_reg>; }; &i2c0 { @@ -176,6 +175,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{ From patchwork Thu Feb 23 13:43:34 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: 60986 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp318780wrd; Thu, 23 Feb 2023 05:45:12 -0800 (PST) X-Google-Smtp-Source: AK7set+T57pDXKKxI2q/3MDWYPJeCaG93/JLHjRhnP8xV0uv1YGUywZ/pZxP7EdoxQOhwel+VBAc X-Received: by 2002:a05:6402:4315:b0:4ad:d9c:35a6 with SMTP id m21-20020a056402431500b004ad0d9c35a6mr13940472edc.1.1677159912225; Thu, 23 Feb 2023 05:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159912; cv=none; d=google.com; s=arc-20160816; b=yO1G84I2PBgRsMC/GoFk2JipUCvijS++ATmw1UVppCE8utwnUnnWNXFKtf8SbE6Vcb oQAqjDRq5MnITm0z3SBq41e/KHPVUyjZKQ78iu/COh0XuTDVWhXbqLigHatGM3dME69a zes7hlKwETSpPUQzhecJ3JjRX2p2/cbbCCaAQsJwF7fMVcdHlnu1/Iek9k0zm2unuCLl GraufBGkyrUHsPwUkSjk94EeYyZJPTa/7r40pJfgvWD+M7lWnQoQ9LP1SIYA1jdwWQf9 oRTR/VwvNMYREEdRgq2OpyfPc43ulvOrXYQ0fi8XIDf9yivt1d1lMSgiztTAcqDZhV6a pB/A== 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=GsqTwxdIixnZB6IgwP/EtUJGZNyLL98knKFBMEAawsc=; b=cZNe98K9VjikslRMeEcLbD1yP40RKeNruY/AOXmBpwkY3cMc+4oqE8fvl8iXey7sv1 i2DyanLnyrnw4igG3dHL5gOEvzM15p8Osvk33Gdj7G+OWU4p12SPvJBIV+Gmb+r0AodN 3caG+GOHod8n2IL1ov/KEGcPopLXrHFN+MrNX5nt+ONTT9jWS3oNyEaBlA4Wt8QBsgPN ahhxb3vVMfG5BVJW9iSUMSrmQX38ds2urtQwwOMatOWW4J/jz/n/lj2ATay0G5r3nw7T WvjizHJNPVqwPQUKuqqLTzVzf9alY8dURLBO0vcZ3c1cYPgQ+MMnaIQuJjfE4vmeVNAL 3cXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S52oOLdw; 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 fg22-20020a1709069c5600b008dd8c164de1si9663204ejc.541.2023.02.23.05.44.48; Thu, 23 Feb 2023 05:45:12 -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=S52oOLdw; 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 S234650AbjBWNoS (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234338AbjBWNoB (ORCPT ); Thu, 23 Feb 2023 08:44:01 -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 3A22652DDD; Thu, 23 Feb 2023 05:44:00 -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 9AD21660220C; Thu, 23 Feb 2023 13:43:58 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159839; bh=MrIqGkrI7LujwoSZ7Bc2owhtRwNGguk3yNGZ02UZ6+Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S52oOLdwx8SJc0VrVkilY+Rm9h+xmcZeTq4RbGHI9TpY0AWNOgqbgGaqRDfeuwtP/ wkHnBsVMEx32STxRhX6Mmtw4HJNy5/CQ61urf5woc0yxJjtvWfj3x+Fk/s6wWYwv6J akCS5IaxUgmY9+tDLAbapeT8I688LPCCUTsvwXjWnNGLZvcTcnO6d6a5eronVa96hz tvsYpiQBvJM+q5LIDuzyMC7XuYCaB73Y/BHC67tN/cNplq3I7MhBWyF6PRMFTAd4q4 FxOmIzMofge19j+bHpg0K0VJHyeI+gm/LAkpJ04tP41UWc//yfd7WPdUDWgWCe5gti CFuCkPSlo8EIA== 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 05/16] arm64: dts: mediatek: mt8183-evb: Couple VGPU and VSRAM_GPU regulators Date: Thu, 23 Feb 2023 14:43:34 +0100 Message-Id: <20230223134345.82625-6-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?1758629631963417814?= X-GMAIL-MSGID: =?utf-8?q?1758629631963417814?= 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-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{ From patchwork Thu Feb 23 13:43:35 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: 60987 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp318909wrd; Thu, 23 Feb 2023 05:45:28 -0800 (PST) X-Google-Smtp-Source: AK7set92ZxNFJXORk/ZahfrSEmp5woQ7uKccnPgH2UoAb4CdVEw57jLMEdJaYpwF79n/mCbFJ0XR X-Received: by 2002:a17:906:196:b0:88f:1255:59c with SMTP id 22-20020a170906019600b0088f1255059cmr17833974ejb.1.1677159927809; Thu, 23 Feb 2023 05:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159927; cv=none; d=google.com; s=arc-20160816; b=m7+QdzBmmlCARQb8Ef6yMe49ScXLKp/dtDiXDbmhN50H+X/Op9iJOlAj/U77Qj5Dq3 xTW5RtlgWT7dXHkcNvBdptcAOhQZ2TKaE/YHUp/jy8CeT/iuCUy4+zHuNXOspEevBZh3 9li580j7wgK8cDlN9imeu+C2I6H2Wgf7bjmDHHuzeC4I7oEwDq3ZK8PbmUuJHRo3IlEd cDyPwvgQKZtXR7+ar2jGLKhVNj5JyHit624ioVMLTnBdYoMcoih7YlqWcae2nBWXRXoL xxY6Id5Eq/VxD4g0T04A7B8erR03xlUF5aV7qAdnAVpdvGNNVihvCJHvtwchKZZRDauI zALw== 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=YPNDSENDG/1IH0mca5bU4Urqg4usT5ZFZdeiD0xt3Js=; b=KiKyGTsr0cbpHFzWQ2QHKy+Ck9HfsJSyFRjD/jraL+SLQTXiH7Bx6tPWXUw73qr3iM n7GtrHVdl2UTTHVFh8fk2nU5i1PkRU9OtzWgiS95VeKsiEsNb0dOOMsvueXDGPNcKxdK IWdReLp86phP+8NIIT0FuUHzIC4BJh9W5sCgS61Ya06v9vvT/CAVhSrYAo4f8hYQ2tF5 KuntLFiIjQwgmBHhHQFAH2oFS1gsrTqnJPZWGdAoHZH6vllnGLjonV8acU1hS9ty0Ci5 2tIs3hNQrQ1v5he+QoE131K1BJ4md3Jyjfl6gQTTiTcabyQ+ItMFhNwTUBrUSR04o55q aSdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BXpHl2GJ; 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 r13-20020aa7d14d000000b0045fca739593si8280057edo.188.2023.02.23.05.45.03; Thu, 23 Feb 2023 05:45:27 -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=BXpHl2GJ; 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 S234613AbjBWNoV (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233157AbjBWNoB (ORCPT ); Thu, 23 Feb 2023 08:44:01 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E38A55190B; Thu, 23 Feb 2023 05:44:00 -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 4182B660220D; Thu, 23 Feb 2023 13:43:59 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159839; bh=xAp8H2hVhd7urTj86UlUSbK9LB5eP77m4/nFArJQr+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BXpHl2GJD8EjzIABLdfe2cxa8PVrmn5m/9ru9rR2XZoZODWb6nA3ZXAKqGJjUj7nC 2QGK97fbrcZKjxH58Ga9BfTOUwoC7nyNIHeAxGb5PGZGf5ERzlXuaCNuDP5VtEhhJp gSqilcMZrkwT8UiWt16tTFcyrQla0DgtBx5Qrqn6OodDRadOZBgMDeUesPM/qbOmy/ Wy3NnOdRf00hpwaaiZ49dtAzvQZYALx27n+Fpu7//NGJ/X9Vw3i1ejC+99Ak9ujsIy WXUk1euFgHXIoztqm6G5Ym7sKIUqPuwNDj89poW7JyLRZVEO6jrNdLcYqiYJLKleFf t4vluZ/JK87Fw== 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 06/16] arm64: dts: mediatek: mt8183: Use mediatek,mt8183b-mali as GPU compatible Date: Thu, 23 Feb 2023 14:43:35 +0100 Message-Id: <20230223134345.82625-7-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?1758629648198463572?= X-GMAIL-MSGID: =?utf-8?q?1758629648198463572?= Use the new GPU related compatible to finally enable GPU DVFS on the MT8183 SoC. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index e01b96adef02..5169779d01df 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1752,7 +1752,7 @@ mfgcfg: syscon@13000000 { }; gpu: gpu@13040000 { - compatible = "mediatek,mt8183-mali", "arm,mali-bifrost"; + compatible = "mediatek,mt8183b-mali", "arm,mali-bifrost"; reg = <0 0x13040000 0 0x4000>; interrupts = , From patchwork Thu Feb 23 13:43:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60988 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp318907wrd; Thu, 23 Feb 2023 05:45:27 -0800 (PST) X-Google-Smtp-Source: AK7set9x2komBMT8J0xZytrHF8W+Yh7mHGV1QmO9cuFXzsEZfDFzhnOgO7eqO7tUCpmzYu/KYUmX X-Received: by 2002:a05:6402:1e8e:b0:4ad:de7:253f with SMTP id f14-20020a0564021e8e00b004ad0de7253fmr12785170edf.3.1677159927676; Thu, 23 Feb 2023 05:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159927; cv=none; d=google.com; s=arc-20160816; b=mFJVbwd8GJvgc/DMMwxzDniAuLbIpd3J9QS/4ye596Hv5QzKmXJ1z85TN8zjFO90OG 5DkjYufY4QpZwzu5DJLFUkwYLm0nN9xrrIDtAiOyeCUluB1AVWI8Raxmfad4w2Ysixhm vfXqV/52Aptp5eB7+JSXzEjbS2tcpAGoeUqzXV9Kx3J1EKWaNAzaBSWSmLjndmGCZKft WPSu3HSOoTxLSHUEFglF4S+XDqFXxp5oRQGpQYCgSQZd9APz/gsFg1icDcqN+GedJyo6 uABojg916Ee2eQyxq49sWCofWk3Txu1eWdLByrtHKeMzLeM/mwp6ezUlvctFwNbnnbFJ 78HQ== 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=rFR8+vmy7k4i7dztf45jPutHAv6Ht8nWkWVjJNYhJc4=; b=AnVjtuneYdQptv8eYHjraAzqtBtI5wQ3qIyUBN+znTlN0bHD8CJCajnk1Moio4Vl72 r5MYQPF62yCy0wx/rCvbmz0/3r2GdSywR/tnyFbC896t4hoXxpD6ywp7AoMeuPDQ7/kF xMIjAd84DqzW351ksqe3FwTlH/XgU+QxmZMp8/04Q2boy42zW+Jr3oy0aPPwSeaQLox5 saFah7U2Ml5sj7RZvPxmHTEtOLYH76vEI/NNK8NzVWPEeGKLD0RBPS/6XxbJwaMaKtCX +T86NUSZJk+djSfuaZusfUE0vYpRnNCLqZe25g0uwOrDM3+XLlT0JvRAP60aw8utNDcQ sChQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dhlQNM7Z; 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 h19-20020aa7c953000000b004acc7f8a77dsi2002463edt.639.2023.02.23.05.45.03; Thu, 23 Feb 2023 05:45:27 -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=dhlQNM7Z; 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 S234671AbjBWNo3 (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234389AbjBWNoF (ORCPT ); Thu, 23 Feb 2023 08:44:05 -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 A02A153281; Thu, 23 Feb 2023 05:44:01 -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 E802C6602208; Thu, 23 Feb 2023 13:43:59 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159840; bh=dx6Odzp8sUh+RhwlV6Ef65Z+A961rYF6L7cKkj3gD6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dhlQNM7ZZEtxd9UELVyqYfW6Ii45wzUdix6doLM90C3+Sy/WAflekBJgucT5Jow4E pCbMwb7au+mJxdrfvibpyNl+C/QcHaSmN72hF132vfAXHYJY2DRtrX49Ygm0LMC9b5 2bOdqzw+7CiEw9FrRr4W6Elnyagl13jZxUWVdN5V5Zh3LSTayCFy8J+OHHYaSBFhiO hRZ3nU+r84jqq2/fLyPj5aMijVVw7NFVaZC8TAsuk+5mnlvlOk20CvbHT6q1tadfL+ ISgrYb7A1BmEK09x0DOIigwFpfDAtxVSJxZTpv6LD1p5zegsic1JBMTLah1As4cWo6 V83hhD/jSjPFA== 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, Alyssa Rosenzweig , =?utf-8?q?N=C3=ADcolas?= =?utf-8?q?_F_=2E_R_=2E_A_=2E_Prado?= Subject: [PATCH v2 07/16] arm64: dts: mediatek: mt8192: Add GPU nodes Date: Thu, 23 Feb 2023 14:43:36 +0100 Message-Id: <20230223134345.82625-8-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?1758629648053760330?= X-GMAIL-MSGID: =?utf-8?q?1758629648053760330?= From: Alyssa Rosenzweig The MediaTek MT8192 includes a Mali-G57 GPU supported in Panfrost. Add the GPU node to the device tree to enable 3D acceleration. The GPU node is disabled by default. It should be enabled by board with its power supplies correctly assigned. Signed-off-by: Alyssa Rosenzweig [nfraprado: removed sram supply, tweaked opp node name, adjusted commit message] Signed-off-by: Nícolas F. R. A. Prado [wenst@: disable GPU by default; adjusted prefix; split out board change] Signed-off-by: Chen-Yu Tsai Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 109 +++++++++++++++++++++++ 1 file changed, 109 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 87b91c8feaf9..2a3606f68ae4 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -312,6 +312,91 @@ timer: timer { clock-frequency = <13000000>; }; + gpu_opp_table: opp-table-0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-358000000 { + opp-hz = /bits/ 64 <358000000>; + opp-microvolt = <606250>; + }; + + opp-399000000 { + opp-hz = /bits/ 64 <399000000>; + opp-microvolt = <618750>; + }; + + opp-440000000 { + opp-hz = /bits/ 64 <440000000>; + opp-microvolt = <631250>; + }; + + opp-482000000 { + opp-hz = /bits/ 64 <482000000>; + opp-microvolt = <643750>; + }; + + opp-523000000 { + opp-hz = /bits/ 64 <523000000>; + opp-microvolt = <656250>; + }; + + opp-564000000 { + opp-hz = /bits/ 64 <564000000>; + opp-microvolt = <668750>; + }; + + opp-605000000 { + opp-hz = /bits/ 64 <605000000>; + opp-microvolt = <681250>; + }; + + opp-647000000 { + opp-hz = /bits/ 64 <647000000>; + opp-microvolt = <693750>; + }; + + opp-688000000 { + opp-hz = /bits/ 64 <688000000>; + opp-microvolt = <706250>; + }; + + opp-724000000 { + opp-hz = /bits/ 64 <724000000>; + opp-microvolt = <725000>; + }; + + opp-748000000 { + opp-hz = /bits/ 64 <748000000>; + opp-microvolt = <737500>; + }; + + opp-772000000 { + opp-hz = /bits/ 64 <772000000>; + opp-microvolt = <750000>; + }; + + opp-795000000 { + opp-hz = /bits/ 64 <795000000>; + opp-microvolt = <762500>; + }; + + opp-819000000 { + opp-hz = /bits/ 64 <819000000>; + opp-microvolt = <775000>; + }; + + opp-843000000 { + opp-hz = /bits/ 64 <843000000>; + opp-microvolt = <787500>; + }; + + opp-866000000 { + opp-hz = /bits/ 64 <866000000>; + opp-microvolt = <800000>; + }; + }; + soc { #address-cells = <2>; #size-cells = <2>; @@ -1266,6 +1351,30 @@ mmc1: mmc@11f70000 { status = "disabled"; }; + gpu: gpu@13000000 { + compatible = "mediatek,mt8192-mali", "arm,mali-valhall-jm"; + reg = <0 0x13000000 0 0x4000>; + interrupts = + , + , + ; + interrupt-names = "job", "mmu", "gpu"; + + clocks = <&apmixedsys CLK_APMIXED_MFGPLL>; + + power-domains = + <&spm MT8192_POWER_DOMAIN_MFG2>, + <&spm MT8192_POWER_DOMAIN_MFG3>, + <&spm MT8192_POWER_DOMAIN_MFG4>, + <&spm MT8192_POWER_DOMAIN_MFG5>, + <&spm MT8192_POWER_DOMAIN_MFG6>; + power-domain-names = "core0", "core1", "core2", "core3", "core4"; + + operating-points-v2 = <&gpu_opp_table>; + + status = "disabled"; + }; + mfgcfg: clock-controller@13fbf000 { compatible = "mediatek,mt8192-mfgcfg"; reg = <0 0x13fbf000 0 0x1000>; From patchwork Thu Feb 23 13:43:37 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: 60989 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp319085wrd; Thu, 23 Feb 2023 05:45:53 -0800 (PST) X-Google-Smtp-Source: AK7set/b+IBuESivnnJSt97PAv+x+ZmU5g5IBTCH00UHaJZZ4gsO0uVBtA21ER1uh+YgksJeVEJt X-Received: by 2002:a17:906:d4:b0:8f0:ba09:4abe with SMTP id 20-20020a17090600d400b008f0ba094abemr718999eji.2.1677159953733; Thu, 23 Feb 2023 05:45:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159953; cv=none; d=google.com; s=arc-20160816; b=OvaRbstlo+s+AW3YrJKDaq03Rdv4QjUOcM6+XcJ2IJPgGMk1iplUypL5LxFal41xvB UAtMlpXKsbcBaPpRWFtTfEKFWQALhjVRqCMYlf75wo/OC5EvsCGvuA7paGzi7XxKeCJu QxGhnG+IGU+p3NPPIV0r861anYbglkl+BxYZ8JMNeWyxEy3tfXzd4nX10lHf/EO1WsM0 7zgvt0Zf/e7evVkVPNRWQi3iASKBKO2GfVQqzIL8R7FBE1xuZEJb/mGw4FJwE8hDzZWD qD5KuyDUx3d9VzhDHEOE8VXIGafNgPqC+EUveg3vkD115tymknCw67/6Yl6h2Bz3hDrS i89A== 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=tUz2IG5jeCpjElVGdpDv/DJnnYHnsQ+3UYbwkQko2Fs=; b=wyIliG/yHRHikJcJwzVl00AZjsmEty/8PG76Bg3VIu03MeuaxVkCmkqKg1GpvGSmWH tYpXQYHwyoY6uCp632aEDBauPTiNN7FRqZvZ4qvUaLnYVaTirvQzMhw5AiOpKzXi4sH2 OqjpZihc4g5r9Nw64JwST4s8zBeD4DCMBNm5vjuuQE60BYvoTNB7pg4jVip9AuehHS9b 7LyG1hLRz8agoMi8q1eqvuDfOOgk7fWR3PPWa7HV8yazvRVTRy10G956tfX9ohArCGej WlZVI0DiVVndBqVhmk7GIIbTe5vBA/i6SlB2yE4uF3CVATfzgRHKXGG5guKUf3k9ceOP pfWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=olJwAFq8; 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 y29-20020a170906519d00b008e86646e6bdsi5391348ejk.1008.2023.02.23.05.45.29; Thu, 23 Feb 2023 05:45: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=olJwAFq8; 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 S234427AbjBWNoY (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234073AbjBWNoE (ORCPT ); Thu, 23 Feb 2023 08:44:04 -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 97740515CA; Thu, 23 Feb 2023 05:44: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 A393F6602206; Thu, 23 Feb 2023 13:44:00 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159841; bh=6g8YPvF/fQJS5t/oA/EETjTk+HQtvnCv6Vgp6i8eIQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=olJwAFq8rMEugAKgzqCigXxF1lW8Eay1JbWHmSlV4HDskIQBZrXRRRAWAow44fToM vNkjU+8q22aZ3/MqahFDM8H+XSNRafzhCkx2SkpoSX6b6OZWGqTJvxQ/iBOVp2Lo2E 9RKGGai6eQVK0spdDPwBmK60c+fb6eUNdvVq4tvZ+xI9IbM2juHB/De/rUSh3J6PpT 483cZXpcC/YXHTg/5dWDLfwLlqn/g1eb0tccKs4zvO9yP0h8twNP0hK3+9tkR9wCCh OZzB5+8KC6sc/lzOQ64UW16bsDx2O6f3guAT5XESplrs/fR2BhlhrxuyIh27Wnh/kE QX7qEFTv3D3ZA== 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 08/16] arm64: dts: mediatek: mt8192: Add mfg_ref_sel clock to MFG0 domain Date: Thu, 23 Feb 2023 14:43:37 +0100 Message-Id: <20230223134345.82625-9-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?1758629675583829680?= X-GMAIL-MSGID: =?utf-8?q?1758629675583829680?= The mfg_ref_sel clock is a mux used to switch between different "safe" (and slower) clock sources for the GPU: this is used during MFGPLL reconfiguration and eventually during idling at very low frequencies. This clock getting turned off means that the GPU will occasionally be unclocked, producing obvious consequences such as system crash or unpredictable behavior: assigning it to the top level MFG power domain will make sure that this stays on at all times during any operation on the MFG domain (only GPU-related transactions). Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 2a3606f68ae4..018d48f7d3c6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -499,8 +499,9 @@ power-domain@MT8192_POWER_DOMAIN_CONN { power-domain@MT8192_POWER_DOMAIN_MFG0 { reg = ; - clocks = <&topckgen CLK_TOP_MFG_PLL_SEL>; - clock-names = "mfg"; + clocks = <&topckgen CLK_TOP_MFG_PLL_SEL>, + <&topckgen CLK_TOP_MFG_REF_SEL>; + clock-names = "mfg", "alt"; #address-cells = <1>; #size-cells = <0>; #power-domain-cells = <1>; From patchwork Thu Feb 23 13:43:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60990 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp319291wrd; Thu, 23 Feb 2023 05:46:19 -0800 (PST) X-Google-Smtp-Source: AK7set8P46xRs//Zmr7RH+xez5S3gqEuxKqacuD4xbqYrRnsbSRP4HXNeOdOw8Q45wEJkEmOvUXD X-Received: by 2002:a05:6402:35d0:b0:4ad:d9c:35d3 with SMTP id z16-20020a05640235d000b004ad0d9c35d3mr13291153edc.1.1677159979705; Thu, 23 Feb 2023 05:46:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159979; cv=none; d=google.com; s=arc-20160816; b=cUhvlMxnz+B0XQ7rS8pakH5+658HISALHKXYwbtyMsX9Px/u8MOQSlhe2jaA7oLTcL Pzyg/IEZ59hqa73n4eUjm2xvGFOkh1WgZATSjrKO0IxKn0xbMkdGnEjzCChDF5ZwBzYY FXg1V91xgIfxyZqqhbC45MHjYY0F/lGYU/kPaTjBHUktuQmX8YRC4JODwmQfVPbL7GNu 4CwR/Cd/LC5KRq/v0H+FmVfAWG+D3w81a30xMlif3dC/KIcqi52IYgiIT6XtPo8IHXBQ LawE8tb7LIjTD3hswQM+IK90ozo65CMKZKBEWTJipW2SBOcWRZX5rCPpULjYBVrmsR68 3Ttw== 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=mp4oon05Id98nwINEF3EplkNYLZDo3lMOs8whveFURw=; b=g/jc06xIi3C/brtbXNGDciehm9H4u1tbHWJgxfJpkSAdYkdRmmnyCN1IKtp6HKj31a nDTSZFFzxdSPFeOVdXnPlvIJTii21VtSmjTYnFysTrIqOufffsybIFx1451czxZtduQU LX4ywxPlTVszEYAnRyweRu0MzBFK9imC7P+BbAZO1M2RtLloDm8p3rdlIc9AFP2UrDG9 8/YcZw5RCEQF2amUt1KJwPkC/rXQe8j9/EzKEffJt0h+O5Gi1LkqZTqphAN3NykZi6pa PvvBGkjxHWDqGHy3HaSQXLsSZ0G9Qr0x6IwyWrGfI/C9lXLKkfo8FplrWdCH7N7GBO65 pPkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=oKlgofuE; 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 sh39-20020a1709076ea700b008ee6a35b676si2695283ejc.781.2023.02.23.05.45.56; Thu, 23 Feb 2023 05:46:19 -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=oKlgofuE; 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 S234632AbjBWNob (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234395AbjBWNoF (ORCPT ); Thu, 23 Feb 2023 08:44:05 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED3FD567BD; Thu, 23 Feb 2023 05:44: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 4ABBB660220B; Thu, 23 Feb 2023 13:44:01 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159841; bh=ycGpdrBlx/uJtZOtOoxWkcwFaJ2ZAw9Ng7FysdL11fE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oKlgofuEaQjFberftOuu7Q5HzbsWGzBvcdjx4/kF2VantqiM6m7AWmJDxmIEQ7+dh HZrVOTVh2mDBTRdpCG7NQF1dMH2GAVdgTzCj+nZgha/Rln9mDVpYpoy32kplF5EPoh Sl2prOVV2wSD15wkyoN8LcHbbDZ3rWNzSu5CI6YLFFBhUAD1pdpixr+lm35heMUgND xA8PVu3HlKOmuddBwcH/EL5qd0ueAXpJGSgVw7ehMXt3Eby+G5Y109UnNefg60IfFQ tV1uCJngaZWfLZDoZ5YERtpCKak6tynbe8p6GMTsApogr316YfZiNQ2KEWbXSGVthT +qCQoFCFhyKmQ== 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, =?utf-8?b?TsOtY29s?= =?utf-8?b?YXMgRi4gUi4gQS4gUHJhZG8=?= Subject: [PATCH v2 09/16] arm64: dts: mediatek: mt8192-asurada: Add MFG0 domain supply Date: Thu, 23 Feb 2023 14:43:38 +0100 Message-Id: <20230223134345.82625-10-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?1758629703023164874?= X-GMAIL-MSGID: =?utf-8?q?1758629703023164874?= From: Nícolas F. R. A. Prado The mfg0 power domain encompasses the whole GPU and its surrounding glue logic. This power domain has a separate power rail. Add its power supply for Asurada. Signed-off-by: Nícolas F. R. A. Prado [wenst@chromium.org: fix subject prefix and add commit message] Signed-off-by: Chen-Yu Tsai [Angelo: Reordered commits to address DVFS stability issues] Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- 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 9f12257ab4e7..ec013d5ef157 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -380,6 +380,10 @@ &i2c7 { pinctrl-0 = <&i2c7_pins>; }; +&mfg0 { + domain-supply = <&mt6315_7_vbuck1>; +}; + &mipi_tx0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 018d48f7d3c6..d536fe5f33a0 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -497,7 +497,7 @@ power-domain@MT8192_POWER_DOMAIN_CONN { #power-domain-cells = <0>; }; - power-domain@MT8192_POWER_DOMAIN_MFG0 { + mfg0: power-domain@MT8192_POWER_DOMAIN_MFG0 { reg = ; clocks = <&topckgen CLK_TOP_MFG_PLL_SEL>, <&topckgen CLK_TOP_MFG_REF_SEL>; From patchwork Thu Feb 23 13:43:39 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: 60995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp320026wrd; Thu, 23 Feb 2023 05:47:59 -0800 (PST) X-Google-Smtp-Source: AK7set/K/PUot3aE1QHoCYZU6vhmzkO4lScYHfir2DDLvUgL08KevzztrTqqIDzHz4wTkdUruVbs X-Received: by 2002:a05:6402:34d5:b0:4ab:dde:dea7 with SMTP id w21-20020a05640234d500b004ab0ddedea7mr12921087edc.2.1677160079175; Thu, 23 Feb 2023 05:47:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677160079; cv=none; d=google.com; s=arc-20160816; b=rHO/Rp0dnU4EMfZyWX41m0z5GOqJTzIaErp3hvU4mVlRJbH4M4iLLFHy3APJruAtJJ s6ddZKC/t2u57t/iuB9yBUXmv4dK4i7uPoiAavXGp5LqvNThzunM+85zv/4Ca60yHK7k FPVCQuamCu6GWVulpsVmEORp7iZUiELP3BlMN27jrT2UrKj3fHFBLntTKh0yjokcth5w sbXtqP9SfYT4gS2+NKejZ0K2Kz34oOIiCK/wMs3HIMMFYMOU2FG42GhShYN8s2vXn+0+ /BAWQNJlA4uIldwXB9QqS0CX49DM0BOVDZYpntmpLJiIn7JGpTOuU0jyOygfpBewSxeF 8OLw== 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=7OLfWRt1qnMKHr69lUZuZA1lccVf6zW2NS/UVgQOAvQ=; b=TrFgVK2dNpilXisP/n4UPVuXqTqqzzaczAW99TxosuWz+u7hmiBxbLLqPKT0kL/1q2 GR/luka+fQdFK1vMdvwYIdC1Q5yMnDrq1StZp/z2nbb2Kldga4liXjDof7ZhCBq23/XN tLI0JG0dWV5LYDt17gJepHQCkbTqsBvGvNVr2iy6Ayu/FP/USdMqA8Wyts5mVzT2NSQJ FKQ7zwdlgH6Cwcz/CMVIrMWyTgPWE3sHceSpjhG4XvqVLhrYQ+lUzZJHVSaEy5Rict6a /89g5OQmtRoywpqtgbRxbXyVa+kAYN48IpC9NEQybBLqLjFEgFCgX/nbxC8Dgn8auELG pNqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FXXezOP7; 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 fh6-20020a1709073a8600b008d8279dfbe0si10344847ejc.651.2023.02.23.05.47.36; Thu, 23 Feb 2023 05:47:59 -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=FXXezOP7; 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 S234692AbjBWNof (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234398AbjBWNoF (ORCPT ); Thu, 23 Feb 2023 08:44:05 -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 8DE1357084; Thu, 23 Feb 2023 05:44:03 -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 0062F660220E; Thu, 23 Feb 2023 13:44:01 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159842; bh=h6g8JhUl3ByKknKJO0h/z+EUOf6qSWsVNOP7Ves+YLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FXXezOP7iroYHgJ5QMenpkLXPgbwhwSRXrI92ZKNC5kUhf9L42eJmE3UMGA/OqMnN 9xoLpSZjqinDokBsC1plasL3onf3Y/Qty6G+GX4Hd8ACLjp0pDokk8AKlWHfVHPkNl eE0g6DmSE7nxs3nZPvLzAW1NM/Jian7xm1rt5olOCsuo/3+5oIoTn0PteZ3/ORxoTe qLJ0d7K38s7jrag7Jn7EU4tAJACVLw33kfMT9KfEXQX/ZTkVsrabRUxElVRC/LSix1 DSb6qlAbxPrRFus5VAA6PGv6mr/yMqkB8jR3gEcc/cl8EZXEWJdGaLkkdeXjHBEBbC 04nJIgj9k1d6w== 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 10/16] arm64: dts: mediatek: mt8192-asurada: Assign sram supply to MFG1 pd Date: Thu, 23 Feb 2023 14:43:39 +0100 Message-Id: <20230223134345.82625-11-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?1758629807167951289?= X-GMAIL-MSGID: =?utf-8?q?1758629807167951289?= 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 Reviewed-by: Chen-Yu Tsai --- 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 d536fe5f33a0..91b63060ec7c 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>; From patchwork Thu Feb 23 13:43:40 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: 60991 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp319293wrd; Thu, 23 Feb 2023 05:46:20 -0800 (PST) X-Google-Smtp-Source: AK7set8NAk8Y40qMquu+nNK1NlPtTGYo7mWQo7DfzYACibNogtP81L0r55Ymg0IG+sx0uvlhwADY X-Received: by 2002:a17:906:256:b0:882:bffc:f2d2 with SMTP id 22-20020a170906025600b00882bffcf2d2mr20858621ejl.2.1677159980311; Thu, 23 Feb 2023 05:46:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159980; cv=none; d=google.com; s=arc-20160816; b=pItnMjlp5uREgN3lN9mJ5SZMFDoM8J3WJebFWctYLmyOvJzoDbtEAUsXcrK0/e1heB Ost2VpNSkA9yWIQvvseJ+F/hcQOy30/keO5VmV6PGV3xwayYbodvlLCBSR/kQdY5mHty BhQ/AoUBO1l37nCla+vq7/Ms+piwDywRjHTZbTe+UBzWRgo0Nu/tUPaHQ7a/0OE6xjj8 QBMAELACk8ewleTNzqBEkFeRA/8GUsKaEq/OaYZpZPNu38rSg9GifvTehYORdiCi5mjb sGun18G1OVx5QbI7PZiIReMs8utxZXI+BIYRmVUjyJF430lpmgrK7oGFfu4lAXtQScnD FsEw== 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=VO92luxRYsdQFdFK/Lge50FPdfOEd7N62jCQXQjhQ9k=; b=Fvu6o1wgct3xjSWlkxE1vxpmrNmVA+PxWh8l1E9A6q/9aFCYFb+uxeBIwv82oKeACc F3piHS37ivYdK3XQlNxOhtCZGuN+kZD/lS9hQcE0AgccfxzftD96UhwqjVceFNn7OIPl +MOlpzcnBX6BV6TG6QLAhog/GWqlqhg/TTvWIeX/qtK3XsM5LOT41rMtWF0SPp1M3zDL 6qC+8CwGPJsOoklUzKe3PfeDqL2W6oG9zNL7UaAEsaJcmq6cwh3UrlCJjcJDwRFv4rJO 5SR4W+hdf7l12QhUNzAYvM1HAXhMZQ0Z6im6M3xAPOKgwIeKVmqsrEZsfgiRu9bSb2HT baIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Kna8qoUB; 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 gj19-20020a170907741300b008b84c44d603si17681169ejc.388.2023.02.23.05.45.56; Thu, 23 Feb 2023 05:46:20 -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=Kna8qoUB; 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 S234707AbjBWNoj (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234400AbjBWNoG (ORCPT ); Thu, 23 Feb 2023 08:44:06 -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 329AF4DBE8; Thu, 23 Feb 2023 05:44:04 -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 967326602209; Thu, 23 Feb 2023 13:44:02 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159843; bh=PvHOALPrQriFUXthOsepKaTpX4xTyaYloZRmD2xgt7w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kna8qoUB6U2pjst9ZLbcVaE/DNh/Nuhish3Gsux2GGBZHkAp3KgzpMrRKqaAsPnQW NwXPWsnTUJiITgfbfI4ybtVgZglJI8VFy51g4ASOnxccfdwac/jMPlFmeYbfOlf95b g/j0eGNYFepmQHZ6btYMimlbAEOeK01GOIgSvSTkzivjKFIlb8DCuvzxcqSEtrBmdo boU7aEmx6BY/XlLkAd4jacUiF0U0gajIA+Bbpjdp6meLdZXVgBggYPkTKBtzmXC6va HEEFWTDuAf3SVWaXX1sJWrYylUe7cHNl5jRCGuAy4zbboKcWwhjqxYLMI/PAYMSTQY UQF0tTV63rOXw== 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 11/16] arm64: dts: mediatek: mt8192-asurada: Couple VGPU and VSRAM_OTHER regulators Date: Thu, 23 Feb 2023 14:43:40 +0100 Message-Id: <20230223134345.82625-12-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?1758629703565472721?= X-GMAIL-MSGID: =?utf-8?q?1758629703565472721?= Add coupling for these regulators, as VSRAM_OTHER is used to power the GPU SRAM, and 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/mt8192-asurada.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index df477eb89f21..c8b6e1a9605b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -447,6 +447,13 @@ &mt6359_vrf12_ldo_reg { regulator-always-on; }; +&mt6359_vsram_others_ldo_reg { + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <850000>; + regulator-coupled-with = <&mt6315_7_vbuck1>; + regulator-coupled-max-spread = <10000>; +}; + &mt6359_vufs_ldo_reg { regulator-always-on; }; @@ -1411,6 +1418,8 @@ mt6315_7_vbuck1: vbuck1 { regulator-max-microvolt = <1193750>; regulator-enable-ramp-delay = <256>; regulator-allowed-modes = <0 1 2>; + regulator-coupled-with = <&mt6359_vsram_others_ldo_reg>; + regulator-coupled-max-spread = <10000>; }; }; }; From patchwork Thu Feb 23 13:43: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: 60994 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp319853wrd; Thu, 23 Feb 2023 05:47:35 -0800 (PST) X-Google-Smtp-Source: AK7set9VtbGGlH3az+qwdcvuxI6kc+kK/vRcwUbGUaJei6NOScTqWrrr384eDyCnMvZB1v1JAkDl X-Received: by 2002:a05:6402:11c6:b0:4af:593c:c07f with SMTP id j6-20020a05640211c600b004af593cc07fmr10387907edw.3.1677160055653; Thu, 23 Feb 2023 05:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677160055; cv=none; d=google.com; s=arc-20160816; b=zxXMiCWsPfzWvpKbQLaGU3rzsWXUQjYR5T8XqW7GFfFuL3dwBBFDlAw8dG7weB8xLo oRqFqiJGwKyMDws0jFNmGsbXh+RQZmXfp3gcxFJeEOfOUId6OBfbOMBPfw6vSgESsiZl loCVsfun09PQOR8iKnIK9/5884ZfOq44xXfvQ2OE8fVhHF4cH6yW2mZ3KHJeG31DL8yE LnGIR462JVU7YLazDYpAC/yYZx4u9Fplg/P5b5kkSgBcMFXOywC5FnlUcLLVkbPJwGtl +ll9MMVKjfhnJzRgRT+AwwF1Mlxu1PcdADOVuBZ3HXdDfiw0O08QPesq5y4y5JYSrsJF X0ig== 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=jqZy+MDKdvz7m5aRBshAv4C2pDneinerQCx22KbQCsw=; b=SKWsoQw2aRZ3Aod9RmmPjKVNDHlWRefb7iooEbe/0dxdvvDkS0e8HFwxgUL60gRUSJ JV9F/mSBrMVks0cocNgWFtrmcrHPjHTWOwEukEsqTZYqkXcoy4KkNJsMIRa+SXXtj8k9 8F90jT37txvbYQU88MRoS9aCddJFo+9pVei5aN9YWgxE55o5aYvbVWD/ewA9J+VfO1wa qvZxgJK0gj1CIHbb+TpXnXCpVHlYhsTCGfU3YNZv+rNGwpoOFQuiT8nnw7hoeC/rPjC9 ocZrEFA0uhj3J3lc7W7iAdgUK4QtbhkMCTBeuuBHgQnZPXB8XK6ow2VO2GfPFaFBIBip 89Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Sw4L5Znq; 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 o19-20020aa7d3d3000000b004acc0169cb1si11388665edr.602.2023.02.23.05.47.13; Thu, 23 Feb 2023 05:47:35 -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=Sw4L5Znq; 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 S234713AbjBWNol (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234394AbjBWNoH (ORCPT ); Thu, 23 Feb 2023 08:44:07 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2D2D57D03; Thu, 23 Feb 2023 05:44:04 -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 39FDF660220A; Thu, 23 Feb 2023 13:44:03 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159843; bh=5uTIKzxccTuXc8ARaKxHVjhHv2AKqCAZTuNnIoDmS70=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sw4L5ZnqFa2sLyuyW38JEOlhxqihMMNhrcOZtS0RpYhksw57hMyge1E4LSf1I8J1P Ta9EdICsUkzksw7zGmVS+mf1y27y05qHPRegzsuouZLyfZ9sYpqMmZ8jYelECmMcm+ E3pW6wlUovBL9sGjTVjvedOMt2U4qSDQkuQ4zNSQ0Da/Cak36Ds/L83szZviB/pjzY JbkYgXFpOnzsd2jVPOpkUzPwEK+lP7ZkVN9Tl7V2G1AkAt2ODXmGb7HcaHTZ+xl6GK kHo8Al6Vw1vxJA6rZUg7lZ/m2dBxaxhkgox/eQ7YD35KH3XgE0P/HjOUL19kdlviVK WWde/QVkRzJvA== 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, Alyssa Rosenzweig Subject: [PATCH v2 12/16] arm64: dts: mediatek: mt8192-asurada: Enable GPU Date: Thu, 23 Feb 2023 14:43:41 +0100 Message-Id: <20230223134345.82625-13-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?1758629782202537951?= X-GMAIL-MSGID: =?utf-8?q?1758629782202537951?= From: Alyssa Rosenzweig Enable the GPU with its power supplies described. Signed-off-by: Alyssa Rosenzweig [wenst@: patch split out from MT8192 GPU node patch] Signed-off-by: Chen-Yu Tsai [Angelo: Minor commit title fix] Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index c8b6e1a9605b..067685191ba6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -275,6 +275,11 @@ &dsi_out { remote-endpoint = <&anx7625_in>; }; +&gpu { + mali-supply = <&mt6315_7_vbuck1>; + status = "okay"; +}; + &i2c0 { status = "okay"; From patchwork Thu Feb 23 13:43:42 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: 60992 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp319450wrd; Thu, 23 Feb 2023 05:46:39 -0800 (PST) X-Google-Smtp-Source: AK7set9JU6Aj/CZRlJ3CfN8xpEE5RbVmvICkE0o/q+HFuipJp+LgvKEXYP/8tHqee3tez+4ky2bs X-Received: by 2002:a17:906:7394:b0:8b1:2614:dea6 with SMTP id f20-20020a170906739400b008b12614dea6mr18436235ejl.1.1677159999280; Thu, 23 Feb 2023 05:46:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159999; cv=none; d=google.com; s=arc-20160816; b=s5d8YbqeANesGQZvpyjfQiLFeSKhmRVDQuZi70Ux85AwFYE1iOgP48T3B4xljr3L30 b4NZeanfaWSKzwwPiJvjhcDSjFrF5foXuh+/agTi2UaPG5gHoNHkQR6/qQpjfUN4AyOP xs84UA0apl7eInrk3AnDWMj8juc43HFkol+5gi/iNUfwyjrX4ZvcEVVj/wmKfJLMuG/G ZuT4tBsVZ5rXqVs4ITkBu0VlJQaTKLMPzw6jHp5s6mJQXxnQwVoz5ZOVvLv+cRCURcN2 jMtRpA4hizPTbbPoJSgO5eBunmv5qt408eA7tDpyHnBBfJNo3UgoLkSGniIQmgg+hJxq B9ag== 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=HTjwFG3J2IVt2pMonvSG1CtMCL/R1k+ZPsu2wtmYqyY=; b=UKSGKcTUQVPXjGQVzLY7Ady7Zo+o0q5oWtkaC46mVZlFRqECKuefgPcInzXQp37ir5 IdsBmBReXCKiSz6uGily+CYI5gRKyQ9E9kV3l0nusSKZcjTXi18wFQOADx8bqm+RLahW pZSm3qmG2CWc63EW2iFysE0sA/SSLEGkYSrQxGgsc6rRIuBvqqH0+2owGmVvJjDEmS7M uly5x2b9LyW/sx8NdmSSM2epiyDQ+9XvBGtMTDXVFdblIKsfBJnRUyjbpdO2J5RJ2Nbb Zrv5aUHkbKwcpOD0OvC/+HntDe2WJfmZzp0iHQseUlTOXASy+1pkjBcvZem4D9a9wqP+ zKFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Dhg5oGo7; 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 fx3-20020a1709069e8300b008c4b76dc98fsi16042403ejc.973.2023.02.23.05.46.16; Thu, 23 Feb 2023 05:46:39 -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=Dhg5oGo7; 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 S234738AbjBWNoo (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234448AbjBWNoI (ORCPT ); Thu, 23 Feb 2023 08:44: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 CE379567A5; Thu, 23 Feb 2023 05:44:05 -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 E060C660220D; Thu, 23 Feb 2023 13:44:03 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159844; bh=Uz234EuBCjuBx6OoxFSEzYWl3aQoeDidRKVMhd2S+v0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dhg5oGo7fLla1KJ2apO4B0vr6swmSsokjeSQkHgo/2J0BAx+oMHI2o0rTcM6wKzAS 3jbxOgJh999yU2lwKpvGjuFaaqCLc4UwzeACIvWkSfkSbcon6gGzVjdZ7Nj8DORfcI fLy/fSSDZokIDolBoVCDnj/qUU7f1m2wnzduo0qu1srKvzKqwr3fOtwSLNHfxpNTh5 BJhCQr1AqP7cVpu9YsLJ863YrYRKd0bO90MaJWc5zmD2jmAleW904w0beBRQnO3rkp Zm/DjUtBk7cmHZGXhFhDTBZPHv3OEJCShJqsZOwMnaAlY5ZWSMH38S2SUXM5sd4zoI VEb0KC1ugA0rw== 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 13/16] arm64: dts: mediatek: mt8195: Add mfg_core_tmp clock to MFG1 domain Date: Thu, 23 Feb 2023 14:43:42 +0100 Message-Id: <20230223134345.82625-14-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?1758629723596086393?= X-GMAIL-MSGID: =?utf-8?q?1758629723596086393?= Similarly to what can be seen in MT8192, on MT8195 the mfg_core_tmp clock is a mux used to switch between different "safe" (and slower) clock sources for the GPU: this is used during MFGPLL reconfiguration and eventually during idling at very low frequencies. This clock getting turned off means that the GPU will occasionally be unclocked, producing obvious consequences such as system crash or unpredictable behavior: assigning it to the top level MFG power domain will make sure that this stays on at all times during any operation on the MFG domain (only GPU-related transactions). Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 8fc527570791..6767bac3f69e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -446,8 +446,9 @@ mfg0: power-domain@MT8195_POWER_DOMAIN_MFG0 { power-domain@MT8195_POWER_DOMAIN_MFG1 { reg = ; - clocks = <&apmixedsys CLK_APMIXED_MFGPLL>; - clock-names = "mfg"; + clocks = <&apmixedsys CLK_APMIXED_MFGPLL>, + <&topckgen CLK_TOP_MFG_CORE_TMP>; + clock-names = "mfg", "alt"; mediatek,infracfg = <&infracfg_ao>; #address-cells = <1>; #size-cells = <0>; From patchwork Thu Feb 23 13:43:43 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: 60993 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp319649wrd; Thu, 23 Feb 2023 05:47:07 -0800 (PST) X-Google-Smtp-Source: AK7set9dQJ9R/IRifj55ZJLHQfJiQFfhpYcQLOp1Mn5FVnsEjKj0gVpeu0fBBA9guoyiPof22A0d X-Received: by 2002:a05:6402:40cb:b0:4af:5ff1:8842 with SMTP id z11-20020a05640240cb00b004af5ff18842mr7598903edb.4.1677160027790; Thu, 23 Feb 2023 05:47:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677160027; cv=none; d=google.com; s=arc-20160816; b=OlXrtcJGqSIWQ7urJtUYNIRzQdEk6JZgKzLZMyY6v7UhI7MEM0U/ij6YjEwJu+SghV IJBoBeva4gYgaHuDk/xB25N44e3H94un700nhYbhjXuvYZsW5URfZkBoRZ5ulwBBN5wH uK542s7ljJBla7Hq/oOKBrb4DDxBKU/YnHEOTccMp8UCG8MR+9xR6Mjynlsft7LyHTtB 8dag5VxsJlS3xuP6mjWPebg3f1fI7J5F5y7KsO34LRLE0ieWwhN5K39ZlhPFENUN+74x dkTTvGipJoeyWfYftTHltvpFx0ubMA3T2HZAWswsRy03ltQKwUmd7VsX0f0WAvl6GDu+ bVVA== 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=9e+UfUHm7Szj+xySEckwJY6vgcnBx5AY6weyUutyo5s=; b=1AwoAj+LFWGebDhsdGyX2iK07KVSuXJ3e0hqyBvXQfEmkWO2HhlcLlKwe0rJjvlixO vWiM9WCAmLn2UNSUF4W5P6wDAw1CUQ9GBILFf+LrxsK50H3Sb2S5noGMne5jltn7H5LF TCh/RpFwi+DoYL6BM9kBnp2R6FIrWKo4BehPgAz+BstIQ6Qs6KPEJK0EsZdkNP9LuOd4 yd14Rlqq1GAJWZxFDlJdib1n47c9HUps//ZGh2siDYQulsvcuazpFXixXW1UW8lguVhn zJYMZ3FsrJ/V16xf6pjM85oDpuai4sgSgf7oFWBRxYgteaOkuaveWGYzPpP32HEcZooX ejHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Q3AnTIOb; 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 u5-20020a05640207c500b004acbea7f4f7si4171540edy.570.2023.02.23.05.46.44; Thu, 23 Feb 2023 05:47:07 -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=Q3AnTIOb; 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 S234649AbjBWNoq (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234566AbjBWNoJ (ORCPT ); Thu, 23 Feb 2023 08:44:09 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 399A253288; Thu, 23 Feb 2023 05:44:06 -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 872BF6602208; Thu, 23 Feb 2023 13:44:04 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159845; bh=2ydCc4fyk0y685SCkm0ivgZR+Aj5TAoj3NXcLWwlqws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q3AnTIObuHslW9SzO++oOT3faDYE1AjdH6uwsea+oK5LquYGUhEt3StkkFnV6jWS4 v+V17wbHUBy8fzA/EZxZpYlQjdLd9aiZQg0kzjxYJt7heyCZ+fxRWjvB4JNHWqEJ9D jhmKRHZindJfu1lF6Hu7E8O7HowMSjeoMBmtXLA3wvP+pNr+hvSkFvnvMxwGl+idkV /En+od5IJYY9NpYTK8dsEQkDbx2DSGNyAMrvBiZTOWdWtSr65Vx+sZRIHjsI0zCc7o Y8Ot6ZJknyHANxyweJkW183zZvdlLtQQuuzJWc5HWTjW7gDK/G3kq9dKn4yyrgValu B2Cb8EePZU4hg== 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 14/16] arm64: dts: mt8195: Add panfrost node for Mali-G57 Valhall Natt GPU Date: Thu, 23 Feb 2023 14:43:43 +0100 Message-Id: <20230223134345.82625-15-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?1758629753408726602?= X-GMAIL-MSGID: =?utf-8?q?1758629753408726602?= Add GPU support through panfrost for the Mali-G57 GPU on MT8195 with its OPP table but keep it in disabled state. This is expected to be enabled only on boards which make use of the GPU. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 90 ++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 6767bac3f69e..b0ee4dc4ce20 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -333,6 +333,76 @@ performance: performance-controller@11bc10 { #performance-domain-cells = <1>; }; + gpu_opp_table: opp-table-gpu { + compatible = "operating-points-v2"; + opp-shared; + + opp-390000000 { + opp-hz = /bits/ 64 <390000000>; + opp-microvolt = <625000>; + }; + opp-410000000 { + opp-hz = /bits/ 64 <410000000>; + opp-microvolt = <631250>; + }; + opp-431000000 { + opp-hz = /bits/ 64 <431000000>; + opp-microvolt = <631250>; + }; + opp-473000000 { + opp-hz = /bits/ 64 <473000000>; + opp-microvolt = <637500>; + }; + opp-515000000 { + opp-hz = /bits/ 64 <515000000>; + opp-microvolt = <637500>; + }; + opp-556000000 { + opp-hz = /bits/ 64 <556000000>; + opp-microvolt = <643750>; + }; + opp-598000000 { + opp-hz = /bits/ 64 <598000000>; + opp-microvolt = <650000>; + }; + opp-640000000 { + opp-hz = /bits/ 64 <640000000>; + opp-microvolt = <650000>; + }; + opp-670000000 { + opp-hz = /bits/ 64 <670000000>; + opp-microvolt = <662500>; + }; + opp-700000000 { + opp-hz = /bits/ 64 <700000000>; + opp-microvolt = <675000>; + }; + opp-730000000 { + opp-hz = /bits/ 64 <730000000>; + opp-microvolt = <687500>; + }; + opp-760000000 { + opp-hz = /bits/ 64 <760000000>; + opp-microvolt = <700000>; + }; + opp-790000000 { + opp-hz = /bits/ 64 <790000000>; + opp-microvolt = <712500>; + }; + opp-820000000 { + opp-hz = /bits/ 64 <820000000>; + opp-microvolt = <725000>; + }; + opp-850000000 { + opp-hz = /bits/ 64 <850000000>; + opp-microvolt = <737500>; + }; + opp-880000000 { + opp-hz = /bits/ 64 <880000000>; + opp-microvolt = <750000>; + }; + }; + pmu-a55 { compatible = "arm,cortex-a55-pmu"; interrupt-parent = <&gic>; @@ -1790,6 +1860,26 @@ ufsphy: ufs-phy@11fa0000 { status = "disabled"; }; + gpu: gpu@13000000 { + compatible = "mediatek,mt8195-mali", "mediatek,mt8192-mali", + "arm,mali-valhall-jm"; + reg = <0 0x13000000 0 0x4000>; + + clocks = <&mfgcfg CLK_MFG_BG3D>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + operating-points-v2 = <&gpu_opp_table>; + power-domains = <&spm MT8195_POWER_DOMAIN_MFG2>, + <&spm MT8195_POWER_DOMAIN_MFG3>, + <&spm MT8195_POWER_DOMAIN_MFG4>, + <&spm MT8195_POWER_DOMAIN_MFG5>, + <&spm MT8195_POWER_DOMAIN_MFG6>; + power-domain-names = "core0", "core1", "core2", "core3", "core4"; + status = "disabled"; + }; + mfgcfg: clock-controller@13fbf000 { compatible = "mediatek,mt8195-mfgcfg"; reg = <0 0x13fbf000 0 0x1000>; From patchwork Thu Feb 23 13:43:44 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: 60997 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp320766wrd; Thu, 23 Feb 2023 05:49:34 -0800 (PST) X-Google-Smtp-Source: AK7set/GhAKub74GFFiWIcpG8mYh/gqCAJ7xERygo385bOhAPYZ/mwq/KFfGjxCBAx5yhkFr9o5A X-Received: by 2002:a05:6402:34d5:b0:4ad:d9c:35ac with SMTP id w21-20020a05640234d500b004ad0d9c35acmr12677804edc.2.1677160174055; Thu, 23 Feb 2023 05:49:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677160174; cv=none; d=google.com; s=arc-20160816; b=gOpivYbgfzOV6x/smaYhrGvVGtzq/WvM04vx6F6RwRUChLX0xN6vp4OrlNr1U+FrVv PPgSJWZIq3As+cxtzsj+yty4tPUYBuPEfUllPjk+pYxAv9uevsel09mVfQ+1NT67Wyel M7pFKmAkLGRFmzYvFTb41P9g991ManTzn4FRLua25cxM2QpcAFot2nXU2EhBhU2Rft3S PwFit+23fpb2gdaVStnblQvMF0WuleJnWPrj9msReZgtcPZ2x4g5PPMstKkuGOyh73jr bXobc3+3uNKsbI3zUEB+R1SQJ5VmI7c1y3MkDUd/PGtV8tQXIb0DjyaYWArUGIAWXrxS ybAw== 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=1Acrc8CuJb9673RJheAp2PuGkCR+tTGJM3uZl4Pw8JA=; b=Wew2OmDUn/SjkLi42G9lgGseTRohU1CaKF3qoETFv8Cqz76nKo8TfFEaybVhBgsuCZ 6JRQK2XFIItafAApVL+yW/NGqU4vK+/84cvOGQNRbGOTzM2fJRo/v4WhoffR7pao45X8 S3jZ46vY6OAbZ4SyO/EL1Z3wwSVW+vztCk3pdToWHpBjkNos8iZuWAP88RQJPKMtHWE4 GSUlgRzdojWVwpSwVf44zw0OlxBnySYhrKpll78O+7X1UgA73IGQV0yh6E59PLrf8pFA N6a9ETH0kt+Qeo8+gdE+v8KWbZ2dZDBXb5avaFUIm4FsbdAZzSoB8YSNUYMDFbUNamLa Njog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="MGWa/tZW"; 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 a16-20020aa7cf10000000b004accac1c5d1si17073931edy.566.2023.02.23.05.49.10; Thu, 23 Feb 2023 05:49:34 -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="MGWa/tZW"; 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 S234443AbjBWNos (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234578AbjBWNoK (ORCPT ); Thu, 23 Feb 2023 08:44:10 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1E2757D0E; Thu, 23 Feb 2023 05:44:06 -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 2DDFE6602206; Thu, 23 Feb 2023 13:44:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159845; bh=862noHI/rREDzYDVTtjiXXlf1hVscfBOCM0dedbpEnY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MGWa/tZWigRcJxgxhM8A1iWWkGMGzeUFou1U0A3VjGFkhm0eJ0rD6ThrC22N/K3pm U1DDgnyOzUqJVhcZhI4RR971z9KFzH/cBaPKtISZHOH9+u6Jm9qoCyzEx6O+Ub62xU pdLvmXZ0VihuTVW1bc6iZxSlh1NqCv/pgjSbEd0xeD33jT+r7ArI9k/AL/1UWEmiwk AGdJFK6hu7hK87LRdIKMlnuJ+Sqs/0OMb8e+H6Sh3gsganlfZuGiJdHsVZAC+dCtLF OTteXY0QB+l7iR+EiSUOkvEgtFhlc+OJm/Ch8jErxR0TfNBPAzNaXwX7iT88BW/EuK iY59O+s5v/wbQ== 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 15/16] arm64: dts: mediatek: mt8195-cherry: Enable Mali-G57 GPU Date: Thu, 23 Feb 2023 14:43:44 +0100 Message-Id: <20230223134345.82625-16-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?1758629906342783137?= X-GMAIL-MSGID: =?utf-8?q?1758629906342783137?= Enable the Mali-G57 found on this platform with the open-source Panfrost driver. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index 56749cfe7c33..24669093fbed 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -238,6 +238,11 @@ dptx_out: endpoint { }; }; +&gpu { + status = "okay"; + mali-supply = <&mt6315_7_vbuck1>; +}; + &i2c0 { status = "okay"; From patchwork Thu Feb 23 13:43:45 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: 60996 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp320396wrd; Thu, 23 Feb 2023 05:48:47 -0800 (PST) X-Google-Smtp-Source: AK7set8IehGqdh++JbS+yAFucHjoP0AGhiq/hati4TLH/5vNW2UXEls7/ys4l0zJ7KNM0QZM2FEq X-Received: by 2002:a17:906:196:b0:8c5:3625:ffc5 with SMTP id 22-20020a170906019600b008c53625ffc5mr16755929ejb.7.1677160126963; Thu, 23 Feb 2023 05:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677160126; cv=none; d=google.com; s=arc-20160816; b=iO9wNQhVd8oJWGj4n3jHN6P0M3YAu6f8iogwPJEEPzk4dnR4TEm0b2kxVvlpd/63SV xrl3V+udp6vYYKUGkQbngkPfnwEBIqmPgSbjeGF8FFQd5w3i2LWrUPKreuBL8WfdYc2F 8Yowa/EAQUO6KGl2UylIWDBdcY+9grxViRiQQJ0VXhdI2ZB2YogztwJ7mlen5jagqnRi YsAGRiK5Ps4qAgD3gigs9qW0XS3wPaKH5AQSQnL92rNAySS555Va8Lg1h0Gd8kZuh+Jy kPvqsKyOcRxf8jN0zpgdojBu6v8ImqQrAYk06wlaCI84LEwXf6IouXgC4ibK9Br86C1J cv4Q== 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=faFMHtrnXNAjdyzSKI/3lVSwB2usiDjprwxUw7xfib4=; b=qLogLmBJsct8izhuBtArlyMyw0znHSz920sGWBFkCpESxjgyaKu5ejevq6+RTd7GeN PnEkhJzXtIRl3qGWnt3irFTnzqezuNonoTNDoEEaeUI/QQBa2A5fqHH4tlebsA/HjTR8 5tmDwtbuOFcPpmpng3lAmh5pZhBOvdcPi7RPoBl1K7e2ojF8nPbWTQZWTKFnyB6s+oRY BVjJWckRDklyKuVhozcRw827Zyo+mLa3ugeKbb4zjpV9bkjgXJQ4lbk5Qbnb5PyveaqB M3lKYKi86w0RLTIJ7/H7pd1PnUQW2VyEyLhyYg0Z1YrtlvZAwnd4bBMsqSCuVlDofizq sefA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GuSHrUQy; 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 fx36-20020a1709069ea400b008bc21b16e13si17862120ejc.871.2023.02.23.05.48.21; Thu, 23 Feb 2023 05:48:46 -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=GuSHrUQy; 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 S234605AbjBWNov (ORCPT + 99 others); Thu, 23 Feb 2023 08:44:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234409AbjBWNoM (ORCPT ); Thu, 23 Feb 2023 08:44:12 -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 DFE3157D1E; Thu, 23 Feb 2023 05:44:07 -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 D451B660220B; Thu, 23 Feb 2023 13:44:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159846; bh=dy6p0VV97fJU2W+Kqgjonk70VW8h+mDMVbMYggMpSpc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GuSHrUQy9erq5ZNAVsetpEIRGkydtz4GeZNTdwFsqf/mEm6sdXG7bXX/F4pbqqrRo Ak/hOc3ehfvQsnR8Z5Z2Y8nhOfHVjJKzisuWTcaIk11oOGk/FnQ33Q05Rf0QDx5aea ol9TyuYtlo+JYMIEN5oN9biMC7PDtIvfslaVXX3mJyzs8zpxGt6r8T144LT71RfS46 EqSbj3B/w5X5c5mFtlyGl8VHdjArAZ9hz8vxLyGzYXWc/MLr795/0g/lnoW7S+U8f1 qsWzjjOyAsTg0s/7q+l4tuyNu2FzDr/qtXz25t6uuDKT9hR5sBDilceqteh0ARwwVe e6hYwbly7GakQ== 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 16/16] arm64: dts: mediatek: mt8186: Add GPU node Date: Thu, 23 Feb 2023 14:43:45 +0100 Message-Id: <20230223134345.82625-17-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?1758629857225470965?= X-GMAIL-MSGID: =?utf-8?q?1758629857225470965?= Add a GPU node for MT8186 SoC but keep it disabled. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index a0d3e1f731bd..dc760e4dafdf 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -1075,6 +1075,23 @@ mfgsys: clock-controller@13000000 { #clock-cells = <1>; }; + gpu: gpu@13040000 { + compatible = "mediatek,mt8186-mali", "mediatek,mt8183b-mali", + "arm,mali-bifrost"; + reg = <0 0x13040000 0 0x4000>; + + clocks = <&mfgsys CLK_MFG_BG3D>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + power-domains = <&spm MT8186_POWER_DOMAIN_MFG2>, + <&spm MT8186_POWER_DOMAIN_MFG3>; + power-domain-names = "core0", "core1"; + #cooling-cells = <2>; + status = "disabled"; + }; + mmsys: syscon@14000000 { compatible = "mediatek,mt8186-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>;