From: Nicolas Boichat <drinkcat@chromium•org>
To: Rob Herring <robh+dt@kernel•org>
Cc: Mark Rutland <mark.rutland@arm•com>,
devicetree@vger•kernel.org,
Tomeu Vizoso <tomeu.vizoso@collabora•com>,
David Airlie <airlied@linux•ie>,
linux-kernel@vger•kernel.org, Liam Girdwood <lgirdwood@gmail•com>,
dri-devel@lists•freedesktop.org,
Steven Price <steven.price@arm•com>,
Mark Brown <broonie@kernel•org>,
linux-mediatek@lists•infradead.org,
Alyssa Rosenzweig <alyssa.rosenzweig@collabora•com>,
Daniel Vetter <daniel@ffwll•ch>,
hsinyi@chromium•org, Matthias Brugger <matthias.bgg@gmail•com>,
Nick Fan <nick.fan@mediatek•com>,
linux-arm-kernel@lists•infradead.org
Subject: [PATCH v5 3/4] RFC: drm/panfrost: Add mt8183-mali compatible string
Date: Fri, 6 Mar 2020 12:13:44 +0800 [thread overview]
Message-ID: <20200306041345.259332-4-drinkcat@chromium.org> (raw)
In-Reply-To: <20200306041345.259332-1-drinkcat@chromium.org>
For testing only, the driver doesn't really work yet, AFAICT.
Signed-off-by: Nicolas Boichat <drinkcat@chromium•org>
---
v5:
- Change power domain name from 2d to core2.
v4:
- Add power domain names.
v3:
- Match mt8183-mali instead of bifrost, as we require special
handling for the 2 regulators and 3 power domains.
drivers/gpu/drm/panfrost/panfrost_drv.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c
index a6e162236d67fdf..ff76b29b373e105 100644
--- a/drivers/gpu/drm/panfrost/panfrost_drv.c
+++ b/drivers/gpu/drm/panfrost/panfrost_drv.c
@@ -667,6 +667,15 @@ static const struct panfrost_compatible default_data = {
.pm_domain_names = NULL,
};
+const char * const mediatek_mt8183_supplies[] = { "mali", "sram" };
+const char * const mediatek_mt8183_pm_domains[] = { "core0", "core1", "core2" };
+static const struct panfrost_compatible mediatek_mt8183_data = {
+ .num_supplies = ARRAY_SIZE(mediatek_mt8183_supplies),
+ .supply_names = mediatek_mt8183_supplies,
+ .num_pm_domains = 3,
+ .pm_domain_names = mediatek_mt8183_pm_domains,
+};
+
static const struct of_device_id dt_match[] = {
{ .compatible = "arm,mali-t604", .data = &default_data, },
{ .compatible = "arm,mali-t624", .data = &default_data, },
@@ -677,6 +686,8 @@ static const struct of_device_id dt_match[] = {
{ .compatible = "arm,mali-t830", .data = &default_data, },
{ .compatible = "arm,mali-t860", .data = &default_data, },
{ .compatible = "arm,mali-t880", .data = &default_data, },
+ { .compatible = "mediatek,mt8183-mali",
+ .data = &mediatek_mt8183_data },
{}
};
MODULE_DEVICE_TABLE(of, dt_match);
--
2.25.1.481.gfbce0eb801-goog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-03-06 4:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-06 4:13 [PATCH v5 0/4] Add dts for mt8183 GPU (and misc panfrost patches) Nicolas Boichat
2020-03-06 4:13 ` [PATCH v5 1/4] dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 Nicolas Boichat
2020-03-06 4:13 ` [PATCH v5 2/4] arm64: dts: mt8183: Add node for the Mali GPU Nicolas Boichat
2020-03-06 11:26 ` kbuild test robot
2020-03-06 4:13 ` Nicolas Boichat [this message]
2020-03-06 4:13 ` [PATCH v5 4/4] RFC: drm/panfrost: devfreq: Add support for 2 regulators Nicolas Boichat
2020-03-06 12:35 ` [PATCH v5 0/4] Add dts for mt8183 GPU (and misc panfrost patches) Alyssa Rosenzweig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200306041345.259332-4-drinkcat@chromium.org \
--to=drinkcat@chromium$(echo .)org \
--cc=airlied@linux$(echo .)ie \
--cc=alyssa.rosenzweig@collabora$(echo .)com \
--cc=broonie@kernel$(echo .)org \
--cc=daniel@ffwll$(echo .)ch \
--cc=devicetree@vger$(echo .)kernel.org \
--cc=dri-devel@lists$(echo .)freedesktop.org \
--cc=hsinyi@chromium$(echo .)org \
--cc=lgirdwood@gmail$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-mediatek@lists$(echo .)infradead.org \
--cc=mark.rutland@arm$(echo .)com \
--cc=matthias.bgg@gmail$(echo .)com \
--cc=nick.fan@mediatek$(echo .)com \
--cc=robh+dt@kernel$(echo .)org \
--cc=steven.price@arm$(echo .)com \
--cc=tomeu.vizoso@collabora$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox