From: Sascha Hauer <s.hauer@pengutronix.de>
To: dri-devel@lists.freedesktop.org
Cc: linux-rockchip@lists.infradead.org,
"Sandy Huang" <hjc@rock-chips.com>,
"Heiko Stübner" <heiko@sntech.de>,
kernel@pengutronix.de,
"Michael Riesch" <michael.riesch@wolfvision.net>,
"Robin Murphy" <robin.murphy@arm.com>,
"Sascha Hauer" <s.hauer@pengutronix.de>
Subject: [PATCH v2 2/2] drm/rockchip: dw_hdmi: Add support for 4k@30 resolution
Date: Mon, 26 Sep 2022 10:04:35 +0200 [thread overview]
Message-ID: <20220926080435.259617-3-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20220926080435.259617-1-s.hauer@pengutronix.de>
This adds the PLL/phy settings to support higher resolutions like 4k@30.
The values were taken from the Rockchip downstream Kernel.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
index 6a387780562b1..cf86a2936c4d9 100644
--- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
+++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
@@ -161,6 +161,12 @@ static const struct dw_hdmi_mpll_config rockchip_mpll_cfg[] = {
{ 0x214c, 0x0003},
{ 0x4064, 0x0003}
},
+ }, {
+ 340000000, {
+ { 0x0052, 0x0003 },
+ { 0x214d, 0x0003 },
+ { 0x4065, 0x0003 },
+ },
}, {
~0UL, {
{ 0x00a0, 0x000a },
@@ -186,6 +192,8 @@ static const struct dw_hdmi_curr_ctrl rockchip_cur_ctr[] = {
146250000, { 0x0038, 0x0038, 0x0038 },
}, {
148500000, { 0x0000, 0x0038, 0x0038 },
+ }, {
+ 600000000, { 0x0000, 0x0000, 0x0000 },
}, {
~0UL, { 0x0000, 0x0000, 0x0000},
}
--
2.30.2
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2022-09-26 8:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-26 8:04 [PATCH v2 0/2] drm/rockchip: dw_hdmi: Add 4k@30 support Sascha Hauer
2022-09-26 8:04 ` [PATCH v2 1/2] drm/rockchip: dw_hdmi: relax mode_valid hook Sascha Hauer
2022-09-26 8:04 ` Sascha Hauer [this message]
2022-09-26 10:30 ` [PATCH v2 0/2] drm/rockchip: dw_hdmi: Add 4k@30 support Michael Riesch
2022-09-27 17:53 ` Dan Johansen
2022-09-28 8:37 ` Sascha Hauer
2022-09-28 8:39 ` Dan Johansen
2022-10-05 10:06 ` Sascha Hauer
2022-10-05 10:51 ` Dan Johansen
2022-10-05 11:10 ` Sascha Hauer
2022-10-05 12:28 ` Robin Murphy
2022-10-18 15:05 ` Dan Johansen
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=20220926080435.259617-3-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=kernel@pengutronix.de \
--cc=linux-rockchip@lists.infradead.org \
--cc=michael.riesch@wolfvision.net \
--cc=robin.murphy@arm.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