Commit 1db1cfa
media: rockchip: hdmirx: add DT-driven edid-version + set 600M for OPi5U (#488)
* media: rockchip: hdmirx: add edid version to disable NV24
Add two new EDID variants (HDMIRX_EDID_340M_NV12 = 3 and
HDMIRX_EDID_600M_NV12 = 4) that omit the YCbCr 4:4:4 (NV24) capability
bit and let the driver fix up the EDID checksum accordingly. Read the
selected variant from the new `edid-version` DT property on the
hdmirx_ctrler node so per-board defaults can be chosen without
requiring userspace to poke the edid sysfs file at boot.
This is a direct prerequisite for board DTS files that want to advertise
a default EDID other than the hard-coded 340MHz variant.
Signed-off-by: jensen <jensenhuang@friendlyarm.com>
[smazurov@gmail.com: cherry-picked unmodified from friendlyarm/kernel-rockchip
commit ee391fb22 on branch nanopi6-v6.1.y. Applies cleanly on top of
armbian/linux-rockchip rk-6.1-rkr5.1 (with offsets, due to subsequent
unrelated drift). Tested on Orange Pi 5 Ultra (RK3588) with both 1080p60
and 4K60 HDMI sources; required by the companion DTS patch which sets
edid-version = <2> for OPi5U.]
Tested-by: Stepan Mazurov <smazurov@gmail.com>
Signed-off-by: Stepan Mazurov <smazurov@gmail.com>
* arm64: dts: rockchip: opi5-ultra: default hdmirx edid-version to 600M
Set edid-version = <2> (HDMIRX_EDID_600M) on the hdmirx_ctrler node so
the default EDID advertised to upstream HDMI sources includes the
TMDS-up-to-600MHz block (covering 4K@60 modes), instead of the driver's
built-in HDMIRX_EDID_340M default which advertises only up to TMDS
340MHz (1080p60 / 4K@30).
Symptom without this property on Orange Pi 5 Ultra: a 4K-capable HDMI
source (tested with a Linux desktop pushing 3840x2160@60 from a discrete
GPU) cycles indefinitely between TMDS-valid and TMDS-invalid states.
The hdmirx PHY rejects the source's 4K stream because the EDID the
source read did not advertise 4K support, yet the source insists on
4K based on its own display configuration. Writing "2" to
/sys/devices/platform/fdee0000.hdmirx-controller/hdmirx/hdmirx/edid
at runtime resolves the symptom immediately and stably; this DTS change
makes the runtime fix the default at boot.
The Rock 5B+ and NanoPC-T6 board DTS files already set similar
edid-version properties; Orange Pi 5 Ultra was missing the equivalent.
Depends on the rk_hdmirx driver reading edid-version from DT
(prerequisite patch: cherry-pick of friendlyarm/kernel-rockchip commit
ee391fb22 in the companion patch).
Tested-by: Stepan Mazurov <smazurov@gmail.com>
Signed-off-by: Stepan Mazurov <smazurov@gmail.com>
---------
Signed-off-by: jensen <jensenhuang@friendlyarm.com>
Signed-off-by: Stepan Mazurov <smazurov@gmail.com>
Co-authored-by: jensen <jensenhuang@friendlyarm.com>1 parent 6475fed commit 1db1cfa
2 files changed
Lines changed: 43 additions & 6 deletions
File tree
- arch/arm64/boot/dts/rockchip
- drivers/media/platform/rockchip/hdmirx
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1400 | 1400 | | |
1401 | 1401 | | |
1402 | 1402 | | |
| 1403 | + | |
1403 | 1404 | | |
1404 | 1405 | | |
1405 | 1406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
4003 | 4005 | | |
4004 | 4006 | | |
4005 | 4007 | | |
4006 | | - | |
4007 | 4008 | | |
4008 | 4009 | | |
4009 | 4010 | | |
| |||
4039 | 4040 | | |
4040 | 4041 | | |
4041 | 4042 | | |
| 4043 | + | |
| 4044 | + | |
4042 | 4045 | | |
4043 | 4046 | | |
4044 | 4047 | | |
| |||
4098 | 4101 | | |
4099 | 4102 | | |
4100 | 4103 | | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
4101 | 4126 | | |
4102 | 4127 | | |
4103 | 4128 | | |
4104 | 4129 | | |
| 4130 | + | |
| 4131 | + | |
4105 | 4132 | | |
4106 | 4133 | | |
4107 | 4134 | | |
4108 | 4135 | | |
4109 | 4136 | | |
4110 | | - | |
4111 | | - | |
4112 | | - | |
4113 | | - | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
4114 | 4149 | | |
4115 | 4150 | | |
4116 | 4151 | | |
| |||
4244 | 4279 | | |
4245 | 4280 | | |
4246 | 4281 | | |
4247 | | - | |
| 4282 | + | |
| 4283 | + | |
4248 | 4284 | | |
4249 | 4285 | | |
4250 | 4286 | | |
| |||
0 commit comments