From patchwork Tue Feb 28 10:26:56 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: 62396 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933305wrd; Tue, 28 Feb 2023 02:29:53 -0800 (PST) X-Google-Smtp-Source: AK7set+PEutGaJt2aJLM7G+ZAGWIVFw8wrVt/IBva125FQ+JsB0dT6Vk/l56PLWMYEmCCnifnQvt X-Received: by 2002:a17:907:20f8:b0:8b1:2dd3:cb45 with SMTP id rh24-20020a17090720f800b008b12dd3cb45mr2192178ejb.42.1677580193827; Tue, 28 Feb 2023 02:29:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580193; cv=none; d=google.com; s=arc-20160816; b=lAGT3cZyBW8mKVEtpE2CJyTyhtG721u0uhjkw8+ssv2K0jwgYeTSRM2nqbRpi2CTms BRci/MxzxeOdsrKi/o+1TWPu01DoXBYM/NLtvTHaRm/XhXLNPUBPgS5xl1YE9JZ1HXDc /a1tc+d9jjai8PCDjGLh9YSPzh/xfvgyf0aWSsMUzXl+oxaaBqKPIob8LZZlWZMacSpr AKJpM7K3l8Cw89sT+3zxfGJbQ7PYesaynXfa1IkMmlbzdXN7ojNzp6MQoqB6Q8TMyi5r hqp7a+irTP8+XahuriApnmERrBnV5nBfIGvHRCdqZFXNjUUs1Dk6vNsRJ/lxMeq1N19M kq0Q== 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=IXZhRcxoYqPSpvzBcGXmZnDlN3ZQ7TAU9/2jMO7za9M=; b=Rr/MkcxVAH8QYXkq+oBU0YVt5/1ghUFXMzpr+h49ekWSdo96Qsxd6UWMMNpJaiOgFv LAPiYm/yTHAM3jDSVyHlbXTsLrfJ3bQVTNz2Sbr2a6QIBdqtq2t6FjMlAZitmLcNhYtd N+vWPD20XfFe7xMv8kmoIY8idniuSzQmopZukMCm3BMkz1BI/jRqJ+H25lGHih/OmP64 K4TmYlAT4k+L00mRX7qPIiDSxFTBlcKZjf+jqfNySS3oO24symj80BU04afFrSleAwJ8 yyppxnw8oiLeHtXmFAHJGEEAZFk7Q3yTTFNE2aIHSSCwibni+hzyatTZ9gBpYPTDB1IF ZjLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ocPxywjV; 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 dm17-20020a170907949100b008daada6238dsi13921276ejc.64.2023.02.28.02.29.30; Tue, 28 Feb 2023 02:29: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=ocPxywjV; 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 S230437AbjB1K10 (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbjB1K1O (ORCPT ); Tue, 28 Feb 2023 05:27:14 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAB82231D3; Tue, 28 Feb 2023 02:27:13 -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 DADA66602FDC; Tue, 28 Feb 2023 10:27:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580032; bh=/lMqqY+ruC5MK523tvrRTFkgnEJHeIu+JnhJU6LE/FE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ocPxywjVq2ceTiRY09SOE0M7Ru5gguOe/lvBF4gy6f1ISt40hyFah22qGAGTB7SlL FCh9Z92toTeVdkuJdabka/dIpLwqclbAgnsmbgMacqiqmXclc7lAAdTkABGss2drxB XVu7V8JnRZhmllRoH4PLpJCGNPCd7yV+Zfrop7KThb+uiL9h902OeQz5m20sBPbjpD czXx2wM3JPFLmX9Ilelz3cHcSZXmNNFsD2hCuOPgF4pTIOC4s3M1vK3wL0XCvvtyyE 6Kjp9e3/yqmwLac/Y9k7FVjkg7HMSVAMmrGtYwO7OHl62CP2HjYmbIgFrUfkWYe4K7 6KN38twFRpH9w== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: 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, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v4 04/12] dt-bindings: gpu: mali-bifrost: Add sub-schema for MT8192's power domains Date: Tue, 28 Feb 2023 11:26:56 +0100 Message-Id: <20230228102704.708150-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070329362332722?= X-GMAIL-MSGID: =?utf-8?q?1759070329362332722?= MediaTek MT8192 (and similar) needs five power domains for the Mali GPU and no sram-supply: change the binding to allow so by also introducing power-domain-names in the generic binding; while at it, also disallow the newly introduced power-domain-names for all non-MediaTek bindings. Fixes: 5d82e74a97c2 ("dt-bindings: Add compatible for Mali Valhall (JM)") Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Rob Herring Reviewed-by: Chen-Yu Tsai Tested-by: Chen-Yu Tsai --- Since the changes are small, I kept the Reviewed-by tags that were released on the previous version of this patch. If that was wrong, please advertise so. .../bindings/gpu/arm,mali-bifrost.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index bf0f7f1f71e0..c5bef872114d 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -177,6 +177,25 @@ allOf: else: properties: sram-supply: false + - if: + properties: + compatible: + contains: + const: mediatek,mt8192-mali + then: + properties: + power-domains: + 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: