| 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 ...
|
| c1bbfc5b | 22-Nov-2024 |
Sandy Huang <hjc@rock-chips.com> |
video/drm: display: add support drm-logo memory assigned from dts
For dual os, logo memory will be reserved as following list, we can get the currect memory from memory-region phandle:
/* DRM l
video/drm: display: add support drm-logo memory assigned from dts
For dual os, logo memory will be reserved as following list, we can get the currect memory from memory-region phandle:
/* DRM logo for OS0 */ drm_logo_os0: drm-logo-os0@90600000 { reg = <0x00000000 0x90600000 0x00000000 0x02100000>; compatible = "rockchip,drm-logo-os0"; };
/* DRM logo for OS1 */ drm_logo_os1: drm-logo-os1@92700000 { reg = <0x00000000 0x92700000 0x00000000 0x02100000>; compatible = "rockchip,drm-logo-os1"; };
OS0: &display_subsystem { memory-region = <&drm_logo_os0>, <&drm_cubic_lut>; memory-region-names = "drm-logo", "drm-cubic-lut"; };
OS1: &display_subsystem { memory-region = <&drm_logo_os1>, <&drm_cubic_lut>; memory-region-names = "drm-logo", "drm-cubic-lut"; };
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: I66b40e22f02b298ff4487fdbbf3da6c3d6e5fab7
show more ...
|
| e1a1aa04 | 13-Nov-2024 |
Finley Xiao <finley.xiao@rock-chips.com> |
video/drm: vop2: Don't support to set clk parent in mos
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Change-Id: Ia9d23b607dde672516877e0ae477d818876b1986 Signed-off-by: Joseph Chen <chenj
video/drm: vop2: Don't support to set clk parent in mos
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Change-Id: Ia9d23b607dde672516877e0ae477d818876b1986 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| 789e70ec | 20-Nov-2024 |
Finley Xiao <finley.xiao@rock-chips.com> |
video/drm: vop2: Add support to enable pd and clk for mos
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Change-Id: I48136b34202fe062943d1981db865af05abebc1b |
| 638855e8 | 20-Nov-2024 |
Finley Xiao <finley.xiao@rock-chips.com> |
video/drm: dw_dp: Add support to enable pd and clk for mos
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Change-Id: Ie0da94e796356eecb8b49a2f5da0491e90ac5871 |
| 51fee72c | 20-Nov-2024 |
Finley Xiao <finley.xiao@rock-chips.com> |
video/drm: analogix_dp: Add support to enable clk and pd for mos
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Change-Id: Ib010430e1d6eebcfb7d42b365273b438f6d5df9a |
| ef0607a7 | 27-May-2025 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: Add &vop2_ops.assign_plane_mask to distinguish between platforms
Change-Id: I38a07eb458ea297d202f3ff9cb0754e17fadf4d0 Signed-off-by: Damon Ding <damon.ding@rock-chips.com> |
| 65365de1 | 23-May-2025 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: Put the cursor plane assignment a little later
For RK3568 and RK3588, to aovid &vop2.vp_plane_mask[].cursor_plane_id being overwritten by &vop2.data->plane_mask[].cursor_plane_id, w
video/drm: vop2: Put the cursor plane assignment a little later
For RK3568 and RK3588, to aovid &vop2.vp_plane_mask[].cursor_plane_id being overwritten by &vop2.data->plane_mask[].cursor_plane_id, which is always 0, the assignment of cursor plane should be placed at the end of vop2_plane_mask_assign().
For VOP3, put the cursor plane assignment later to maintain the consistency of adjacent codes.
Fixes: b4fa21dedfd ("video/drm: vop2: modify the check related to the cursor plane") Change-Id: Id012cb3c88a3fe5bf3965f5e80a9fdacb234de92 Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| 2d3a2f01 | 23-May-2025 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: Initialize primary/cursor plane ids of &vop2.vp_plane_mask[] and &vop2_data.vp_plane_mask[]
The default value of &vop2_vp_plane_mask.primary_plane_id and &vop2_vp_plane_mask.cursor_
video/drm: vop2: Initialize primary/cursor plane ids of &vop2.vp_plane_mask[] and &vop2_data.vp_plane_mask[]
The default value of &vop2_vp_plane_mask.primary_plane_id and &vop2_vp_plane_mask.cursor_plane_id should be macro ROCKCHIP_VOP2_PHY_ID_INVALID((u8)-1) instead of 0.
For VOP3, it should be more reasonable to put the initialization process to the beginning of vop2_global_initial().
For RK3568/RK3588, Set cursor_plane_id of &vop2_data.vp_plane_mask[] to ROCKCHIP_VOP2_PHY_ID_INVALID
Change-Id: Icdc0a7d7b4ee994825838ff9b999b79a0dad366a Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| 27c6606c | 28-May-2025 |
Algea Cao <algea.cao@rock-chips.com> |
video/drm: Subdivide rk3528 phy cfg table
Add phy configuration of tmds clk corresponding to 10-bit color depth at different resolutions (such as 1080p60 10-bit).
Change-Id: I7b3c655a51e5fb163c962f
video/drm: Subdivide rk3528 phy cfg table
Add phy configuration of tmds clk corresponding to 10-bit color depth at different resolutions (such as 1080p60 10-bit).
Change-Id: I7b3c655a51e5fb163c962fad19e8f4eea4a79a84 Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
show more ...
|
| dd579ec5 | 29-Apr-2025 |
Sandy Huang <hjc@rock-chips.com> |
video/drm: vop2: remove redundant config done at set win
1. the config will be set at rockchip_vop2_enable() at the end of display_logo(), so remove redundant config done at set win;
2. move win en
video/drm: vop2: remove redundant config done at set win
1. the config will be set at rockchip_vop2_enable() at the end of display_logo(), so remove redundant config done at set win;
2. move win enable at the end of vop2_set_cluster/smart_win() is more reasonable.
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: I7266281723b64cc57a8a1bacab026708221a9bfd
show more ...
|
| b888dbc8 | 30-Apr-2025 |
Sandy Huang <hjc@rock-chips.com> |
video/drm: vop2: add plane_phy_id to the function *_setup_win_dly
Add plane_phy_id mainly to facilitate future expansion.
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: Ic83466a0e7d74b6
video/drm: vop2: add plane_phy_id to the function *_setup_win_dly
Add plane_phy_id mainly to facilitate future expansion.
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: Ic83466a0e7d74b63533a219e8092ed244d4a7687
show more ...
|
| 1615d939 | 02-Dec-2024 |
Sandy Huang <hjc@rock-chips.com> |
video/drm: vop2: Add support rb swap config for plane
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: Ie2678b21e80e8e82e89e517b19477d4d084f6b62 (cherry picked from commit f3fc06a17dc899bc
video/drm: vop2: Add support rb swap config for plane
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: Ie2678b21e80e8e82e89e517b19477d4d084f6b62 (cherry picked from commit f3fc06a17dc899bcdfc0dce93753108d53079922)
show more ...
|
| 28dc0247 | 27-Apr-2025 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: Add support to config CSC from BCSH
The BCSH function of the VPs, which support the feature VOP_FEATURE_POST_CSC, should be implemented with CSC function.
Change-Id: If155cf4313e85
video/drm: vop2: Add support to config CSC from BCSH
The BCSH function of the VPs, which support the feature VOP_FEATURE_POST_CSC, should be implemented with CSC function.
Change-Id: If155cf4313e851608007fdee585140a95872746d Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| 1828f293 | 27-Apr-2025 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: Use write_mask to config gamma AHB for RK3576
As for the reg of gamma AHB configuration, RK3575 has write_mask while RK3588/RK3562/RK3528 do not.
Change-Id: Iad0575a723bc29588a18d7
video/drm: vop2: Use write_mask to config gamma AHB for RK3576
As for the reg of gamma AHB configuration, RK3575 has write_mask while RK3588/RK3562/RK3528 do not.
Change-Id: Iad0575a723bc29588a18d7332f473eca2ad7407b Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| b12f8e1c | 28-Apr-2025 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: post_csc: Fix post csc rgb2rgb matrix
The csc conversion matrixes y2r_for_r2r and r2y_for_r2r have been confused in the previous commit 8b59e34d087 ("video/drm: vop2: fix some csc paramet
video/drm: post_csc: Fix post csc rgb2rgb matrix
The csc conversion matrixes y2r_for_r2r and r2y_for_r2r have been confused in the previous commit 8b59e34d087 ("video/drm: vop2: fix some csc parameters error").
Fixes: 8b59e34d087 ("video/drm: vop2: fix some csc parameters error") Change-Id: I8b1cee84d471eb1e2d1c8602c66754a2feada388 Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| fb331418 | 15-Apr-2025 |
Chaoyi Chen <chaoyi.chen@rock-chips.com> |
video/drm: sii902x: Only set CLK_RATIO_2X for DRM_MODE_FLAG_DBLCLK
According to sii902x datasheet, the TClkSel (Bit[7:6] of reg 0x08, that is SII902X_TPI_PIXEL_REPETITION) selects the factor by whic
video/drm: sii902x: Only set CLK_RATIO_2X for DRM_MODE_FLAG_DBLCLK
According to sii902x datasheet, the TClkSel (Bit[7:6] of reg 0x08, that is SII902X_TPI_PIXEL_REPETITION) selects the factor by which the input clock must be multiplied to give output clock frequency.
Some interlace mode may not set DRM_MODE_FLAG_DBLCLK flag like 1080i, these mode should not enable CLK_RATIO_2X.
This patch make sure we only set CLK_RATIO_2X when the mode has DRM_MODE_FLAG_DBLCLK flag.
Change-Id: Ied098c3f4c176f7ff293cc1c764e0e0c5fddb66c Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
show more ...
|
| 45ec9215 | 13-Feb-2025 |
Damon Ding <damon.ding@rock-chips.com> |
video/drm: vop2: Ensure rk3576 sharp/post-scaler/split are mutually exclusive
VOP sharp/post-scaler/split use the same line buffer. They must be mutually exclusive, otherwise the picture will displa
video/drm: vop2: Ensure rk3576 sharp/post-scaler/split are mutually exclusive
VOP sharp/post-scaler/split use the same line buffer. They must be mutually exclusive, otherwise the picture will display abnormally.
Change-Id: Ib71992b52496f44e28e93ce2c992fa1cfccd2b64 Signed-off-by: Algea Cao <algea.cao@rock-chips.com> Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| b899f9cc | 15-Apr-2025 |
Chaoyi Chen <chaoyi.chen@rock-chips.com> |
video/drm: vop: Add support for force mcu rdn
The RV1126B introduce force RDN feature in MCU interface, which allow to output high voltage level on the MCU_RDN line when MCU is sending data, especia
video/drm: vop: Add support for force mcu rdn
The RV1126B introduce force RDN feature in MCU interface, which allow to output high voltage level on the MCU_RDN line when MCU is sending data, especially for data in the write direction. This feature helps avoid unintended level flips on the RDN line.
Change-Id: If697b937cdf2bcfb471f60bbd10759c95d8bb285 Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
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> |
| bf2d0e57 | 15-Nov-2024 |
Chaoyi Chen <chaoyi.chen@rock-chips.com> |
video/drm: rgb: Add support for RV1126B
Change-Id: I9180b3e9e553a154f502974481446610edb02f6f Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com> |
| 10a896e2 | 15-Nov-2024 |
Chaoyi Chen <chaoyi.chen@rock-chips.com> |
video/drm: vop: Add support for RV1126B vop
RV1126B VOP supports BT1120/BT656/MCU/RGB display interfaces with maximum output resolution of 1920x1080@60fps.
Change-Id: Ida94342c5f65d17d7772d5828a854
video/drm: vop: Add support for RV1126B vop
RV1126B VOP supports BT1120/BT656/MCU/RGB display interfaces with maximum output resolution of 1920x1080@60fps.
Change-Id: Ida94342c5f65d17d7772d5828a85473558380dc2 Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
show more ...
|
| 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> |
| 4ae62432 | 27-Mar-2025 |
Algea Cao <algea.cao@rock-chips.com> |
video/drm: dw-hdmi-qp: Enable dsc according to actual situation
1.Determine whether to enable dsc based on the current resolution and color format.
2.Determine the dsc format of the output accordin
video/drm: dw-hdmi-qp: Enable dsc according to actual situation
1.Determine whether to enable dsc based on the current resolution and color format.
2.Determine the dsc format of the output according to the capability of sink.
Change-Id: Iaf0b4bb4209cd8dedf31e5ea1269477ced2fde4b Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
show more ...
|