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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EC10C64EC4 for ; Wed, 22 Feb 2023 07:07:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230300AbjBVHHJ (ORCPT ); Wed, 22 Feb 2023 02:07:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjBVHHG (ORCPT ); Wed, 22 Feb 2023 02:07:06 -0500 Received: from mail-ua1-x92f.google.com (mail-ua1-x92f.google.com [IPv6:2607:f8b0:4864:20::92f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F58531E22 for ; Tue, 21 Feb 2023 23:07:05 -0800 (PST) Received: by mail-ua1-x92f.google.com with SMTP id f36so2227682uae.6 for ; Tue, 21 Feb 2023 23:07:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qlPwPykFYo8rhIVwD6mBB4FPi0U1mYPcwHgebQEUnaw=; b=VXIAa7FunJm6q3CeB62nQ167gZdQVEQe2WuW1+KVUVZUKVfVSRrsFHRIuvLcvB+WAI BkW2mPJ4C7KTo2uk2BNR5ieJykYAv4X+UkH3enEhjvEHcvm8VjYHwUjN7CBfiAFvp+r3 S/1r2W9l9+ur2AMr7PnVyAh/q4cfsy1OA2+z4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qlPwPykFYo8rhIVwD6mBB4FPi0U1mYPcwHgebQEUnaw=; b=Q289egL4i3mZ7PzGE3m/G5nwuqzYopcXzuHighY0C5GU50iVNZWtRLobwS/kch0drZ IniMAmbF+Do7XCw+fRg1xx0r/LikmIPTXdAIbYg8W3+NvNbeSRaTBJmtc1raiUbyzWVq nGow87wwX+BkUdHKFZbI0UYtJd/ArRhx1QCe3PBf2FPMee3xBJy0yDQ8BcKzTKz4EBvv yj/Lioq/lmjYlDsCKam/QXkyW6XgUkuOMLWT+6dXKfre25iFw8uaEmoUtFQ/d0rvBkj3 JKV8nj4HZ8p+THKlBvr84zlba4jJnppKL9slkue5pabwHZ2JGW6bj+8BuYoDradJBYLm MaCw== X-Gm-Message-State: AO0yUKX2avitOSKKiM/pIvmXf0IqodT92tEnEY9zEN1nzEfqWT3watmB mOLn15uOeH5l/JHsbobJKlnplknr90O9PHoN1DpxjA== X-Google-Smtp-Source: AK7set8LX05PaXjP97oF1G9cF2P3OWsBmaHQhbW//L1C7tUi+Z8JteajDRu6P6E5vLHDtTDlMdm48IpSEsLEbY4UVV4= X-Received: by 2002:a1f:208d:0:b0:3e8:66ce:a639 with SMTP id g135-20020a1f208d000000b003e866cea639mr1283824vkg.2.1677049624519; Tue, 21 Feb 2023 23:07:04 -0800 (PST) MIME-Version: 1.0 References: <20230221153740.1620529-1-angelogioacchino.delregno@collabora.com> <20230221153740.1620529-11-angelogioacchino.delregno@collabora.com> In-Reply-To: <20230221153740.1620529-11-angelogioacchino.delregno@collabora.com> From: Chen-Yu Tsai Date: Wed, 22 Feb 2023 15:06:53 +0800 Message-ID: Subject: Re: [PATCH v2 10/10] drm/panfrost: Add new compatible for Mali on the MT8183 SoC To: AngeloGioacchino Del Regno Cc: airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 21, 2023 at 11:37 PM AngeloGioacchino Del Regno wrote: > > The "mediatek,mt8183-mali" compatible uses platform data that calls for > getting (and managing) two regulators ("mali" and "sram") but devfreq > does not support this usecase, resulting in DVFS not working. > > Since a lot of MediaTek SoCs need to set the voltages for the GPU SRAM > regulator in a specific relation to the GPU VCORE regulator, a MediaTek > SoC specific driver was introduced to automatically satisfy, through > coupling, these constraints: this means that there is at all no need to > manage both regulators in panfrost but to otherwise just manage the main > "mali" (-> gpu vcore) regulator instead. > > Keeping in mind that we cannot break the ABI, the most sensible route > (avoiding hacks and uselessly overcomplicated code) to get a MT8183 > node with one power supply was to add a new "mediatek,mt8183b-mali" > compatible, which effectively deprecates the former. > > Signed-off-by: AngeloGioacchino Del Regno > Reviewed-by: Steven Price Reviewed-by: Chen-Yu Tsai