Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14204816pxu; Mon, 4 Jan 2021 16:14:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhLlhrbr/PGAZvK3uNqKSrY1IdWkYHWumjioKrY+NCx8wxavvwyIbgZBUvJuRUAnODNTBN X-Received: by 2002:a17:906:229a:: with SMTP id p26mr68727924eja.291.1609805678944; Mon, 04 Jan 2021 16:14:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609805678; cv=none; d=google.com; s=arc-20160816; b=ROe3+qzWInI9LNFqUA/QW+hdXgD5F6pm7myIlC1+JN6O5v1IewicdIDsFz3L8Mf7FR mBHo4HTJuLgzngQykx4wVfKR9dcbsKRH+RI6hKolyDp2Zi74xI8pZGmzpB4xD/8L/0FJ F44X/RsPZBSGA7v2s5A1vOEOifd5cacLBx7ZNULo5wkuXjssD+7/RebmAj31hrsUdYWy yvgyI2UA1jkyS2+bv5Yvj4ia7EIOIFp9uQpSw/cJkZH+QRVh2kwNnfyhMPdeV5EuZeph a1/w5na8l29cTIa+LIMrwBATm4nY2K41s4hop1+2It2DEjQln1KgfrT9SPnWmvX9cmA1 BkwA== 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=iIOxwRKuhHymsIpzTy5z9PcoEZ/PEx0lJ3uU4FYFr3k=; b=KQKZE7pkOnbcjIyH52z2FUykfqGOboF/T7IFG2iGC9jyUaUW1juFEJjy7Bv/geW97S sF1SWpNeN3L+nwEBMY3SHm/m6aDri8mjiGKEidp8AclWsjWSRKZY2iFZQUd/JOrKVCAS xoGAM3qKNt4ZJ331tB00lP+a5T/FIUb+kgzteldn34xQ1kJNfNYaMFxP7kHPe44yhzpW XEqSCgpjMx2vip45V1gxLCldKUbVQNZYnt0b/5NUt21LQBhkLChhVlmR41C+t1d3bv5O aIWQUY9hBQzHffitLdorTDlMc9jn59gYUSswAjYTUZ57lrbPInIlzmgyqP0qBIOSCopx LSaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dXNP2gmN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a28si32389377edb.462.2021.01.04.16.14.16; Mon, 04 Jan 2021 16:14:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dXNP2gmN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727811AbhAEAMU (ORCPT + 99 others); Mon, 4 Jan 2021 19:12:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbhAEAMU (ORCPT ); Mon, 4 Jan 2021 19:12:20 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FBA0C061798 for ; Mon, 4 Jan 2021 16:11:40 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id be12so15425861plb.4 for ; Mon, 04 Jan 2021 16:11:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iIOxwRKuhHymsIpzTy5z9PcoEZ/PEx0lJ3uU4FYFr3k=; b=dXNP2gmNI5tB6JUO6iNPcR87fSW6UqEnHqLX3343UNHXotTDXpx/PEMG3bg0a64UkF hh5dEBf6XSCut6hfeQDKHDIAGK2wnpcRG1Zo7MOaVsVL8iOn8AE/n85ANWlhD65ZOSXn cGL5NFbebs19QVAX4/SwESvl7Vai5UrnI8H/w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iIOxwRKuhHymsIpzTy5z9PcoEZ/PEx0lJ3uU4FYFr3k=; b=rpbljlJ5B9Rv8bObrTHd1sdjDuj2gLFq4RpYGGNrfpohpKpaEEnGpcfIaVKUlpa3Uk WrxiC5tnbSboqJ0zTGMJ0TZSI9Q1P7zsJ3vJ6T2/NhroZ6E/r+9IgR2C81HoQyedcWy6 dEYm0EfXzRRjeqrrNbLreOnpnFVyEj5BoIF4GEiUWAgFqamDM10Y/zo0OUfAwghAGwN2 XcaoVanp12IFSTGtIAmXPaQLY2KxgbmP/aOABXXSxZX5bTGN1aZSYDMbCBn4TACh0ytt oBc6NOxvCq0IzFJFpK66hEmqe8xmLHQJx6lP/b8zkYp/PM0M6yLVfOJC2ILtI+gd9LCn QAAw== X-Gm-Message-State: AOAM531sbCiNf0+5XsT7hgY4Oeghh0IlsLLQLEBkmXzWQxYjY/adXTRy BHsxOcQVywinXIexHSSd1JBuEQ== X-Received: by 2002:a17:90a:ae02:: with SMTP id t2mr1311186pjq.169.1609805499885; Mon, 04 Jan 2021 16:11:39 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:7220:84ff:fe09:41dc]) by smtp.gmail.com with ESMTPSA id bf3sm465620pjb.45.2021.01.04.16.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 16:11:39 -0800 (PST) From: Nicolas Boichat To: Rob Herring , Steven Price , Alyssa Rosenzweig Cc: hsinyi@chromium.org, hoegsberg@chromium.org, fshao@chromium.org, boris.brezillon@collabora.com, Nicolas Boichat , Daniel Vetter , David Airlie , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 1/4] dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 Date: Tue, 5 Jan 2021 08:11:16 +0800 Message-Id: <20210105081111.v6.1.Ie74d3355761aab202d4825ac6f66d990bba0130e@changeid> X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog In-Reply-To: <20210105001119.2129559-1-drinkcat@chromium.org> References: <20210105001119.2129559-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define a compatible string for the Mali Bifrost GPU found in Mediatek's MT8183 SoCs. Signed-off-by: Nicolas Boichat Reviewed-by: Alyssa Rosenzweig --- Changes in v6: - Rebased, actually tested with recent mesa driver. - No change Changes in v5: - Rename "2d" power domain to "core2" Changes in v4: - Add power-domain-names description (kept Alyssa's reviewed-by as the change is minor) Changes in v3: - No change .../bindings/gpu/arm,mali-bifrost.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 184492162e7e..71b613ee5bd7 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -17,6 +17,7 @@ properties: items: - enum: - amlogic,meson-g12a-mali + - mediatek,mt8183-mali - realtek,rtd1619-mali - rockchip,px30-mali - const: arm,mali-bifrost # Mali Bifrost GPU model/revision is fully discoverable @@ -87,6 +88,30 @@ allOf: then: required: - resets + - if: + properties: + compatible: + contains: + const: mediatek,mt8183-mali + then: + properties: + sram-supply: true + power-domains: + description: + List of phandle and PM domain specifier as documented in + Documentation/devicetree/bindings/power/power_domain.txt + minItems: 3 + maxItems: 3 + power-domain-names: + items: + - const: core0 + - const: core1 + - const: core2 + + required: + - sram-supply + - power-domains + - power-domains-names examples: - | -- 2.29.2.729.g45daf8777d-goog