Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp225107pxy; Tue, 20 Apr 2021 17:24:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEHfF/i/4OmZVPzdv28ODohWSa5wvAYozcg436FmLl8yLZsLHjmaobQunnkyMADkbgI8nr X-Received: by 2002:a17:906:51da:: with SMTP id v26mr29798636ejk.212.1618964644667; Tue, 20 Apr 2021 17:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618964644; cv=none; d=google.com; s=arc-20160816; b=oPS7j2yDC4mE5xtrrktxhrcf22NxN4ohUh1ye4kmezh4iGji9HfUBiwQy6UHYd2uCj WBC6wccpF3TeYcPdm1hud0yTpq5S9tZnDQCBax4eTKKwd8o4rAHIPVY6D9DskSq1tgtG 4N1XYvLD59X418uV/tAOp8ELAVsjt2z1NkN4b9IpTrXvCHIJ9cMeVJveF2BLkV19CPw1 EjJqg6jy8p9+EQUgsAhDnwRc9SQOwnmpcbuE1cCQzs/Uxtw/A/kRwYN4cQkTfzbyIhHs D5jhg8y41pu0lk6TEol4eGAx7O43ZbV41iyhcrHZS8OKCCLAOHTjZlZyVrf757PjvfQS dsrg== 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=udOtkZZjDYxPso6eI0a9vHxz9Qn5dM9EKymdOtACQ/Y=; b=J4ToCQwRkGxEn3Geh4PffTBnBizew0YLSQtpWPmU7IBWpZ5weFiHUELNLJyBYCphG1 eZwUErLXxb6JHj+5esxD9Y+WNNoEQtqreamE6r++sNrdXAIYe/fwD0wn+qV8S4liy6qy 9qXjzIrTl6REe4y1Rf27AOPVBcwdE/ecZlUkjiyzKUc5ZdYHG/Y689uEkOBlKVLWccKD 0jC2kg3dBRibJvcsJcbOU0YiwGjxq++P1gz7pXVOPDaokdjj10tFzxUdG9toqkfdZZf/ 9MmUPWPAp5JVThMeCnu6dXAGjsQk/HgAUx79I6mCmC2aJlTQ9715fmgN3fLtI3wb67it 3Tqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=loH3oVgp; 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 bs19si293231ejb.238.2021.04.20.17.23.41; Tue, 20 Apr 2021 17:24:04 -0700 (PDT) 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=loH3oVgp; 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 S234481AbhDUAT6 (ORCPT + 99 others); Tue, 20 Apr 2021 20:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234442AbhDUATw (ORCPT ); Tue, 20 Apr 2021 20:19:52 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21FCBC061763 for ; Tue, 20 Apr 2021 17:19:20 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id v13so7022998ple.9 for ; Tue, 20 Apr 2021 17:19:20 -0700 (PDT) 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=udOtkZZjDYxPso6eI0a9vHxz9Qn5dM9EKymdOtACQ/Y=; b=loH3oVgpvHTTtx+Cm+Q4516fccOHDIn3WVuFgwOzELLQGBJbxFTEfU0h7fxjh1/t7/ pCIXvhlKcDSWzhuj6cNA7eaolw6JroiG8q657XZODQRywiWBOFMMoWlGV+KWrQ0w40e7 p0dJrrcs+L2AU/7RmZWMu4e4BiEsFMsDE90qo= 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=udOtkZZjDYxPso6eI0a9vHxz9Qn5dM9EKymdOtACQ/Y=; b=eUyZ0UyCF4CqNmJXM+bv7y1xaHLRjw1yDUSeH7O2+p/kSo3NUPgpqIm9fAqJEa8oRa 4kwivlMUiSxkH0X/fezw6Xbhrpi8qdT9NjayCm98p32D1eQXJnrNwqANQobut73hoQL9 i5wZ/KoZMk9zXFqZa5nlNhLyJ8fNJ8FEOjhEqsyPzf/jA3m/RqcVE6EmbjIlV7TSgjjl VFoJSTXyvrFudtv99WPJMNugiWkTXkVCcQv2GHdWuA7dHIkVOeEj+duszNtZiWd/Z4FC vYy1kBNkbstXV+piwL35Nf2R6I8LfVrIs9Vkzx5NFtphpKRyi1qvTcQEEpnkh5OWX6G5 5F4w== X-Gm-Message-State: AOAM530TrK1d6ObKHHVXqsHqOHcD78G9nW7frLh8AiEQH54ppnJ0X/iN JT6kCsYW9lIO/QrNiGfuA5DRQA== X-Received: by 2002:a17:902:8bc3:b029:e9:9639:be21 with SMTP id r3-20020a1709028bc3b02900e99639be21mr31370108plo.59.1618964359731; Tue, 20 Apr 2021 17:19:19 -0700 (PDT) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:95d2:8c89:b629:ff49]) by smtp.gmail.com with ESMTPSA id d20sm145494pfn.166.2021.04.20.17.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 17:19:19 -0700 (PDT) From: Nicolas Boichat To: Rob Herring , Steven Price , Alyssa Rosenzweig Cc: fshao@chromium.org, hsinyi@chromium.org, Neil Armstrong , hoegsberg@chromium.org, Tomeu Vizoso , 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 v12 1/4] dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 Date: Wed, 21 Apr 2021 08:19:05 +0800 Message-Id: <20210421081831.v12.1.Ie74d3355761aab202d4825ac6f66d990bba0130e@changeid> X-Mailer: git-send-email 2.31.1.368.gbe11c130af-goog In-Reply-To: <20210421001908.813625-1-drinkcat@chromium.org> References: <20210421001908.813625-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 --- Changes in v12: - binding: Fix min/maxItems logic (Rob Herring) Changes in v11: - binding: power-domain-names not power-domainS-names Changes in v10: - Fix the binding to make sure sram-supply property can be provided. Changes in v6: - Rebased, actually tested with recent mesa driver. 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) .../bindings/gpu/arm,mali-bifrost.yaml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 184492162e7e..b22cd8f1b015 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 @@ -41,10 +42,13 @@ properties: mali-supply: true + sram-supply: true + operating-points-v2: true power-domains: - maxItems: 1 + minItems: 1 + maxItems: 3 resets: maxItems: 2 @@ -87,6 +91,30 @@ allOf: then: required: - resets + - if: + properties: + compatible: + contains: + const: mediatek,mt8183-mali + then: + properties: + power-domains: + minItems: 3 + power-domain-names: + items: + - const: core0 + - const: core1 + - const: core2 + + required: + - sram-supply + - power-domains + - power-domain-names + else: + properties: + power-domains: + maxItems: 1 + sram-supply: false examples: - | -- 2.31.1.368.gbe11c130af-goog