From patchwork Tue Feb 28 10:26:58 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: 62399 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933389wrd; Tue, 28 Feb 2023 02:30:08 -0800 (PST) X-Google-Smtp-Source: AK7set+uv8PQzyUrR5kJx+WtOfA4ifVB8GecHnx1NIXRQaieEPCzV3QJz1dweSyKsNltxN6jj0L0 X-Received: by 2002:aa7:d38e:0:b0:4ad:7203:9b2a with SMTP id x14-20020aa7d38e000000b004ad72039b2amr2842171edq.19.1677580208458; Tue, 28 Feb 2023 02:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580208; cv=none; d=google.com; s=arc-20160816; b=KRypEsb9qgMGZhsqt3ocYjCdrzMYmmf1NeHbGjmK3+SS8QYcpoGU4x3iGZkwL9/WMr N6fnNtvV21q1aTBVq6q6tcO3GIBgA7XY9OS5Hbvv8Kenz7ZDc7MoDu0v5zOEOGrGmX0X rzYOLYDQEp7WLuvT1gJbWkBh/qGyy6t+cy3cwcEa3Zj+3KX7eq2Y3K8kuCGouM18rTIQ HjKLTULJOfzxo5NiANL1+T1MnSlexzsGgG9j8gM5iiYGLtfIALiyPvwuTy3+lD5g9GJc fwGMQCy9mMtsFYTvDQ5pNO3FwsWyGn7YSe8r0ogHTRzePrFwxhWJ+55h5KGaOwyW+xNL YaOA== 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=/wQJs05byhrrLM8BF/IW9SqNQZTG2r5owrQyzEoZjSg=; b=MAjs88mEeFnDsJX0YMxXJZqrIrYxAwJfRO8UFZPOdgYpFVVq5D0K+NURoP1CvUNy57 lI0DGMJapalCnr4878AeIQdWZXO3ToGyxlWO6wF+LHssLVXLf1O8egPFd2vkg/Mw++Pg u1wu/zLhcCJAKQlKChcl+SN8qPSbXAqM4y4f1EV7uoQH+EW2JMwHyy6C+VNLEcgNdRCs QOHvNAtrPgg1U+MaEfiUj3RyF54P40NM/WR2FflsSxPvqlBkAEHcGLiqd281YAtJkOB5 afA+p8Olk/+BxaFP+k/9dEhhJlOFUKEacd5horpUU/uVhIPgwSSSYtsH7wCun8kOJ0Ji Qt0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CaJ6RRwq; 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 v9-20020a170906858900b008c329c6ee2csi10443246ejx.468.2023.02.28.02.29.45; Tue, 28 Feb 2023 02:30:08 -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=CaJ6RRwq; 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 S231192AbjB1K1c (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231219AbjB1K1R (ORCPT ); Tue, 28 Feb 2023 05:27:17 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 893742CFFD; Tue, 28 Feb 2023 02:27:15 -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 A91E06602FDE; Tue, 28 Feb 2023 10:27:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580034; bh=bxtPSXtkYJhetgJR72HKbYbaXEEqIZSwJCftN/W21/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CaJ6RRwqoHEFPQChKcPrJna+kHBLyaulH4Tnj5MYrHoZ/Mn2WE6E8r2yk1PSbODQR PQs+LAenZVzbbSjDYacpUzx08upKuyQpQ9NOZtVALR8899NeM+Nnoc6BxKAV4yZVto o1evuw9nFf0o+nEAMT6uiKeF9ZohB/4Bb5AUwtLdzGHcIgiztATlo/IKmwSYoV+L8q EPgFRWjzmnQ4H9v2bMfK4AjwwE1F95k5TT0pTiWtnccZ//JAVPTb0+8Et8rUYD9CrI BffdDsVpgN8wjN5yN3QQ7LIGqgJgwf9xdrtETmh+xtXLLdoe1dMLDWIR5KYyxAhU9t NU+f3aYmxzZGg== 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 06/12] dt-bindings: gpu: mali-bifrost: Add support for MediaTek MT8186 Date: Tue, 28 Feb 2023 11:26:58 +0100 Message-Id: <20230228102704.708150-6-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?1759070344671401360?= X-GMAIL-MSGID: =?utf-8?q?1759070344671401360?= MT8186 has a Mali-G52 MC2 2EE GPU (two cores): add a binding with two power domains (one per core) for it. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai Tested-by: Chen-Yu Tsai Reviewed-by: Rob Herring --- .../bindings/gpu/arm,mali-bifrost.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index cf24aaba70f2..9f3991b6deae 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -20,6 +20,7 @@ properties: - amlogic,meson-g12a-mali - mediatek,mt8183-mali - mediatek,mt8183b-mali + - mediatek,mt8186-mali - realtek,rtd1619-mali - renesas,r9a07g044-mali - renesas,r9a07g054-mali @@ -196,6 +197,23 @@ allOf: required: - power-domains - power-domain-names + - if: + properties: + compatible: + contains: + const: mediatek,mt8186-mali + then: + properties: + power-domains: + minItems: 2 + maxItems: 2 + power-domain-names: + items: + - const: core0 + - const: core1 + required: + - power-domains + - power-domain-names - if: properties: compatible: