From: Jagan Teki <jagan@edgeble.ai>
To: Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Sam Ravnborg <sam@ravnborg.org>,
Thierry Reding <thierry.reding@gmail.com>,
Linus Walleij <linus.walleij@linaro.org>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
Jagan Teki <jagan@edgeble.ai>, Tom Cubie <tom@radxa.com>
Subject: [PATCH 1/4] drm: panel: jadard-jd9365da-h3: Fix panel vendor and model
Date: Mon, 23 Jan 2023 22:10:15 +0530 [thread overview]
Message-ID: <20230123164018.403037-1-jagan@edgeble.ai> (raw)
The initial datasheet claimed that chouzhong designed this 10"
DSI panel on top of JD9365DA IC, but later Radxa mentioned that
chouzhong is the manufacturer.
So the actual design of the panel, gsensor, and customized FPC
is done by Radxa. The panel model named is Radxa Display 10HD
with AD001 is the part number.
Fix the binding and panel driver with the proper panel vendor
and model.
Fixes: <6b818c533dd8> ("drm: panel: Add Jadard JD9365DA-H3 DSI panel")
Fixes: <bb3098eead99> ("dt-bindings: display: Document Jadard
JD9365DA-H3 DSI panel")
Reported-by: Tom Cubie <tom@radxa.com>
Signed-off-by: Jagan Teki <jagan@edgeble.ai>
---
.../bindings/display/panel/jadard,jd9365da-h3.yaml | 4 ++--
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c | 13 ++++++++-----
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml b/Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml
index c06902e4fe70..10ba1b813304 100644
--- a/Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml
+++ b/Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml
@@ -16,7 +16,7 @@ properties:
compatible:
items:
- enum:
- - chongzhou,cz101b4001
+ - radxa,display-10hd-ad001
- const: jadard,jd9365da-h3
reg: true
@@ -52,7 +52,7 @@ examples:
#size-cells = <0>;
panel@0 {
- compatible = "chongzhou,cz101b4001", "jadard,jd9365da-h3";
+ compatible = "radxa,display-10hd-ad001", "jadard,jd9365da-h3";
reg = <0>;
vdd-supply = <&lcd_3v3>;
vccio-supply = <&vcca_1v8>;
diff --git a/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c b/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
index 48c1702a863b..ea89cecad0cf 100644
--- a/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
+++ b/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
@@ -167,7 +167,7 @@ static const struct drm_panel_funcs jadard_funcs = {
.get_modes = jadard_get_modes,
};
-static const struct jadard_init_cmd cz101b4001_init_cmds[] = {
+static const struct jadard_init_cmd radxa_display_10hd_ad001_init_cmds[] = {
{ .data = { 0xE0, 0x00 } },
{ .data = { 0xE1, 0x93 } },
{ .data = { 0xE2, 0x65 } },
@@ -364,7 +364,7 @@ static const struct jadard_init_cmd cz101b4001_init_cmds[] = {
{ .data = { 0xE7, 0x0C } },
};
-static const struct jadard_panel_desc cz101b4001_desc = {
+static const struct jadard_panel_desc radxa_display_10hd_ad001_desc = {
.mode = {
.clock = 70000,
@@ -384,8 +384,8 @@ static const struct jadard_panel_desc cz101b4001_desc = {
},
.lanes = 4,
.format = MIPI_DSI_FMT_RGB888,
- .init_cmds = cz101b4001_init_cmds,
- .num_init_cmds = ARRAY_SIZE(cz101b4001_init_cmds),
+ .init_cmds = radxa_display_10hd_ad001_init_cmds,
+ .num_init_cmds = ARRAY_SIZE(radxa_display_10hd_ad001_init_cmds),
};
static int jadard_dsi_probe(struct mipi_dsi_device *dsi)
@@ -452,7 +452,10 @@ static void jadard_dsi_remove(struct mipi_dsi_device *dsi)
}
static const struct of_device_id jadard_of_match[] = {
- { .compatible = "chongzhou,cz101b4001", .data = &cz101b4001_desc },
+ {
+ .compatible = "radxa,display-10hd-ad001",
+ .data = &radxa_display_10hd_ad001_desc
+ },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, jadard_of_match);
--
2.25.1
next reply other threads:[~2023-01-23 16:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 16:40 Jagan Teki [this message]
2023-01-23 16:40 ` [PATCH 2/4] Revert "dt-bindings: vendor-prefixes: Document Chongzhou" Jagan Teki
2023-01-23 17:21 ` Krzysztof Kozlowski
2023-01-23 16:40 ` [PATCH 3/4] dt-bindings: display: panel: jadard,jd9365da-h3: Add Radxa Display 8HD Jagan Teki
2023-01-23 17:21 ` Krzysztof Kozlowski
2023-01-23 16:40 ` [PATCH 4/4] drm: panel: jd9365da-h3: " Jagan Teki
2023-01-23 17:22 ` [PATCH 1/4] drm: panel: jadard-jd9365da-h3: Fix panel vendor and model Krzysztof Kozlowski
2023-01-23 17:45 ` Jagan Teki
2023-01-23 18:03 ` Krzysztof Kozlowski
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=20230123164018.403037-1-jagan@edgeble.ai \
--to=jagan@edgeble.ai \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=thierry.reding@gmail.com \
--cc=tom@radxa.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).