Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp117881pxb; Tue, 12 Jan 2021 22:11:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaRguSNogCjdMyTOvMtcR+Ee8P4fQVxgkO80k/boNxE00YrZxnY17DdjnHl6feVfRnfiNl X-Received: by 2002:aa7:c1d2:: with SMTP id d18mr492921edp.261.1610518283030; Tue, 12 Jan 2021 22:11:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610518283; cv=none; d=google.com; s=arc-20160816; b=bZ4Zzs4WvOMTmuauyJK0cZF1zja2gh0pS7TIUInprvawcmFQOjbGLE3p5ODSZKvatZ jZK0T4BGYyVcrEK1rCtnOPEm7M98y4fzA8/sfXXEdMk2VbMI5jEGQH1tfBEU/XtbCKqo FWhEuu+aus7yqHnOv8PQBOLaFJyaKP4pAur5D04XI35lGLytT/s0i6QE2aKvlmBsWnh5 zPh6HpVqaE/4rn4eOCIPKF32STLdsT5aH6FFXdJfeJzVwFKWdycXfSAGA5oetLTOo5iE Vd29KTWk7LUK0gOuLEITTgQt0sNCherd3pqCwSHTVXP4Wla8R3PdXDLY+i7JRu33vUWf rSMg== 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=y4TBp5q5xBws0la/+DZ2ckUg4m79Non3qFa6SgDcWGg=; b=pW5ANhobznhwWD0ZE1qJxB+81NsKq/toHAUe5zZb20x10xtHSYQK/3drCfT4QVOoHl S8jLdL03+wu6QtLetQiwX3GHk/1G4E/DDnP9KqtujlaAprqGcCU2BOBxa1DYYRzXD+cJ uh8+k1pqQixtM072/SpHS2l+9xwzmJfRrwcd3enSKXJEGFignNQjVINHBgrlIjm8Rb0V LqNytVH3Ss0S/NTtgkO7G5n32byjzNXVnPqvtdqhQLH9Iqdz7nfQ+Sg6VXLu14GijFLo zHrQmWtf9oa69/O7r5zM4AYZsHKwHaiZ3PSx/yl3ynjMd4NNXW+JfiUkOMVk8igRct8R fzjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cDWSghPu; 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 q6si451310ejb.731.2021.01.12.22.10.59; Tue, 12 Jan 2021 22:11:23 -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=cDWSghPu; 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 S1726666AbhAMGIX (ORCPT + 99 others); Wed, 13 Jan 2021 01:08:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbhAMGIW (ORCPT ); Wed, 13 Jan 2021 01:08:22 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 701FFC061794 for ; Tue, 12 Jan 2021 22:07:42 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id x18so478008pln.6 for ; Tue, 12 Jan 2021 22:07:42 -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=y4TBp5q5xBws0la/+DZ2ckUg4m79Non3qFa6SgDcWGg=; b=cDWSghPuufn3T/EV4JMXVWkh1S3fdRZCrnlPlTRZ16a14aNsXdZDxwWefE0Xp2/i+j I8I9yNwSp696MaDC4TjhRJzfP08lzdEYiByq63mRxRM6LmQ2/4dpovkrZkOH71TdzI9c OFE8vud+3hPk2DXiUW4WFGyysg9gj2TiPRvv8= 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=y4TBp5q5xBws0la/+DZ2ckUg4m79Non3qFa6SgDcWGg=; b=rKYbmRfH1eA8BWldGyPlk5lTas5nYWfmEE9EIh8boU1R99YdsJzcqLCGpNZFws6aHo 2oXWkm5CgcORUXeU8xzfnB9TRuN0TxtqE6LCxyd2U6JOC6grX6Mugsr61HL24b5e4lCU da4szbgTp3lS+ntOKFJiCZzKmnuMAwfeayAWN/oHdM26iwEZzKXpVG4rLSgLRs5N8iil D/mOHrsDth6RPk0Jo0WMfcxaAuaOE8HMBTeI/UCidgX0nRMCqim+4KAe6746J2tlVvjc zhJpE5FbtblSiC6QHu5nYSTqUmgdML+RpfgknJIUrTYj7HeE6Wdjs2eUBcJZKH6SYq3v xs+w== X-Gm-Message-State: AOAM531HHfhVpHGTjTmtYt4x7JT3ME67zwxezzG0n5adrwSquaFL5TmO Bf6fcQIy+OhvStmwIynOnlzpUQ== X-Received: by 2002:a17:90a:e28c:: with SMTP id d12mr543887pjz.236.1610518062063; Tue, 12 Jan 2021 22:07:42 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:7220:84ff:fe09:41dc]) by smtp.gmail.com with ESMTPSA id y21sm1263556pfr.90.2021.01.12.22.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 22:07:41 -0800 (PST) From: Nicolas Boichat To: Rob Herring , Steven Price , Alyssa Rosenzweig Cc: Tomeu Vizoso , fshao@chromium.org, boris.brezillon@collabora.com, hsinyi@chromium.org, hoegsberg@chromium.org, 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 v10 1/4] dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 Date: Wed, 13 Jan 2021 14:07:00 +0800 Message-Id: <20210113140546.v10.1.Ie74d3355761aab202d4825ac6f66d990bba0130e@changeid> X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog In-Reply-To: <20210113060703.3122661-1-drinkcat@chromium.org> References: <20210113060703.3122661-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 v10: - Fix the binding to make sure sram-supply property can be provided. 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 | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 184492162e7e..eac561582063 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,6 +42,8 @@ properties: mali-supply: true + sram-supply: true + operating-points-v2: true power-domains: @@ -87,6 +90,31 @@ allOf: then: required: - resets + - if: + properties: + compatible: + contains: + const: mediatek,mt8183-mali + then: + properties: + 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 + else: + properties: + sram-supply: false examples: - | -- 2.30.0.284.gd98b1dd5eaa7-goog