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 81BCCC64ED8 for ; Fri, 24 Feb 2023 10:05:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230087AbjBXKFz (ORCPT ); Fri, 24 Feb 2023 05:05:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbjBXKFd (ORCPT ); Fri, 24 Feb 2023 05:05:33 -0500 Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D0ED1115D for ; Fri, 24 Feb 2023 02:04:04 -0800 (PST) Received: by mail-vs1-xe2d.google.com with SMTP id x14so20723903vso.9 for ; Fri, 24 Feb 2023 02:04:04 -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=0u8VmJumLQNtV9/ARtd+o+9mpGq0aOZ8ZCgtdjL5v+w=; b=EgsPh7aSD/co6nKbOhDHsb3KMpAIMysgVMJfaHHYHNPA073DiSs2ERsYTUzdL3kVko eMmyJKRblWg9LZ+22ANmwLaKQWEaYMv1WoM8T9j/5/70vpsyoiD+5RfSO0QIGFAO/1wB JeO5cdxPNefTYF9xqcMpZPLRc8jy9sDK34+l8= 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=0u8VmJumLQNtV9/ARtd+o+9mpGq0aOZ8ZCgtdjL5v+w=; b=NqwryutPRdczf44cxZnHQnWYX43s5350g8gzdDcFaIYoFTcdkvln9e6nyGxN9wZD/J rmA9MgQXTZcCdIh21epqgzuRaiHb7dR+sMq4UwR/GXFofTsN8v3O3al7nWACn5N6+2Av NYv41vGXlnVh7I9x94DUUtxdpDLdRDxO/uanCYEaIWdLaoJE1JfD501llGhmsz+ojiHn U38Yo5JByNg57VDgl3DXaNKNaRs1OsRTVsnZ7qpxQVP8l+msTTR2xqQgWojwpOw9AMrQ u2/cgtyfNcK7NIReGl0mD7sxfcsi+SbHmVw4Ev8XjsZPevSAL9qqkEmQUbPWVN3Iq+NN u+dw== X-Gm-Message-State: AO0yUKXqFzmEu8wTPCmFO8Fe0nZfvoqoRnHBOGvf39GjL1dTxroJIzVK q+bCnGtovbRJ73FAu5ODk0YiJxnwg1nF2R5E7+iBng== X-Google-Smtp-Source: AK7set/EfMTEye/Wi0OVyrpkCCmfX4ds+u4ezKh/3ZXapSRgu/h6EFpnsSXhr2sXtUcVxibs89nG9mgSVoo2QY9u5Bo= X-Received: by 2002:a67:d21c:0:b0:402:999f:51dd with SMTP id y28-20020a67d21c000000b00402999f51ddmr2209797vsi.3.1677233041527; Fri, 24 Feb 2023 02:04:01 -0800 (PST) MIME-Version: 1.0 References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> <20230223133440.80941-11-angelogioacchino.delregno@collabora.com> In-Reply-To: <20230223133440.80941-11-angelogioacchino.delregno@collabora.com> From: Chen-Yu Tsai Date: Fri, 24 Feb 2023 18:03:50 +0800 Message-ID: Subject: Re: [PATCH v3 10/11] 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 Thu, Feb 23, 2023 at 9:35 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