| #
80cb0596 |
| 25-Jun-2023 |
Zhang Yubing <yubing.zhang@rock-chips.com> |
video/drm: dw-dp: fix bus format config issue
only when the sink device just support yuv420 color format, it must be choose yuv420 format output. If the sink support other color format(rgb444, yuv44
video/drm: dw-dp: fix bus format config issue
only when the sink device just support yuv420 color format, it must be choose yuv420 format output. If the sink support other color format(rgb444, yuv444, etc), the other color format should be choose first.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com> Change-Id: I535770e1fa46604f63c294478a80a625d1d9388d
show more ...
|
| #
60e6e79d |
| 04-Jun-2025 |
Sandy Huang <hjc@rock-chips.com> |
drm/rockchip: vop2: add vop reset when vp is active state
For one VOP dual os environment, the secondary OS maybe reboot without display disable or SOC global reset, the hardware may be active state
drm/rockchip: vop2: add vop reset when vp is active state
For one VOP dual os environment, the secondary OS maybe reboot without display disable or SOC global reset, the hardware may be active state, so add this reset to avoid unexpected issues, one VOP dual os dts config example:
linux dts: &vop { iommus = <&vop_mmu1>; rockchip,share-mode-axi-id = <1>; rockchip,share-mode-val = <(ROCKCHIP_VOP2_SHARE_MODE_PRIMARY)>; rockchip,share-mode-vp-mask = <(1 << ROCKCHIP_VOP_VP2)>; rockchip,share-mode-plane-mask = <(1 << ROCKCHIP_VOP2_ESMART2 | 1 << ROCKCHIP_VOP2_ESMART3)>; };
android dts: &vop { iommus = <&vop_mmu>; rockchip,share-mode-axi-id = <0>; rockchip,share-mode-val = <(ROCKCHIP_VOP2_SHARE_MODE_SECONDARY)>; rockchip,share-mode-vp-mask = <(1 << ROCKCHIP_VOP_VP0 | 1 << ROCKCHIP_VOP_VP1)>; rockchip,share-mode-plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_CLUSTER1 | 1 << ROCKCHIP_VOP2_ESMART0 | 1 <<ROCKCHIP_VOP2_ESMART1)>; };
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: I276972204c53538932cd653ec131be7f067c7f82
show more ...
|
| #
de3f896f |
| 15-Apr-2025 |
Chaoyi Chen <chaoyi.chen@rock-chips.com> |
video/drm: vop: Make vop verison more readable
Change-Id: I89f3ddd102dfd02f454badc869dd88291769206a Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
|
| #
9c170041 |
| 24-Feb-2025 |
Algea Cao <algea.cao@rock-chips.com> |
edid: Support hdmi2.1 extend block
Support getting HF-EEODB and HF-SCDB from edid.
Change-Id: Ib1bfe76d1e58c1346e4a0a6105a623a7ac8c8a3a Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
|
| #
038b8732 |
| 10-Apr-2025 |
Algea Cao <algea.cao@rock-chips.com> |
video/drm: display: Change yuv420 mode function to global function
Change-Id: I04b770a0a624235998edf1d869f686e57fdbfba7 Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
|
| #
d00abaef |
| 01-Mar-2024 |
Wenping Zhang <wenping.zhang@rock-chips.com> |
video/drm: display: add support for video console mode
In video console mode, the logs will be showed in the panel/monitor.
To enable the video console mode, the following Kconfig options are requi
video/drm: display: add support for video console mode
In video console mode, the logs will be showed in the panel/monitor.
To enable the video console mode, the following Kconfig options are required:
/* enable the video console */ CONFIG_ROCKCHIP_VIDCONSOLE=y
The default horizontal resolution of video console is the minimum &drm_display_mode.crtc_hdisplay of the VPs, and the vertical resolution is the minimum &drm_display_mode.crtc_vdisplay. The bits per pixel is set to 32 by default.
To set the resolution of video console to 1920x1080 with 16bpp manually, the following Kconfig options should be set:
/* the resolution of the video console */ CONFIG_ROCKCHIP_VIDCONSOLE_WIDTH=1920 CONFIG_ROCKCHIP_VIDCONSOLE_HEIGHT=1080
/* the bits per pixel the of video console */ CONFIG_ROCKCHIP_VIDCONSOLE_BPP32 is not set CONFIG_ROCKCHIP_VIDCONSOLE_BPP16=y CONFIG_ROCKCHIP_VIDCONSOLE_BPP8 is not set
The default video console framebuffer size is 16M, and it can be calculated by: size = ROUNDUP(width x height x bpp / 8 / 1024 / 1024) Take 1080p 32bpp as an example: size = ROUNDUP(1920 x 1080 x 32 / 8 / 1024 / 1024) = 8M
And the following Kconfig option may be set:
/* the framebuffer size of video console */ CONFIG_ROCKCHIP_VIDCONSOLE_MEM_RESERVED_SIZE_MBYTES=8
To confirm the video console is initialized successfully, the logs may be like:
...... Enable video console mode: resolution[1920x1080] bpp[16] ......
Change-Id: I667f896cfcdf1d6460f63db2f0cb7c29d3b11de2 Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com> Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| #
668e6278 |
| 19-Mar-2025 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: support to use the win scale to configure overscan parameters
For some platforms, such as RK3576, use the win scale instead of the post scale to configure overscan parameters, becau
video/drm: vop2: support to use the win scale to configure overscan parameters
For some platforms, such as RK3576, use the win scale instead of the post scale to configure overscan parameters, because the sharp/post scale/split functions are mutually exclusice.
Change-Id: Iffb7d9eadca2ae9eefb71f14a91382e236f90e40 Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| #
bf7c1abf |
| 20-Nov-2024 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: add output_mode check for DP/eDP/HDMI YUV420/YUV422 output
Change-Id: I692e8cb355310bfdd6ed838f523ed3cd98cbd89f Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
|
| #
0686a6a6 |
| 20-Dec-2024 |
Zhang Yubing <yubing.zhang@rock-chips.com> |
video/drm: vop2: reset dclk when crtc post enable
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com> Change-Id: I1ace30e5e8a62159cfe2617371082e26ca2c9e77
|
| #
2b992d78 |
| 21-Dec-2023 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: display: sync mode convert funcs with kernel in split mode
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I63178d79c01d42a27df855c778439543aedc4a59
|
| #
0669ab1f |
| 07-Apr-2024 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: get gamma config from dts
sample:
/ { dsp_lut0: dsp-lut0 { gamma-lut = <...>; };
dsp_lut1: dsp-lut1 { gamma-lut = <...>; }; };
&vp0 { dsp-lut = <&dsp_lut0>; };
&vp1 {
video/drm: vop2: get gamma config from dts
sample:
/ { dsp_lut0: dsp-lut0 { gamma-lut = <...>; };
dsp_lut1: dsp-lut1 { gamma-lut = <...>; }; };
&vp0 { dsp-lut = <&dsp_lut0>; };
&vp1 { dsp-lut = <&dsp_lut1>; };
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I9efbeb4640129307081e6df723194c5d3df0edb4
show more ...
|
| #
44b1b62c |
| 02-Apr-2024 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: enable vop urgency signal output for rk3576
The urgency signal can improve the performance of VOP accessing DDR, since VP0 support 4K120hz output, it usually needs high performance
video/drm: vop2: enable vop urgency signal output for rk3576
The urgency signal can improve the performance of VOP accessing DDR, since VP0 support 4K120hz output, it usually needs high performance and bandwidth, so it's enabled at RK3576 VP0.
RK3576 VP0 has 8 lines post linebuffer, when full post line buffer is less 4, the urgency signal will be set to 1, when full post line buffer is over 6, the urgency signal will be set to 0.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: Ia9fe8e14c1a5ba888f6ccb06adaa828ac7125a01
show more ...
|
| #
40608a7c |
| 05-Mar-2024 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: add support for rgb666_3x6 and rgb565_2x8 modes
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I7bc286ab063118de0470a56e4cb5c9585d568176
|
| #
df0a5c43 |
| 06-Feb-2024 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: display: use color_encoding and color_range instead of private COLOR_SPACE
The old method to description color space and range is borrowing V4L2 defined, It's difficult to understand, so
video/drm: display: use color_encoding and color_range instead of private COLOR_SPACE
The old method to description color space and range is borrowing V4L2 defined, It's difficult to understand, so we change to DRM defined property.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I7eacc60dfda912b9becae1ce026cdb82eebef7f8
show more ...
|
| #
a552a69c |
| 21-Jan-2024 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: add support for rk3576
RK3576 VOP have 2 Cluster win and 4 Esmart win, this win be used by 3 video ports as following roles: * VP0 can use Cluster0/1 and Esmart0/2 * VP1 can use C
video/drm: vop2: add support for rk3576
RK3576 VOP have 2 Cluster win and 4 Esmart win, this win be used by 3 video ports as following roles: * VP0 can use Cluster0/1 and Esmart0/2 * VP1 can use Cluster0/1 and Esmart1/3 * VP2 can use Esmart0/1/2/3
In additions, RK3576 VOP can support DCI/ACM/CSC/HDR/SHARP/GAMMA/3D LUT/POST SCALE/BCSH etc. post process.
Change-Id: Iec5d8849032438a8da3db914f35aefb9119746d5 Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| #
0fda4887 |
| 07-Aug-2023 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: display: add support for logo rotation
The supported rotation angles is 90, 180 and 270.
Dts configs like:
&route_hdmi0 { status = "okay"; logo,rotate = <90>; };
&route_hdmi1 { stat
video/drm: display: add support for logo rotation
The supported rotation angles is 90, 180 and 270.
Dts configs like:
&route_hdmi0 { status = "okay"; logo,rotate = <90>; };
&route_hdmi1 { status = "okay"; logo,rotate = <180>; };
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I34bc0aa56a324ac79bc551de4dd5ee5558c096f7
show more ...
|
| #
17e6e1a5 |
| 26-Jul-2023 |
Chaoyi Chen <chaoyi.chen@rock-chips.com> |
video/drm: lvds: add support for dual lvds connector
There are two models of dual-lvds: 1. dual-channel-lvds: This mode has one panel with two separate LVDS connector outputs for even and odd pixel.
video/drm: lvds: add support for dual lvds connector
There are two models of dual-lvds: 1. dual-channel-lvds: This mode has one panel with two separate LVDS connector outputs for even and odd pixel.
2. dual-lvds: This mode has two panel, outputting the left content and the right content respectively.
These two modes are regarded as the connectors in the split-mode, just like dp/edp/hdmi.
In order to be consistent with the kernel, an additional DTS bool attribute of "dual-channel" is added to help VOP determine whether there are multiple LVDS connectors.
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com> Change-Id: I1d3b3cfa20419db5fe089f89f8a3b91c40903e97
show more ...
|
| #
2264c88b |
| 04-Sep-2023 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop: add debug logs about drm_display_mode
The added logs may be like: ...... VOP:0xff990000 update mode to: 320x480p45, type: RGB VOP:0xff990000 set crtc_clock to 141120KHz ......
Signe
video/drm: vop: add debug logs about drm_display_mode
The added logs may be like: ...... VOP:0xff990000 update mode to: 320x480p45, type: RGB VOP:0xff990000 set crtc_clock to 141120KHz ......
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: Ic4ca57a21d49d0f6167fb2fb7ae8d0ccf996c3d6
show more ...
|
| #
4d64cedb |
| 04-Aug-2023 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: display: fix the dclk calculation of mcu interface
dclk = htotal * vtotal * frame-rate * cycles-per-pixel * (pix-total + 1)
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-I
video/drm: display: fix the dclk calculation of mcu interface
dclk = htotal * vtotal * frame-rate * cycles-per-pixel * (pix-total + 1)
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: Ia33d950b8df1129608dbf680dcf69d1baf2d169f
show more ...
|
| #
1b5811e7 |
| 30-May-2023 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop: add mode_fixup func to check crtcinfo
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I793a4c3e1cf07879200aca166697edd8210c2cd7
|
| #
0675a2a4 |
| 20-Apr-2023 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop3: add support for rk3562 mcu interface
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I23086a51fceeff77952c110fb4e32adea7498c54
|
| #
b02eb70b |
| 09-May-2023 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: add mode_fixup func to check crtcinfo
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: Icc3ae80f36e300561312b0c5bde2bceac75756ad
|
| #
13f658dc |
| 15-Apr-2023 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: dss: check dclk_inv from bus_flags
Use bus_flags to check dclk_inv, which synchronized with kernel.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I155188fc7e3654b82e5b
video/drm: dss: check dclk_inv from bus_flags
Use bus_flags to check dclk_inv, which synchronized with kernel.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I155188fc7e3654b82e5b0c9aba1627ada5a5ed0e
show more ...
|
| #
690e9ed1 |
| 18-May-2023 |
Sandy Huang <hjc@rock-chips.com> |
video/drm: add support HDMI display from SPL
The SPL display only can support at rk3528 hdmi output, you can add the following config to enable SPL display:
CONFIG_ARM_SMP=y CONFIG_MP_BOOT=y CONFIG
video/drm: add support HDMI display from SPL
The SPL display only can support at rk3528 hdmi output, you can add the following config to enable SPL display:
CONFIG_ARM_SMP=y CONFIG_MP_BOOT=y CONFIG_ARMV8_SET_SMPEN=y CONFIG_SPL_DM_VIDEO=y CONFIG_SPL_I2C_EDID=y
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Signed-off-by: Algea Cao <algea.cao@rock-chips.com> Change-Id: I4fea0900b5f6714d8ca573ea715797d513c3bb03
show more ...
|
| #
8e7ef808 |
| 19-Jul-2022 |
Damon Ding <damon.ding@rock-chips.com> |
drm/rockchip: vop2: add support for soft_te
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I31cf94f4f9fc900f80e8752f03d305036a0153a8
|