Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3703645pxb; Tue, 26 Jan 2021 02:31:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqOC0jwoF1i/YeLN4sHBpeDjPezCBpwvlA8mRcq58GL2oneUCn+RXbnQF6ReRHH6D42a7H X-Received: by 2002:a50:e008:: with SMTP id e8mr3950160edl.339.1611657092600; Tue, 26 Jan 2021 02:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611657092; cv=none; d=google.com; s=arc-20160816; b=bnYvOxrLIEqa/iBQvFX8GAJvQmuAMbyU8nNniCvdeqvIHEsQijJ9vJFdxRW5U/USHF 9ohkdlevsUoEfK5arlZKeiCjdP8qbuLMAFjGJbzHvHepm/iklv8vnw20DQ2oidGhRyR8 UTDOMVTcN1FDKkw2uOpFbtV2A91vx7BPibJt/SAe/ezYeV+0gNwLqhvLl+w56LDrnThc /9c3Ym61JJdgDVS/H+k16+9whMbaV+Nl1W4zsNxC+zXeO3nNnAeibN66+8qxFDf5Cof5 XDPFX/vA1oNUsREv0fjMQFcH3t0Xg3Z+TlghNdoVdFzLddR/RQXX1d4Te5S9UaI5htwg Q1pw== 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=0BZifB+iVMGmxp83gSV8xBJi4ZuHE+jJzS5b46pYB0A=; b=i5QG9mtW8EqGyp+Pol+Gfx+444ab2yXYXkx7bIq8LzMpV8kO8H8xh/fdwNXffdHzrF SecllkFhftb/x/DCC88N+mmPehHThMSuxPVDUk/0Zz0r4l1NWR03rnVwTCzodnVMquyO jjbd4Q1CcVdQlgCV7zk6MlsLw2WfDv0KuRK0lCEVn9Q0xOXHR8TGIqJdobuwFCkFhOXn sLQCDa7mbmVC/ZOms0lfXWE4c6nmTIXtaFe4gap3G6f/BKwsnl9yUoneC1NGmQmg3JWX D9Bu7f30/eh/KOEtZ0PNe6VSEjgCU67AaaCmcUY0zWepSnLhkEfKTy6sd3Lejqp6oUa9 qJxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=buRZJlIf; 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 bo15si8332944edb.320.2021.01.26.02.31.08; Tue, 26 Jan 2021 02:31:32 -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=buRZJlIf; 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 S2403909AbhAZK14 (ORCPT + 99 others); Tue, 26 Jan 2021 05:27:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727052AbhAZBb0 (ORCPT ); Mon, 25 Jan 2021 20:31:26 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F7D0C0698C0 for ; Mon, 25 Jan 2021 17:18:14 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id e9so787109pjj.0 for ; Mon, 25 Jan 2021 17:18:14 -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=0BZifB+iVMGmxp83gSV8xBJi4ZuHE+jJzS5b46pYB0A=; b=buRZJlIfAEszu7DTDxrGpStS4yJ+JlArTcXt0x76ycaU2bjFQCHidprSrOBF3N1xve e2RNFHNjUFXkRgFexKzldGH0QtYp6XGsa/hwV2THVKhJrBrbOYGfciG0gbWd3kkjhV6l hJasfeZTmZ6+c6txPNSZExg1rsZfom+QZAd74= 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=0BZifB+iVMGmxp83gSV8xBJi4ZuHE+jJzS5b46pYB0A=; b=aCbevUpahBRHWfD8rIFhHuNSi7U3I+i4nyP2NZE/TVtqGjzsSZuOu6n4u44et8w254 5l2BMpX0mkdbR3x5Z+n1W62cXVDPBPxbTZoPp2ki5E8uSY307MaXD2c07ugmTspU3c5Q 2PDxRkVObqUuoRZMYZQ9UQti+aQ3yThmjj6Zjflv7e8Z2C/R22+TTk0BQmnONEhVrwKn 5h2gJSyX5+wLiD4RpqDlVKBTAZVZg/wsT3yTSlo2u1xYcwG5MWQ0DyT3DxVkqaBhBn91 qBn5riYUa82f9aHd+9rlfIR05zYnE8k63aGa/fdGLl76W9gxqYCFix7lQou+sQk9WKRw Ry8g== X-Gm-Message-State: AOAM531nSsxcu8ID6i2TMrU1zq6wA918LpYlQ0uYCtcozXJgMrBc/ain 05xcuxJSSHx8NaWnC4pUv+Rc+Q== X-Received: by 2002:a17:90a:77c1:: with SMTP id e1mr3157796pjs.141.1611623893652; Mon, 25 Jan 2021 17:18:13 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:50cc:9282:4fdd:3979]) by smtp.gmail.com with ESMTPSA id k9sm522248pji.8.2021.01.25.17.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 17:18:12 -0800 (PST) From: Nicolas Boichat To: Rob Herring , Steven Price , Alyssa Rosenzweig Cc: fshao@chromium.org, Tomeu Vizoso , hoegsberg@chromium.org, boris.brezillon@collabora.com, hsinyi@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 v11 1/4] dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 Date: Tue, 26 Jan 2021 09:17:56 +0800 Message-Id: <20210126091747.v11.1.Ie74d3355761aab202d4825ac6f66d990bba0130e@changeid> X-Mailer: git-send-email 2.30.0.280.ga3ce27912f-goog In-Reply-To: <20210126011759.1605641-1-drinkcat@chromium.org> References: <20210126011759.1605641-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 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 v9: None Changes in v8: None Changes in v7: None 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) Changes in v3: None Changes in v2: None .../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..3e758f88e2cd 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-domain-names + else: + properties: + sram-supply: false examples: - | -- 2.30.0.280.ga3ce27912f-goog