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 144ECC6379F for ; Thu, 9 Feb 2023 08:34:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229580AbjBIIeL (ORCPT ); Thu, 9 Feb 2023 03:34:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjBIIeK (ORCPT ); Thu, 9 Feb 2023 03:34:10 -0500 Received: from mail-vk1-xa2a.google.com (mail-vk1-xa2a.google.com [IPv6:2607:f8b0:4864:20::a2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C2947418 for ; Thu, 9 Feb 2023 00:34:09 -0800 (PST) Received: by mail-vk1-xa2a.google.com with SMTP id l15so555900vkd.11 for ; Thu, 09 Feb 2023 00:34:08 -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=gWuuUdo7aS+R+xwyMPT4inxSLLiy9YRKAIGpnfs3mMw=; b=mnc8Ifx6QnAPmYWW1FKA6DpGkfoRhUGOlwZyawmaWZUYXBRs3P3lMZ6UuiJN+OVnrP JYO03+hkMmh17dEbozQueyLF/rseofZe1Ytt3Bf02eSA13fv7UUEzVDkYLMk6yry8LOM c7xhnpHflipzPwMHeJMaqdWdhYrJCxv4p+PSc= 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=gWuuUdo7aS+R+xwyMPT4inxSLLiy9YRKAIGpnfs3mMw=; b=W3w1lAXZx2P5YeDaBtD6gn/ltWjZR0YAXR1Oitb/cawfc2JztASkV6IG9uNa1WeJvh th1Gzg+OwE1hJvsCzoNGiDZAFTdKbj/K54Z/5/PUc7BocSl1wmINHNVRBs0P7W9ZToom zbo+PAodwlTb2HUeho6GTMromu6qrhp7SMbiZtYvxyqeYFW9egbUJkMPtPK2pyKS+6Dt HrXbZJMhZyipt94gIxd1QwJtYFhvdkNYoKrdbO/TBQTEZB6bwyJopU0UDudeBibqxWGa tWjb2tomCWU9tOAF9W2Jw9mPzNetDdiKtSYU3q2av4Nnb27VNdzKylfuKcrHqBC21EYB 6SVA== X-Gm-Message-State: AO0yUKX7knHIlhnHINi9pWfwe9uWS3r+Z6Sd1kQprwyGIk++YdJXo45R Dgoc0WQy6Kmort4lpgXCc5HU7zoggDT/7vij4HWoFg== X-Google-Smtp-Source: AK7set8pBou1qM81NL3KNWeDM08Kg7jVEwCB11009P47SaV8veeMsx+j8GewJrleWgySAp8Llo1VSXqxEKvDZ4DLKFA= X-Received: by 2002:a1f:9493:0:b0:3ea:7394:e9ef with SMTP id w141-20020a1f9493000000b003ea7394e9efmr2102117vkd.11.1675931648111; Thu, 09 Feb 2023 00:34:08 -0800 (PST) MIME-Version: 1.0 References: <20230208103709.116896-1-angelogioacchino.delregno@collabora.com> <20230208103709.116896-3-angelogioacchino.delregno@collabora.com> In-Reply-To: <20230208103709.116896-3-angelogioacchino.delregno@collabora.com> From: Chen-Yu Tsai Date: Thu, 9 Feb 2023 16:33:57 +0800 Message-ID: Subject: Re: [PATCH 2/9] dt-bindings: gpu: mali-bifrost: Allow up to 5 power domains for MT8192 To: AngeloGioacchino Del Regno Cc: airlied@gmail.com, 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 8, 2023 at 6:37 PM AngeloGioacchino Del Regno wrote: > > MediaTek MT8192 (and similar) needs five power domains for the > Mali GPU and no sram-supply: change the binding to allow so. > mt8192 compatible was already added, so this should have: Fixes: 5d82e74a97c2 ("dt-bindings: Add compatible for Mali Valhall (JM)") > Signed-off-by: AngeloGioacchino Del Regno > --- > .../bindings/gpu/arm,mali-bifrost.yaml | 34 +++++++++++++++++-- > 1 file changed, 31 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > index 69212f3b1328..e7aba66ddb8f 100644 > --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > @@ -61,7 +61,7 @@ properties: > > power-domains: > minItems: 1 > - maxItems: 3 > + maxItems: 5 > > resets: > minItems: 1 > @@ -141,6 +141,18 @@ allOf: > - power-domains > - resets > - reset-names > + - if: > + not: > + properties: > + compatible: > + contains: > + enum: > + - mediatek,mt8183-mali > + - mediatek,mt8192-mali > + then: > + properties: > + power-domains: > + maxItems: 1 > - if: > properties: > compatible: > @@ -161,10 +173,26 @@ allOf: > - sram-supply > - power-domains > - power-domain-names > - else: > + - if: > + properties: > + compatible: > + contains: > + const: mediatek,mt8192-mali > + then: > properties: > power-domains: > - maxItems: 1 > + minItems: 5 > + power-domain-names: > + items: > + - const: core0 > + - const: core1 > + - const: core2 > + - const: core3 > + - const: core4 > + > + required: > + - power-domains > + - power-domain-names > - if: > properties: > compatible: > -- > 2.39.1 >