From patchwork Wed Feb 8 10:37:00 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: 13132906 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1FC37C636CC for ; Wed, 8 Feb 2023 10:37:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A6A9910E203; Wed, 8 Feb 2023 10:37:29 +0000 (UTC) Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by gabe.freedesktop.org (Postfix) with ESMTPS id D2BC010E203 for ; Wed, 8 Feb 2023 10:37:26 +0000 (UTC) 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 926276600362; Wed, 8 Feb 2023 10:37:24 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1675852645; bh=/TfPvp6plAjoFcYtaig2qjMKVF3/MF8RCUeLjIAi3p8=; h=From:To:Cc:Subject:Date:From; b=jsYyniUpwhKiEmMCpHCSu7FEIZHemSO7pZ5dhdU9XIZJ6qA4UAjeg2CsNhM+CuPGT ua0DQDDEQe9HqZgr3cx7xwcZvdNfOtGcKfrd8U+pOxZ0pIuM9D0NiR3HZjseDq0tDK 0djHoqY1NwshX4wqhMewQ/XEhXtGI93+iC3X5SeOhkNdtN6Lqdh5YAvMn5NpSdIwmE ugYy1SKGdx1oCMr7F8Vq63NVealo52RpaxejkvdLr1M+hnGue0b38AWcp4zWVmRreK 5qYWdsrAaaY3i8DrMnPXM4jUAXMrzcWDpgP5nzZa/t9pVKaFDdOH70Arypy+KgxjJr /6EmWDQs6p3rA== From: AngeloGioacchino Del Regno To: airlied@gmail.com Subject: [PATCH 0/9] Panfrost: Improve and add MediaTek SoCs support Date: Wed, 8 Feb 2023 11:37:00 +0100 Message-Id: <20230208103709.116896-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tomeu.vizoso@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, steven.price@arm.com, robh+dt@kernel.org, linux-mediatek@lists.infradead.org, alyssa.rosenzweig@collabora.com, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series adds support for new MediaTek SoCs (MT8186/MT8192/MT8195) and improves MT8183 support: since the mtk-regulator-coupler driver was picked, it is now useless for Panfrost to look for, and manage, two regulators (GPU Vcore and GPU SRAM) on MediaTek; The aforementioned driver will take care of keeping the voltage relation (/constraints) of the two regulators on its own when a voltage change request is sent to the Vcore, solving the old time issue with not working DVFS on Panfrost+MediaTek (due to devfreq supporting only single regulator). In the specific case of MT8183, in order to not break the ABI, it was necessary to add a new compatible for enabling DVFS. Alyssa Rosenzweig (3): drm/panfrost: Increase MAX_PM_DOMAINS to 5 drm/panfrost: Add the MT8192 GPU ID drm/panfrost: Add mediatek,mt8192-mali compatible AngeloGioacchino Del Regno (6): dt-bindings: gpu: mali-bifrost: Don't allow sram-supply by default dt-bindings: gpu: mali-bifrost: Allow up to 5 power domains for MT8192 dt-bindings: gpu: mali-bifrost: Add compatible for MT8195 SoC dt-bindings: gpu: mali-bifrost: Add new MT8183 compatible dt-bindings: gpu: mali-bifrost: Add a compatible for MediaTek MT8186 drm/panfrost: Add new compatible for Mali on the MT8183 SoC .../bindings/gpu/arm,mali-bifrost.yaml | 68 +++++++++++++++++-- drivers/gpu/drm/panfrost/panfrost_device.h | 2 +- drivers/gpu/drm/panfrost/panfrost_drv.c | 28 ++++++++ drivers/gpu/drm/panfrost/panfrost_gpu.c | 8 +++ 4 files changed, 99 insertions(+), 7 deletions(-) Reviewed-by: Steven Price Tested-by: Chen-Yu Tsai