From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
Add support for Kaanapali platform SSPP sub-blocks, which
introduce structural changes including register additions,
removals, and relocations. Add the new common and rectangle
blocks, and update register definitions and handling to
ensure compatibility with DPU v13.0.
Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
---
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 474 +++++++++++++++++++-
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c | 23 +
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h | 4 +
3 files changed, 483 insertions(+), 18 deletions(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
index 6f1fc790ad6d..7217c952f01c 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
@@ -17,6 +17,7 @@
#define DPU_FETCH_CONFIG_RESET_VALUE 0x00000087
+/* <= v12 DPU */
/* SSPP registers */
#define SSPP_SRC_SIZE 0x00
#define SSPP_SRC_XY 0x08
@@ -74,12 +75,116 @@
#define SSPP_EXCL_REC_XY 0x1B8
#define SSPP_CLK_CTRL 0x330
+/* >= v13 DPU */
+/* CMN Registers -> Source Surface Processing Pipe Common SSPP registers */
+/* Name Offset */
+#define SSPP_CMN_CLK_CTRL 0x0
+#define SSPP_CMN_CLK_STATUS 0x4
+#define SSPP_CMN_MULTI_REC_OP_MODE 0x10
+#define SSPP_CMN_ADDR_CONFIG 0x14
+#define SSPP_CMN_CAC_CTRL 0x20
+#define SSPP_CMN_SYS_CACHE_MODE 0x24
+#define SSPP_CMN_QOS_CTRL 0x28
+#define SSPP_CMN_DANGER_LUT 0x2C
+#define SSPP_CMN_SAFE_LUT 0x30
+
+#define SSPP_CMN_FILL_LEVEL_SCALE 0x3C
+#define SSPP_CMN_FILL_LEVELS 0x40
+#define SSPP_CMN_STATUS 0x44
+#define SSPP_CMN_FETCH_DMA_RD_OTS 0x48
+#define SSPP_CMN_FETCH_DTB_WR_PLANE0 0x4C
+#define SSPP_CMN_FETCH_DTB_WR_PLANE1 0x50
+#define SSPP_CMN_FETCH_DTB_WR_PLANE2 0x54
+#define SSPP_CMN_DTB_UNPACK_RD_PLANE0 0x58
+#define SSPP_CMN_DTB_UNPACK_RD_PLANE1 0x5C
+#define SSPP_CMN_DTB_UNPACK_RD_PLANE2 0x60
+#define SSPP_CMN_UNPACK_LINE_COUNT 0x64
+#define SSPP_CMN_TPG_CONTROL 0x68
+#define SSPP_CMN_TPG_CONFIG 0x6C
+#define SSPP_CMN_TPG_COMPONENT_LIMITS 0x70
+#define SSPP_CMN_TPG_RECTANGLE 0x74
+#define SSPP_CMN_TPG_BLACK_WHITE_PATTERN_FRAMES 0x78
+#define SSPP_CMN_TPG_RGB_MAPPING 0x7C
+#define SSPP_CMN_TPG_PATTERN_GEN_INIT_VAL 0x80
+
+/*RECRegisterset*/
+/*Name Offset*/
+#define SSPP_REC_SRC_FORMAT 0x0
+#define SSPP_REC_SRC_UNPACK_PATTERN 0x4
+#define SSPP_REC_SRC_OP_MODE 0x8
+#define SSPP_REC_SRC_CONSTANT_COLOR 0xC
+#define SSPP_REC_SRC_IMG_SIZE 0x10
+#define SSPP_REC_SRC_SIZE 0x14
+#define SSPP_REC_SRC_XY 0x18
+#define SSPP_REC_OUT_SIZE 0x1C
+#define SSPP_REC_OUT_XY 0x20
+#define SSPP_REC_SW_PIX_EXT_LR 0x24
+#define SSPP_REC_SW_PIX_EXT_TB 0x28
+#define SSPP_REC_SRC_SIZE_ODX 0x30
+#define SSPP_REC_SRC_XY_ODX 0x34
+#define SSPP_REC_OUT_SIZE_ODX 0x38
+#define SSPP_REC_OUT_XY_ODX 0x3C
+#define SSPP_REC_SW_PIX_EXT_LR_ODX 0x40
+#define SSPP_REC_SW_PIX_EXT_TB_ODX 0x44
+#define SSPP_REC_PRE_DOWN_SCALE 0x48
+#define SSPP_REC_SRC0_ADDR 0x4C
+#define SSPP_REC_SRC1_ADDR 0x50
+#define SSPP_REC_SRC2_ADDR 0x54
+#define SSPP_REC_SRC3_ADDR 0x58
+#define SSPP_REC_SRC_YSTRIDE0 0x5C
+#define SSPP_REC_SRC_YSTRIDE1 0x60
+#define SSPP_REC_CURRENT_SRC0_ADDR 0x64
+#define SSPP_REC_CURRENT_SRC1_ADDR 0x68
+#define SSPP_REC_CURRENT_SRC2_ADDR 0x6C
+#define SSPP_REC_CURRENT_SRC3_ADDR 0x70
+#define SSPP_REC_SRC_ADDR_SW_STATUS 0x74
+#define SSPP_REC_CDP_CNTL 0x78
+#define SSPP_REC_TRAFFIC_SHAPER 0x7C
+#define SSPP_REC_TRAFFIC_SHAPER_PREFILL 0x80
+#define SSPP_REC_PD_MEM_ALLOC 0x84
+#define SSPP_REC_QOS_CLAMP 0x88
+#define SSPP_REC_UIDLE_CTRL_VALUE 0x8C
+#define SSPP_REC_UBWC_STATIC_CTRL 0x90
+#define SSPP_REC_UBWC_STATIC_CTRL_OVERRIDE 0x94
+#define SSPP_REC_UBWC_STATS_ROI 0x98
+#define SSPP_REC_UBWC_STATS_WORST_TILE_ROW_BW_ROI0 0x9C
+#define SSPP_REC_UBWC_STATS_TOTAL_BW_ROI0 0xA0
+#define SSPP_REC_UBWC_STATS_WORST_TILE_ROW_BW_ROI1 0xA4
+#define SSPP_REC_UBWC_STATS_TOTAL_BW_ROI1 0xA8
+#define SSPP_REC_UBWC_STATS_WORST_TILE_ROW_BW_ROI2 0xAC
+#define SSPP_REC_UBWC_STATS_TOTAL_BW_ROI2 0xB0
+#define SSPP_REC_EXCL_REC_CTRL 0xB4
+#define SSPP_REC_EXCL_REC_SIZE 0xB8
+#define SSPP_REC_EXCL_REC_XY 0xBC
+#define SSPP_REC_LINE_INSERTION_CTRL 0xC0
+#define SSPP_REC_LINE_INSERTION_OUT_SIZE 0xC4
+#define SSPP_REC_FETCH_PIPE_ACTIVE 0xC8
+#define SSPP_REC_META_ERROR_STATUS 0xCC
+#define SSPP_REC_UBWC_ERROR_STATUS 0xD0
+#define SSPP_REC_FLUSH_CTRL 0xD4
+#define SSPP_REC_INTR_EN 0xD8
+#define SSPP_REC_INTR_STATUS 0xDC
+#define SSPP_REC_INTR_CLEAR 0xE0
+#define SSPP_REC_HSYNC_STATUS 0xE4
+#define SSPP_REC_FP16_CONFIG 0x150
+#define SSPP_REC_FP16_CSC_MATRIX_COEFF_R_0 0x154
+#define SSPP_REC_FP16_CSC_MATRIX_COEFF_R_1 0x158
+#define SSPP_REC_FP16_CSC_MATRIX_COEFF_G_0 0x15C
+#define SSPP_REC_FP16_CSC_MATRIX_COEFF_G_1 0x160
+#define SSPP_REC_FP16_CSC_MATRIX_COEFF_B_0 0x164
+#define SSPP_REC_FP16_CSC_MATRIX_COEFF_B_1 0x168
+#define SSPP_REC_FP16_CSC_PRE_CLAMP_R 0x16C
+#define SSPP_REC_FP16_CSC_PRE_CLAMP_G 0x170
+#define SSPP_REC_FP16_CSC_PRE_CLAMP_B 0x174
+#define SSPP_REC_FP16_CSC_POST_CLAMP 0x178
+
/* SSPP_SRC_OP_MODE & OP_MODE_REC1 */
#define MDSS_MDP_OP_DEINTERLACE BIT(22)
#define MDSS_MDP_OP_DEINTERLACE_ODD BIT(23)
#define MDSS_MDP_OP_IGC_ROM_1 BIT(18)
#define MDSS_MDP_OP_IGC_ROM_0 BIT(17)
#define MDSS_MDP_OP_IGC_EN BIT(16)
+#define MDSS_MDP_OP_ROT_90 BIT(15)
#define MDSS_MDP_OP_FLIP_UD BIT(14)
#define MDSS_MDP_OP_FLIP_LR BIT(13)
#define MDSS_MDP_OP_BWC_EN BIT(0)
@@ -141,6 +246,12 @@
/* traffic shaper clock in Hz */
#define TS_CLK 19200000
+static inline u32 _sspp_calculate_rect_off(enum dpu_sspp_multirect_index rect_index,
+ struct dpu_hw_sspp *ctx)
+{
+ return (rect_index == DPU_SSPP_RECT_SOLO || rect_index == DPU_SSPP_RECT_0) ?
+ ctx->cap->sblk->sspp_rec0_blk.base : ctx->cap->sblk->sspp_rec1_blk.base;
+}
static void dpu_hw_sspp_setup_multirect(struct dpu_sw_pipe *pipe)
{
@@ -169,6 +280,34 @@ static void dpu_hw_sspp_setup_multirect(struct dpu_sw_pipe *pipe)
DPU_REG_WRITE(&ctx->hw, SSPP_MULTIRECT_OPMODE, mode_mask);
}
+static void dpu_hw_sspp_setup_multirect_v13(struct dpu_sw_pipe *pipe)
+{
+ struct dpu_hw_sspp *ctx = pipe->sspp;
+ u32 offset = ctx->cap->sblk->cmn_blk.base;
+ u32 mode_mask;
+
+ if (!ctx)
+ return;
+
+ if (pipe->multirect_index == DPU_SSPP_RECT_SOLO) {
+ /**
+ * if rect index is RECT_SOLO, we cannot expect a
+ * virtual plane sharing the same SSPP id. So we go
+ * and disable multirect
+ */
+ mode_mask = 0;
+ } else {
+ mode_mask = DPU_REG_READ(&ctx->hw, offset + SSPP_CMN_MULTI_REC_OP_MODE);
+ mode_mask |= pipe->multirect_index;
+ if (pipe->multirect_mode == DPU_SSPP_MULTIRECT_TIME_MX)
+ mode_mask |= BIT(2);
+ else
+ mode_mask &= ~BIT(2);
+ }
+
+ DPU_REG_WRITE(&ctx->hw, offset + SSPP_CMN_MULTI_REC_OP_MODE, mode_mask);
+}
+
static void _sspp_setup_opmode(struct dpu_hw_sspp *ctx,
u32 mask, u8 en)
{
@@ -328,6 +467,119 @@ static void dpu_hw_sspp_setup_format(struct dpu_sw_pipe *pipe,
DPU_REG_WRITE(c, SSPP_UBWC_ERROR_STATUS, BIT(31));
}
+static void dpu_hw_sspp_setup_format_v13(struct dpu_sw_pipe *pipe,
+ const struct msm_format *fmt, u32 flags)
+{
+ struct dpu_hw_sspp *ctx = pipe->sspp;
+ struct dpu_hw_blk_reg_map *c;
+ u32 chroma_samp, unpack, src_format;
+ u32 opmode = 0;
+ u32 fast_clear = 0;
+ u32 offset;
+
+ if (!ctx || !fmt)
+ return;
+
+ offset = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
+
+ c = &ctx->hw;
+
+ opmode = DPU_REG_READ(c, offset + SSPP_REC_SRC_OP_MODE);
+ opmode &= ~(MDSS_MDP_OP_FLIP_LR | MDSS_MDP_OP_FLIP_UD |
+ MDSS_MDP_OP_BWC_EN | MDSS_MDP_OP_PE_OVERRIDE
+ | MDSS_MDP_OP_ROT_90);
+
+ if (flags & DPU_SSPP_FLIP_LR)
+ opmode |= MDSS_MDP_OP_FLIP_LR;
+ if (flags & DPU_SSPP_FLIP_UD)
+ opmode |= MDSS_MDP_OP_FLIP_UD;
+ if (flags & DPU_SSPP_ROT_90)
+ opmode |= MDSS_MDP_OP_ROT_90;
+
+ chroma_samp = fmt->chroma_sample;
+ if (flags & DPU_SSPP_SOURCE_ROTATED_90) {
+ if (chroma_samp == CHROMA_H2V1)
+ chroma_samp = CHROMA_H1V2;
+ else if (chroma_samp == CHROMA_H1V2)
+ chroma_samp = CHROMA_H2V1;
+ }
+
+ src_format = (chroma_samp << 23) | (fmt->fetch_type << 19) |
+ (fmt->bpc_a << 6) | (fmt->bpc_r_cr << 4) |
+ (fmt->bpc_b_cb << 2) | (fmt->bpc_g_y << 0);
+
+ if (flags & DPU_SSPP_ROT_90)
+ src_format |= BIT(11); /* ROT90 */
+
+ if (fmt->alpha_enable && fmt->fetch_type == MDP_PLANE_INTERLEAVED)
+ src_format |= BIT(8); /* SRCC3_EN */
+
+ if (flags & DPU_SSPP_SOLID_FILL)
+ src_format |= BIT(22);
+
+ unpack = (fmt->element[3] << 24) | (fmt->element[2] << 16) |
+ (fmt->element[1] << 8) | (fmt->element[0] << 0);
+ src_format |= ((fmt->unpack_count - 1) << 12) |
+ ((fmt->flags & MSM_FORMAT_FLAG_UNPACK_TIGHT ? 1 : 0) << 17) |
+ ((fmt->flags & MSM_FORMAT_FLAG_UNPACK_ALIGN_MSB ? 1 : 0) << 18) |
+ ((fmt->bpp - 1) << 9);
+
+ if (fmt->fetch_mode != MDP_FETCH_LINEAR) {
+ if (MSM_FORMAT_IS_UBWC(fmt))
+ opmode |= MDSS_MDP_OP_BWC_EN;
+ src_format |= (fmt->fetch_mode & 3) << 30; /*FRAME_FORMAT */
+ switch (ctx->ubwc->ubwc_enc_version) {
+ case UBWC_1_0:
+ fast_clear = fmt->alpha_enable ? BIT(31) : 0;
+ DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_STATIC_CTRL,
+ fast_clear | (ctx->ubwc->ubwc_swizzle & 0x1) |
+ BIT(8) |
+ (ctx->ubwc->highest_bank_bit << 4));
+ break;
+ case UBWC_2_0:
+ fast_clear = fmt->alpha_enable ? BIT(31) : 0;
+ DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_STATIC_CTRL,
+ fast_clear | (ctx->ubwc->ubwc_swizzle) |
+ (ctx->ubwc->highest_bank_bit << 4));
+ break;
+ case UBWC_3_0:
+ DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_STATIC_CTRL,
+ BIT(30) | (ctx->ubwc->ubwc_swizzle) |
+ (ctx->ubwc->highest_bank_bit << 4));
+ break;
+ case UBWC_4_0:
+ DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_STATIC_CTRL,
+ MSM_FORMAT_IS_YUV(fmt) ? 0 : BIT(30));
+ break;
+ }
+ }
+
+ opmode |= MDSS_MDP_OP_PE_OVERRIDE;
+
+ /* if this is YUV pixel format, enable CSC */
+ if (MSM_FORMAT_IS_YUV(fmt))
+ src_format |= BIT(15);
+
+ if (MSM_FORMAT_IS_DX(fmt))
+ src_format |= BIT(14);
+
+ /* update scaler opmode, if appropriate */
+ if (test_bit(DPU_SSPP_CSC, &ctx->cap->features))
+ _sspp_setup_opmode(ctx, VIG_OP_CSC_EN | VIG_OP_CSC_SRC_DATAFMT,
+ MSM_FORMAT_IS_YUV(fmt));
+ else if (test_bit(DPU_SSPP_CSC_10BIT, &ctx->cap->features))
+ _sspp_setup_csc10_opmode(ctx,
+ VIG_CSC_10_EN | VIG_CSC_10_SRC_DATAFMT,
+ MSM_FORMAT_IS_YUV(fmt));
+
+ DPU_REG_WRITE(c, offset + SSPP_REC_SRC_FORMAT, src_format);
+ DPU_REG_WRITE(c, offset + SSPP_REC_SRC_UNPACK_PATTERN, unpack);
+ DPU_REG_WRITE(c, offset + SSPP_REC_SRC_OP_MODE, opmode);
+
+ /* clear previous UBWC error */
+ DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_ERROR_STATUS, BIT(31));
+}
+
static void dpu_hw_sspp_setup_pe_config(struct dpu_hw_sspp *ctx,
struct dpu_hw_pixel_ext *pe_ext)
{
@@ -385,6 +637,53 @@ static void dpu_hw_sspp_setup_pe_config(struct dpu_hw_sspp *ctx,
tot_req_pixels[3]);
}
+static void dpu_hw_sspp_setup_pe_config_v13(struct dpu_hw_sspp *ctx,
+ struct dpu_hw_pixel_ext *pe_ext)
+{
+ struct dpu_hw_blk_reg_map *c;
+ u8 color;
+ u32 lr_pe[4], tb_pe[4], tot_req_pixels[4];
+ const u32 bytemask = 0xff;
+ const u32 shortmask = 0xffff;
+ u32 offset = ctx->cap->sblk->sspp_rec0_blk.base;
+
+ if (!ctx || !pe_ext)
+ return;
+
+ c = &ctx->hw;
+ /* program SW pixel extension override for all pipes*/
+ for (color = 0; color < DPU_MAX_PLANES; color++) {
+ /* color 2 has the same set of registers as color 1 */
+ if (color == 2)
+ continue;
+
+ lr_pe[color] = ((pe_ext->right_ftch[color] & bytemask) << 24) |
+ ((pe_ext->right_rpt[color] & bytemask) << 16) |
+ ((pe_ext->left_ftch[color] & bytemask) << 8) |
+ (pe_ext->left_rpt[color] & bytemask);
+
+ tb_pe[color] = ((pe_ext->btm_ftch[color] & bytemask) << 24) |
+ ((pe_ext->btm_rpt[color] & bytemask) << 16) |
+ ((pe_ext->top_ftch[color] & bytemask) << 8) |
+ (pe_ext->top_rpt[color] & bytemask);
+
+ tot_req_pixels[color] = (((pe_ext->roi_h[color] +
+ pe_ext->num_ext_pxls_top[color] +
+ pe_ext->num_ext_pxls_btm[color]) & shortmask) << 16) |
+ ((pe_ext->roi_w[color] +
+ pe_ext->num_ext_pxls_left[color] +
+ pe_ext->num_ext_pxls_right[color]) & shortmask);
+ }
+
+ /* color 0 */
+ DPU_REG_WRITE(c, SSPP_REC_SW_PIX_EXT_LR + offset, lr_pe[0]);
+ DPU_REG_WRITE(c, SSPP_REC_SW_PIX_EXT_TB + offset, tb_pe[0]);
+
+ /* color 1 and color 2 */
+ DPU_REG_WRITE(c, SSPP_REC_SW_PIX_EXT_LR_ODX + offset, lr_pe[1]);
+ DPU_REG_WRITE(c, SSPP_REC_SW_PIX_EXT_TB_ODX + offset, tb_pe[1]);
+}
+
static void _dpu_hw_sspp_setup_scaler3(struct dpu_hw_sspp *ctx,
struct dpu_hw_scaler3_cfg *scaler3_cfg,
const struct msm_format *format)
@@ -443,6 +742,36 @@ static void dpu_hw_sspp_setup_rects(struct dpu_sw_pipe *pipe,
DPU_REG_WRITE(c, out_xy_off, dst_xy);
}
+static void dpu_hw_sspp_setup_rects_v13(struct dpu_sw_pipe *pipe,
+ struct dpu_sw_pipe_cfg *cfg)
+{
+ struct dpu_hw_sspp *ctx = pipe->sspp;
+ struct dpu_hw_blk_reg_map *c;
+ u32 src_size, src_xy, dst_size, dst_xy;
+ u32 offset;
+
+ if (!ctx || !cfg)
+ return;
+
+ c = &ctx->hw;
+
+ offset = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
+
+ /* src and dest rect programming */
+ src_xy = (cfg->src_rect.y1 << 16) | cfg->src_rect.x1;
+ src_size = (drm_rect_height(&cfg->src_rect) << 16) |
+ drm_rect_width(&cfg->src_rect);
+ dst_xy = (cfg->dst_rect.y1 << 16) | cfg->dst_rect.x1;
+ dst_size = (drm_rect_height(&cfg->dst_rect) << 16) |
+ drm_rect_width(&cfg->dst_rect);
+
+ /* rectangle register programming */
+ DPU_REG_WRITE(c, offset + SSPP_REC_SRC_SIZE, src_size);
+ DPU_REG_WRITE(c, offset + SSPP_REC_SRC_XY, src_xy);
+ DPU_REG_WRITE(c, offset + SSPP_REC_OUT_SIZE, dst_size);
+ DPU_REG_WRITE(c, offset + SSPP_REC_OUT_XY, dst_xy);
+}
+
static void dpu_hw_sspp_setup_sourceaddress(struct dpu_sw_pipe *pipe,
struct dpu_hw_fmt_layout *layout)
{
@@ -497,6 +826,29 @@ static void dpu_hw_sspp_setup_sourceaddress(struct dpu_sw_pipe *pipe,
DPU_REG_WRITE(&ctx->hw, SSPP_SRC_YSTRIDE1, ystride1);
}
+static void dpu_hw_sspp_setup_sourceaddress_v13(struct dpu_sw_pipe *pipe,
+ struct dpu_hw_fmt_layout *layout)
+{
+ struct dpu_hw_sspp *ctx = pipe->sspp;
+ int i;
+ u32 addr, ystride0, ystride1;
+
+ if (!ctx)
+ return;
+
+ addr = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
+
+ for (i = 0; i < ARRAY_SIZE(layout->plane_addr); i++)
+ DPU_REG_WRITE(&ctx->hw, addr + SSPP_REC_SRC0_ADDR + i * 0x4,
+ layout->plane_addr[i]);
+
+ ystride0 = (layout->plane_pitch[0]) | (layout->plane_pitch[2] << 16);
+ ystride1 = (layout->plane_pitch[1]) | (layout->plane_pitch[3] << 16);
+
+ DPU_REG_WRITE(&ctx->hw, addr + SSPP_REC_SRC_YSTRIDE0, ystride0);
+ DPU_REG_WRITE(&ctx->hw, addr + SSPP_REC_SRC_YSTRIDE1, ystride1);
+}
+
static void dpu_hw_sspp_setup_csc(struct dpu_hw_sspp *ctx,
const struct dpu_csc_cfg *data)
{
@@ -536,6 +888,24 @@ static void dpu_hw_sspp_setup_solidfill(struct dpu_sw_pipe *pipe, u32 color)
color);
}
+static void dpu_hw_sspp_setup_solidfill_v13(struct dpu_sw_pipe *pipe, u32 color)
+{
+ struct dpu_hw_sspp *ctx = pipe->sspp;
+ struct dpu_hw_fmt_layout cfg;
+ u32 offset;
+
+ if (!ctx)
+ return;
+
+ offset = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
+
+ /* cleanup source addresses */
+ memset(&cfg, 0, sizeof(cfg));
+ ctx->ops.setup_sourceaddress(pipe, &cfg);
+
+ DPU_REG_WRITE(&ctx->hw, offset + SSPP_REC_SRC_CONSTANT_COLOR, color);
+}
+
static void dpu_hw_sspp_setup_qos_lut(struct dpu_hw_sspp *ctx,
struct dpu_hw_qos_cfg *cfg)
{
@@ -547,6 +917,17 @@ static void dpu_hw_sspp_setup_qos_lut(struct dpu_hw_sspp *ctx,
cfg);
}
+static void dpu_hw_sspp_setup_qos_lut_v13(struct dpu_hw_sspp *ctx,
+ struct dpu_hw_qos_cfg *cfg)
+{
+ if (!ctx || !cfg)
+ return;
+
+ _dpu_hw_setup_qos_lut_v13(&ctx->hw, 0,
+ ctx->mdss_ver->core_major_ver >= 4,
+ cfg);
+}
+
static void dpu_hw_sspp_setup_qos_ctrl(struct dpu_hw_sspp *ctx,
bool danger_safe_en)
{
@@ -557,6 +938,16 @@ static void dpu_hw_sspp_setup_qos_ctrl(struct dpu_hw_sspp *ctx,
danger_safe_en ? SSPP_QOS_CTRL_DANGER_SAFE_EN : 0);
}
+static void dpu_hw_sspp_setup_qos_ctrl_v13(struct dpu_hw_sspp *ctx,
+ bool danger_safe_en)
+{
+ if (!ctx)
+ return;
+
+ DPU_REG_WRITE(&ctx->hw, SSPP_CMN_QOS_CTRL,
+ danger_safe_en ? SSPP_QOS_CTRL_DANGER_SAFE_EN : 0);
+}
+
static void dpu_hw_sspp_setup_cdp(struct dpu_sw_pipe *pipe,
const struct msm_format *fmt,
bool enable)
@@ -576,6 +967,20 @@ static void dpu_hw_sspp_setup_cdp(struct dpu_sw_pipe *pipe,
dpu_setup_cdp(&ctx->hw, cdp_cntl_offset, fmt, enable);
}
+static void dpu_hw_sspp_setup_cdp_v13(struct dpu_sw_pipe *pipe,
+ const struct msm_format *fmt,
+ bool enable)
+{
+ struct dpu_hw_sspp *ctx = pipe->sspp;
+ u32 offset = 0;
+
+ if (!ctx)
+ return;
+
+ offset = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
+ dpu_setup_cdp(&ctx->hw, offset + SSPP_REC_CDP_CNTL, fmt, enable);
+}
+
static bool dpu_hw_sspp_setup_clk_force_ctrl(struct dpu_hw_sspp *ctx, bool enable)
{
static const struct dpu_clk_ctrl_reg sspp_clk_ctrl = {
@@ -586,36 +991,69 @@ static bool dpu_hw_sspp_setup_clk_force_ctrl(struct dpu_hw_sspp *ctx, bool enabl
return dpu_hw_clk_force_ctrl(&ctx->hw, &sspp_clk_ctrl, enable);
}
+static bool dpu_hw_sspp_setup_clk_force_ctrl_v13(struct dpu_hw_sspp *ctx, bool enable)
+{
+ static const struct dpu_clk_ctrl_reg sspp_clk_ctrl = {
+ .reg_off = SSPP_CMN_CLK_CTRL,
+ .bit_off = 0
+ };
+
+ return dpu_hw_clk_force_ctrl(&ctx->hw, &sspp_clk_ctrl, enable);
+}
+
static void _setup_layer_ops(struct dpu_hw_sspp *c,
unsigned long features, const struct dpu_mdss_version *mdss_rev)
{
- c->ops.setup_format = dpu_hw_sspp_setup_format;
- c->ops.setup_rects = dpu_hw_sspp_setup_rects;
- c->ops.setup_sourceaddress = dpu_hw_sspp_setup_sourceaddress;
- c->ops.setup_solidfill = dpu_hw_sspp_setup_solidfill;
- c->ops.setup_pe = dpu_hw_sspp_setup_pe_config;
-
- if (test_bit(DPU_SSPP_QOS, &features)) {
- c->ops.setup_qos_lut = dpu_hw_sspp_setup_qos_lut;
- c->ops.setup_qos_ctrl = dpu_hw_sspp_setup_qos_ctrl;
+ if (mdss_rev->core_major_ver >= 13) {
+ c->ops.setup_format = dpu_hw_sspp_setup_format_v13;
+ c->ops.setup_rects = dpu_hw_sspp_setup_rects_v13;
+ c->ops.setup_sourceaddress = dpu_hw_sspp_setup_sourceaddress_v13;
+ c->ops.setup_solidfill = dpu_hw_sspp_setup_solidfill_v13;
+ c->ops.setup_pe = dpu_hw_sspp_setup_pe_config_v13;
+
+ if (test_bit(DPU_SSPP_QOS, &features)) {
+ c->ops.setup_qos_lut = dpu_hw_sspp_setup_qos_lut_v13;
+ c->ops.setup_qos_ctrl = dpu_hw_sspp_setup_qos_ctrl_v13;
+ }
+
+ if (test_bit(DPU_SSPP_SMART_DMA_V1, &c->cap->features) ||
+ test_bit(DPU_SSPP_SMART_DMA_V2, &c->cap->features))
+ c->ops.setup_multirect = dpu_hw_sspp_setup_multirect_v13;
+
+ if (test_bit(DPU_SSPP_CDP, &features))
+ c->ops.setup_cdp = dpu_hw_sspp_setup_cdp_v13;
+
+ c->ops.setup_clk_force_ctrl = dpu_hw_sspp_setup_clk_force_ctrl_v13;
+ } else {
+ c->ops.setup_format = dpu_hw_sspp_setup_format;
+ c->ops.setup_rects = dpu_hw_sspp_setup_rects;
+ c->ops.setup_sourceaddress = dpu_hw_sspp_setup_sourceaddress;
+ c->ops.setup_solidfill = dpu_hw_sspp_setup_solidfill;
+ c->ops.setup_pe = dpu_hw_sspp_setup_pe_config;
+
+ if (test_bit(DPU_SSPP_QOS, &features)) {
+ c->ops.setup_qos_lut = dpu_hw_sspp_setup_qos_lut;
+ c->ops.setup_qos_ctrl = dpu_hw_sspp_setup_qos_ctrl;
+ }
+
+ if (test_bit(DPU_SSPP_SMART_DMA_V1, &c->cap->features) ||
+ test_bit(DPU_SSPP_SMART_DMA_V2, &c->cap->features))
+ c->ops.setup_multirect = dpu_hw_sspp_setup_multirect;
+
+ if (test_bit(DPU_SSPP_CDP, &features))
+ c->ops.setup_cdp = dpu_hw_sspp_setup_cdp;
+
+ if (mdss_rev->core_major_ver >= 9)
+ c->ops.setup_clk_force_ctrl = dpu_hw_sspp_setup_clk_force_ctrl;
}
if (test_bit(DPU_SSPP_CSC, &features) ||
test_bit(DPU_SSPP_CSC_10BIT, &features))
c->ops.setup_csc = dpu_hw_sspp_setup_csc;
- if (test_bit(DPU_SSPP_SMART_DMA_V1, &c->cap->features) ||
- test_bit(DPU_SSPP_SMART_DMA_V2, &c->cap->features))
- c->ops.setup_multirect = dpu_hw_sspp_setup_multirect;
-
if (test_bit(DPU_SSPP_SCALER_QSEED3_COMPATIBLE, &features))
c->ops.setup_scaler = _dpu_hw_sspp_setup_scaler3;
- if (test_bit(DPU_SSPP_CDP, &features))
- c->ops.setup_cdp = dpu_hw_sspp_setup_cdp;
-
- if (mdss_rev->core_major_ver >= 9)
- c->ops.setup_clk_force_ctrl = dpu_hw_sspp_setup_clk_force_ctrl;
}
#ifdef CONFIG_DEBUG_FS
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
index 486be346d40d..1acf456c425b 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
@@ -81,6 +81,13 @@ static u32 dpu_hw_util_log_mask = DPU_DBG_MASK_NONE;
#define QOS_CREQ_LUT_0 0x14
#define QOS_CREQ_LUT_1 0x18
+/* CMN_QOS_LUT */
+#define SSPP_CMN_DANGER_LUT 0x2C
+#define SSPP_CMN_SAFE_LUT 0x30
+#define SSPP_CMN_CREQ_LUT_0 0x34
+#define SSPP_CMN_CREQ_LUT_1 0x38
+#define SSPP_CMN_QOS_CTRL 0x28
+
/* QOS_QOS_CTRL */
#define QOS_QOS_CTRL_DANGER_SAFE_EN BIT(0)
#define QOS_QOS_CTRL_DANGER_VBLANK_MASK GENMASK(5, 4)
@@ -475,6 +482,22 @@ void _dpu_hw_setup_qos_lut(struct dpu_hw_blk_reg_map *c, u32 offset,
cfg->danger_safe_en ? QOS_QOS_CTRL_DANGER_SAFE_EN : 0);
}
+void _dpu_hw_setup_qos_lut_v13(struct dpu_hw_blk_reg_map *c, u32 offset,
+ bool qos_8lvl,
+ const struct dpu_hw_qos_cfg *cfg)
+{
+ DPU_REG_WRITE(c, offset + SSPP_CMN_DANGER_LUT, cfg->danger_lut);
+ DPU_REG_WRITE(c, offset + SSPP_CMN_SAFE_LUT, cfg->safe_lut);
+
+ if (qos_8lvl) {
+ DPU_REG_WRITE(c, offset + SSPP_CMN_CREQ_LUT_0, cfg->creq_lut);
+ DPU_REG_WRITE(c, offset + SSPP_CMN_CREQ_LUT_1, cfg->creq_lut >> 32);
+ }
+
+ DPU_REG_WRITE(c, offset + SSPP_CMN_QOS_CTRL,
+ cfg->danger_safe_en ? QOS_QOS_CTRL_DANGER_SAFE_EN : 0);
+}
+
/*
* note: Aside from encoders, input_sel should be set to 0x0 by default
*/
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h
index 67b08e99335d..9d442d6fc11c 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h
@@ -360,6 +360,10 @@ void _dpu_hw_setup_qos_lut(struct dpu_hw_blk_reg_map *c, u32 offset,
bool qos_8lvl,
const struct dpu_hw_qos_cfg *cfg);
+void _dpu_hw_setup_qos_lut_v13(struct dpu_hw_blk_reg_map *c, u32 offset,
+ bool qos_8lvl,
+ const struct dpu_hw_qos_cfg *cfg);
+
void dpu_hw_setup_misr(struct dpu_hw_blk_reg_map *c,
u32 misr_ctrl_offset, u8 input_sel);
--
2.34.1
On Thu, Oct 23, 2025 at 04:06:03PM +0800, yuanjie yang wrote:
> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
>
> Add support for Kaanapali platform SSPP sub-blocks, which
> introduce structural changes including register additions,
> removals, and relocations. Add the new common and rectangle
> blocks, and update register definitions and handling to
> ensure compatibility with DPU v13.0.
Merge new structures into this patch.
>
> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 474 +++++++++++++++++++-
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c | 23 +
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h | 4 +
> 3 files changed, 483 insertions(+), 18 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
> index 6f1fc790ad6d..7217c952f01c 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
> @@ -17,6 +17,7 @@
>
> #define DPU_FETCH_CONFIG_RESET_VALUE 0x00000087
>
> +/* <= v12 DPU */
> /* SSPP registers */
> #define SSPP_SRC_SIZE 0x00
> #define SSPP_SRC_XY 0x08
> @@ -74,12 +75,116 @@
> #define SSPP_EXCL_REC_XY 0x1B8
> #define SSPP_CLK_CTRL 0x330
>
> +/* >= v13 DPU */
> +/* CMN Registers -> Source Surface Processing Pipe Common SSPP registers */
> +/* Name Offset */
> +#define SSPP_CMN_CLK_CTRL 0x0
> +#define SSPP_CMN_CLK_STATUS 0x4
> +#define SSPP_CMN_MULTI_REC_OP_MODE 0x10
> +#define SSPP_CMN_ADDR_CONFIG 0x14
> +#define SSPP_CMN_CAC_CTRL 0x20
> +#define SSPP_CMN_SYS_CACHE_MODE 0x24
> +#define SSPP_CMN_QOS_CTRL 0x28
> +#define SSPP_CMN_DANGER_LUT 0x2C
> +#define SSPP_CMN_SAFE_LUT 0x30
lowercase hex.
> @@ -141,6 +246,12 @@
> /* traffic shaper clock in Hz */
> #define TS_CLK 19200000
>
> +static inline u32 _sspp_calculate_rect_off(enum dpu_sspp_multirect_index rect_index,
> + struct dpu_hw_sspp *ctx)
> +{
> + return (rect_index == DPU_SSPP_RECT_SOLO || rect_index == DPU_SSPP_RECT_0) ?
> + ctx->cap->sblk->sspp_rec0_blk.base : ctx->cap->sblk->sspp_rec1_blk.base;
> +}
>
> static void dpu_hw_sspp_setup_multirect(struct dpu_sw_pipe *pipe)
> {
> @@ -169,6 +280,34 @@ static void dpu_hw_sspp_setup_multirect(struct dpu_sw_pipe *pipe)
> DPU_REG_WRITE(&ctx->hw, SSPP_MULTIRECT_OPMODE, mode_mask);
> }
>
> +static void dpu_hw_sspp_setup_multirect_v13(struct dpu_sw_pipe *pipe)
> +{
> + struct dpu_hw_sspp *ctx = pipe->sspp;
> + u32 offset = ctx->cap->sblk->cmn_blk.base;
> + u32 mode_mask;
> +
> + if (!ctx)
> + return;
> +
> + if (pipe->multirect_index == DPU_SSPP_RECT_SOLO) {
> + /**
> + * if rect index is RECT_SOLO, we cannot expect a
> + * virtual plane sharing the same SSPP id. So we go
> + * and disable multirect
> + */
> + mode_mask = 0;
> + } else {
> + mode_mask = DPU_REG_READ(&ctx->hw, offset + SSPP_CMN_MULTI_REC_OP_MODE);
> + mode_mask |= pipe->multirect_index;
> + if (pipe->multirect_mode == DPU_SSPP_MULTIRECT_TIME_MX)
> + mode_mask |= BIT(2);
> + else
> + mode_mask &= ~BIT(2);
> + }
> +
> + DPU_REG_WRITE(&ctx->hw, offset + SSPP_CMN_MULTI_REC_OP_MODE, mode_mask);
> +}
> +
> static void _sspp_setup_opmode(struct dpu_hw_sspp *ctx,
> u32 mask, u8 en)
> {
> @@ -328,6 +467,119 @@ static void dpu_hw_sspp_setup_format(struct dpu_sw_pipe *pipe,
> DPU_REG_WRITE(c, SSPP_UBWC_ERROR_STATUS, BIT(31));
> }
>
> +static void dpu_hw_sspp_setup_format_v13(struct dpu_sw_pipe *pipe,
> + const struct msm_format *fmt, u32 flags)
> +{
> + struct dpu_hw_sspp *ctx = pipe->sspp;
> + struct dpu_hw_blk_reg_map *c;
> + u32 chroma_samp, unpack, src_format;
> + u32 opmode = 0;
> + u32 fast_clear = 0;
> + u32 offset;
> +
> + if (!ctx || !fmt)
> + return;
> +
> + offset = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
> +
> + c = &ctx->hw;
> +
> + opmode = DPU_REG_READ(c, offset + SSPP_REC_SRC_OP_MODE);
> + opmode &= ~(MDSS_MDP_OP_FLIP_LR | MDSS_MDP_OP_FLIP_UD |
> + MDSS_MDP_OP_BWC_EN | MDSS_MDP_OP_PE_OVERRIDE
> + | MDSS_MDP_OP_ROT_90);
> +
> + if (flags & DPU_SSPP_FLIP_LR)
> + opmode |= MDSS_MDP_OP_FLIP_LR;
> + if (flags & DPU_SSPP_FLIP_UD)
> + opmode |= MDSS_MDP_OP_FLIP_UD;
> + if (flags & DPU_SSPP_ROT_90)
> + opmode |= MDSS_MDP_OP_ROT_90;
> +
> + chroma_samp = fmt->chroma_sample;
> + if (flags & DPU_SSPP_SOURCE_ROTATED_90) {
> + if (chroma_samp == CHROMA_H2V1)
> + chroma_samp = CHROMA_H1V2;
> + else if (chroma_samp == CHROMA_H1V2)
> + chroma_samp = CHROMA_H2V1;
> + }
> +
> + src_format = (chroma_samp << 23) | (fmt->fetch_type << 19) |
> + (fmt->bpc_a << 6) | (fmt->bpc_r_cr << 4) |
> + (fmt->bpc_b_cb << 2) | (fmt->bpc_g_y << 0);
> +
> + if (flags & DPU_SSPP_ROT_90)
> + src_format |= BIT(11); /* ROT90 */
> +
> + if (fmt->alpha_enable && fmt->fetch_type == MDP_PLANE_INTERLEAVED)
> + src_format |= BIT(8); /* SRCC3_EN */
> +
> + if (flags & DPU_SSPP_SOLID_FILL)
> + src_format |= BIT(22);
> +
> + unpack = (fmt->element[3] << 24) | (fmt->element[2] << 16) |
> + (fmt->element[1] << 8) | (fmt->element[0] << 0);
> + src_format |= ((fmt->unpack_count - 1) << 12) |
> + ((fmt->flags & MSM_FORMAT_FLAG_UNPACK_TIGHT ? 1 : 0) << 17) |
> + ((fmt->flags & MSM_FORMAT_FLAG_UNPACK_ALIGN_MSB ? 1 : 0) << 18) |
> + ((fmt->bpp - 1) << 9);
> +
> + if (fmt->fetch_mode != MDP_FETCH_LINEAR) {
> + if (MSM_FORMAT_IS_UBWC(fmt))
> + opmode |= MDSS_MDP_OP_BWC_EN;
> + src_format |= (fmt->fetch_mode & 3) << 30; /*FRAME_FORMAT */
> + switch (ctx->ubwc->ubwc_enc_version) {
> + case UBWC_1_0:
> + fast_clear = fmt->alpha_enable ? BIT(31) : 0;
> + DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_STATIC_CTRL,
> + fast_clear | (ctx->ubwc->ubwc_swizzle & 0x1) |
> + BIT(8) |
> + (ctx->ubwc->highest_bank_bit << 4));
> + break;
> + case UBWC_2_0:
> + fast_clear = fmt->alpha_enable ? BIT(31) : 0;
> + DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_STATIC_CTRL,
> + fast_clear | (ctx->ubwc->ubwc_swizzle) |
> + (ctx->ubwc->highest_bank_bit << 4));
> + break;
> + case UBWC_3_0:
> + DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_STATIC_CTRL,
> + BIT(30) | (ctx->ubwc->ubwc_swizzle) |
> + (ctx->ubwc->highest_bank_bit << 4));
> + break;
> + case UBWC_4_0:
> + DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_STATIC_CTRL,
> + MSM_FORMAT_IS_YUV(fmt) ? 0 : BIT(30));
> + break;
> + }
> + }
> +
> + opmode |= MDSS_MDP_OP_PE_OVERRIDE;
> +
> + /* if this is YUV pixel format, enable CSC */
> + if (MSM_FORMAT_IS_YUV(fmt))
> + src_format |= BIT(15);
> +
> + if (MSM_FORMAT_IS_DX(fmt))
> + src_format |= BIT(14);
> +
> + /* update scaler opmode, if appropriate */
> + if (test_bit(DPU_SSPP_CSC, &ctx->cap->features))
> + _sspp_setup_opmode(ctx, VIG_OP_CSC_EN | VIG_OP_CSC_SRC_DATAFMT,
> + MSM_FORMAT_IS_YUV(fmt));
> + else if (test_bit(DPU_SSPP_CSC_10BIT, &ctx->cap->features))
> + _sspp_setup_csc10_opmode(ctx,
> + VIG_CSC_10_EN | VIG_CSC_10_SRC_DATAFMT,
> + MSM_FORMAT_IS_YUV(fmt));
This function is a nice c&p of the old one. Can we abstract it at least
a bit and let it be shared between the old code and the new one?
> +
> + DPU_REG_WRITE(c, offset + SSPP_REC_SRC_FORMAT, src_format);
> + DPU_REG_WRITE(c, offset + SSPP_REC_SRC_UNPACK_PATTERN, unpack);
> + DPU_REG_WRITE(c, offset + SSPP_REC_SRC_OP_MODE, opmode);
> +
> + /* clear previous UBWC error */
> + DPU_REG_WRITE(c, offset + SSPP_REC_UBWC_ERROR_STATUS, BIT(31));
> +}
> +
> static void dpu_hw_sspp_setup_pe_config(struct dpu_hw_sspp *ctx,
> struct dpu_hw_pixel_ext *pe_ext)
> {
> @@ -385,6 +637,53 @@ static void dpu_hw_sspp_setup_pe_config(struct dpu_hw_sspp *ctx,
> tot_req_pixels[3]);
> }
>
> +static void dpu_hw_sspp_setup_pe_config_v13(struct dpu_hw_sspp *ctx,
> + struct dpu_hw_pixel_ext *pe_ext)
> +{
> + struct dpu_hw_blk_reg_map *c;
> + u8 color;
> + u32 lr_pe[4], tb_pe[4], tot_req_pixels[4];
> + const u32 bytemask = 0xff;
> + const u32 shortmask = 0xffff;
> + u32 offset = ctx->cap->sblk->sspp_rec0_blk.base;
> +
> + if (!ctx || !pe_ext)
> + return;
> +
> + c = &ctx->hw;
> + /* program SW pixel extension override for all pipes*/
> + for (color = 0; color < DPU_MAX_PLANES; color++) {
> + /* color 2 has the same set of registers as color 1 */
> + if (color == 2)
> + continue;
> +
> + lr_pe[color] = ((pe_ext->right_ftch[color] & bytemask) << 24) |
> + ((pe_ext->right_rpt[color] & bytemask) << 16) |
> + ((pe_ext->left_ftch[color] & bytemask) << 8) |
> + (pe_ext->left_rpt[color] & bytemask);
> +
> + tb_pe[color] = ((pe_ext->btm_ftch[color] & bytemask) << 24) |
> + ((pe_ext->btm_rpt[color] & bytemask) << 16) |
> + ((pe_ext->top_ftch[color] & bytemask) << 8) |
> + (pe_ext->top_rpt[color] & bytemask);
> +
> + tot_req_pixels[color] = (((pe_ext->roi_h[color] +
> + pe_ext->num_ext_pxls_top[color] +
> + pe_ext->num_ext_pxls_btm[color]) & shortmask) << 16) |
> + ((pe_ext->roi_w[color] +
> + pe_ext->num_ext_pxls_left[color] +
> + pe_ext->num_ext_pxls_right[color]) & shortmask);
> + }
Same comment. No C&P, of a sensible code, please.
> +
> + /* color 0 */
> + DPU_REG_WRITE(c, SSPP_REC_SW_PIX_EXT_LR + offset, lr_pe[0]);
> + DPU_REG_WRITE(c, SSPP_REC_SW_PIX_EXT_TB + offset, tb_pe[0]);
> +
> + /* color 1 and color 2 */
> + DPU_REG_WRITE(c, SSPP_REC_SW_PIX_EXT_LR_ODX + offset, lr_pe[1]);
> + DPU_REG_WRITE(c, SSPP_REC_SW_PIX_EXT_TB_ODX + offset, tb_pe[1]);
> +}
> +
> static void _dpu_hw_sspp_setup_scaler3(struct dpu_hw_sspp *ctx,
> struct dpu_hw_scaler3_cfg *scaler3_cfg,
> const struct msm_format *format)
> @@ -443,6 +742,36 @@ static void dpu_hw_sspp_setup_rects(struct dpu_sw_pipe *pipe,
> DPU_REG_WRITE(c, out_xy_off, dst_xy);
> }
>
> +static void dpu_hw_sspp_setup_rects_v13(struct dpu_sw_pipe *pipe,
> + struct dpu_sw_pipe_cfg *cfg)
> +{
> + struct dpu_hw_sspp *ctx = pipe->sspp;
> + struct dpu_hw_blk_reg_map *c;
> + u32 src_size, src_xy, dst_size, dst_xy;
> + u32 offset;
> +
> + if (!ctx || !cfg)
> + return;
> +
> + c = &ctx->hw;
> +
> + offset = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
> +
> + /* src and dest rect programming */
> + src_xy = (cfg->src_rect.y1 << 16) | cfg->src_rect.x1;
> + src_size = (drm_rect_height(&cfg->src_rect) << 16) |
> + drm_rect_width(&cfg->src_rect);
> + dst_xy = (cfg->dst_rect.y1 << 16) | cfg->dst_rect.x1;
> + dst_size = (drm_rect_height(&cfg->dst_rect) << 16) |
> + drm_rect_width(&cfg->dst_rect);
> +
> + /* rectangle register programming */
> + DPU_REG_WRITE(c, offset + SSPP_REC_SRC_SIZE, src_size);
> + DPU_REG_WRITE(c, offset + SSPP_REC_SRC_XY, src_xy);
> + DPU_REG_WRITE(c, offset + SSPP_REC_OUT_SIZE, dst_size);
> + DPU_REG_WRITE(c, offset + SSPP_REC_OUT_XY, dst_xy);
> +}
> +
> static void dpu_hw_sspp_setup_sourceaddress(struct dpu_sw_pipe *pipe,
> struct dpu_hw_fmt_layout *layout)
> {
> @@ -497,6 +826,29 @@ static void dpu_hw_sspp_setup_sourceaddress(struct dpu_sw_pipe *pipe,
> DPU_REG_WRITE(&ctx->hw, SSPP_SRC_YSTRIDE1, ystride1);
> }
>
> +static void dpu_hw_sspp_setup_sourceaddress_v13(struct dpu_sw_pipe *pipe,
> + struct dpu_hw_fmt_layout *layout)
> +{
> + struct dpu_hw_sspp *ctx = pipe->sspp;
> + int i;
> + u32 addr, ystride0, ystride1;
> +
> + if (!ctx)
> + return;
> +
> + addr = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
> +
> + for (i = 0; i < ARRAY_SIZE(layout->plane_addr); i++)
> + DPU_REG_WRITE(&ctx->hw, addr + SSPP_REC_SRC0_ADDR + i * 0x4,
> + layout->plane_addr[i]);
> +
> + ystride0 = (layout->plane_pitch[0]) | (layout->plane_pitch[2] << 16);
> + ystride1 = (layout->plane_pitch[1]) | (layout->plane_pitch[3] << 16);
> +
> + DPU_REG_WRITE(&ctx->hw, addr + SSPP_REC_SRC_YSTRIDE0, ystride0);
> + DPU_REG_WRITE(&ctx->hw, addr + SSPP_REC_SRC_YSTRIDE1, ystride1);
> +}
> +
> static void dpu_hw_sspp_setup_csc(struct dpu_hw_sspp *ctx,
> const struct dpu_csc_cfg *data)
> {
> @@ -536,6 +888,24 @@ static void dpu_hw_sspp_setup_solidfill(struct dpu_sw_pipe *pipe, u32 color)
> color);
> }
>
> +static void dpu_hw_sspp_setup_solidfill_v13(struct dpu_sw_pipe *pipe, u32 color)
> +{
> + struct dpu_hw_sspp *ctx = pipe->sspp;
> + struct dpu_hw_fmt_layout cfg;
> + u32 offset;
> +
> + if (!ctx)
> + return;
> +
> + offset = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
> +
> + /* cleanup source addresses */
> + memset(&cfg, 0, sizeof(cfg));
> + ctx->ops.setup_sourceaddress(pipe, &cfg);
> +
> + DPU_REG_WRITE(&ctx->hw, offset + SSPP_REC_SRC_CONSTANT_COLOR, color);
> +}
> +
> static void dpu_hw_sspp_setup_qos_lut(struct dpu_hw_sspp *ctx,
> struct dpu_hw_qos_cfg *cfg)
> {
> @@ -547,6 +917,17 @@ static void dpu_hw_sspp_setup_qos_lut(struct dpu_hw_sspp *ctx,
> cfg);
> }
>
> +static void dpu_hw_sspp_setup_qos_lut_v13(struct dpu_hw_sspp *ctx,
> + struct dpu_hw_qos_cfg *cfg)
> +{
> + if (!ctx || !cfg)
> + return;
> +
> + _dpu_hw_setup_qos_lut_v13(&ctx->hw, 0,
> + ctx->mdss_ver->core_major_ver >= 4,
This is v13, of course it is >= 4.
> + cfg);
> +}
> +
> static void dpu_hw_sspp_setup_qos_ctrl(struct dpu_hw_sspp *ctx,
> bool danger_safe_en)
> {
> @@ -557,6 +938,16 @@ static void dpu_hw_sspp_setup_qos_ctrl(struct dpu_hw_sspp *ctx,
> danger_safe_en ? SSPP_QOS_CTRL_DANGER_SAFE_EN : 0);
> }
>
> +static void dpu_hw_sspp_setup_qos_ctrl_v13(struct dpu_hw_sspp *ctx,
> + bool danger_safe_en)
> +{
> + if (!ctx)
> + return;
> +
> + DPU_REG_WRITE(&ctx->hw, SSPP_CMN_QOS_CTRL,
> + danger_safe_en ? SSPP_QOS_CTRL_DANGER_SAFE_EN : 0);
> +}
> +
> static void dpu_hw_sspp_setup_cdp(struct dpu_sw_pipe *pipe,
> const struct msm_format *fmt,
> bool enable)
> @@ -576,6 +967,20 @@ static void dpu_hw_sspp_setup_cdp(struct dpu_sw_pipe *pipe,
> dpu_setup_cdp(&ctx->hw, cdp_cntl_offset, fmt, enable);
> }
>
> +static void dpu_hw_sspp_setup_cdp_v13(struct dpu_sw_pipe *pipe,
> + const struct msm_format *fmt,
> + bool enable)
> +{
> + struct dpu_hw_sspp *ctx = pipe->sspp;
> + u32 offset = 0;
> +
> + if (!ctx)
> + return;
> +
> + offset = _sspp_calculate_rect_off(pipe->multirect_index, ctx);
> + dpu_setup_cdp(&ctx->hw, offset + SSPP_REC_CDP_CNTL, fmt, enable);
> +}
> +
> static bool dpu_hw_sspp_setup_clk_force_ctrl(struct dpu_hw_sspp *ctx, bool enable)
> {
> static const struct dpu_clk_ctrl_reg sspp_clk_ctrl = {
> @@ -586,36 +991,69 @@ static bool dpu_hw_sspp_setup_clk_force_ctrl(struct dpu_hw_sspp *ctx, bool enabl
> return dpu_hw_clk_force_ctrl(&ctx->hw, &sspp_clk_ctrl, enable);
> }
>
> +static bool dpu_hw_sspp_setup_clk_force_ctrl_v13(struct dpu_hw_sspp *ctx, bool enable)
> +{
> + static const struct dpu_clk_ctrl_reg sspp_clk_ctrl = {
> + .reg_off = SSPP_CMN_CLK_CTRL,
> + .bit_off = 0
> + };
> +
> + return dpu_hw_clk_force_ctrl(&ctx->hw, &sspp_clk_ctrl, enable);
> +}
> +
> static void _setup_layer_ops(struct dpu_hw_sspp *c,
> unsigned long features, const struct dpu_mdss_version *mdss_rev)
> {
> - c->ops.setup_format = dpu_hw_sspp_setup_format;
> - c->ops.setup_rects = dpu_hw_sspp_setup_rects;
> - c->ops.setup_sourceaddress = dpu_hw_sspp_setup_sourceaddress;
> - c->ops.setup_solidfill = dpu_hw_sspp_setup_solidfill;
> - c->ops.setup_pe = dpu_hw_sspp_setup_pe_config;
> -
> - if (test_bit(DPU_SSPP_QOS, &features)) {
> - c->ops.setup_qos_lut = dpu_hw_sspp_setup_qos_lut;
> - c->ops.setup_qos_ctrl = dpu_hw_sspp_setup_qos_ctrl;
> + if (mdss_rev->core_major_ver >= 13) {
> + c->ops.setup_format = dpu_hw_sspp_setup_format_v13;
> + c->ops.setup_rects = dpu_hw_sspp_setup_rects_v13;
> + c->ops.setup_sourceaddress = dpu_hw_sspp_setup_sourceaddress_v13;
> + c->ops.setup_solidfill = dpu_hw_sspp_setup_solidfill_v13;
> + c->ops.setup_pe = dpu_hw_sspp_setup_pe_config_v13;
> +
> + if (test_bit(DPU_SSPP_QOS, &features)) {
> + c->ops.setup_qos_lut = dpu_hw_sspp_setup_qos_lut_v13;
> + c->ops.setup_qos_ctrl = dpu_hw_sspp_setup_qos_ctrl_v13;
> + }
> +
> + if (test_bit(DPU_SSPP_SMART_DMA_V1, &c->cap->features) ||
> + test_bit(DPU_SSPP_SMART_DMA_V2, &c->cap->features))
> + c->ops.setup_multirect = dpu_hw_sspp_setup_multirect_v13;
> +
> + if (test_bit(DPU_SSPP_CDP, &features))
> + c->ops.setup_cdp = dpu_hw_sspp_setup_cdp_v13;
> +
> + c->ops.setup_clk_force_ctrl = dpu_hw_sspp_setup_clk_force_ctrl_v13;
> + } else {
> + c->ops.setup_format = dpu_hw_sspp_setup_format;
> + c->ops.setup_rects = dpu_hw_sspp_setup_rects;
> + c->ops.setup_sourceaddress = dpu_hw_sspp_setup_sourceaddress;
> + c->ops.setup_solidfill = dpu_hw_sspp_setup_solidfill;
> + c->ops.setup_pe = dpu_hw_sspp_setup_pe_config;
> +
> + if (test_bit(DPU_SSPP_QOS, &features)) {
> + c->ops.setup_qos_lut = dpu_hw_sspp_setup_qos_lut;
> + c->ops.setup_qos_ctrl = dpu_hw_sspp_setup_qos_ctrl;
> + }
> +
> + if (test_bit(DPU_SSPP_SMART_DMA_V1, &c->cap->features) ||
> + test_bit(DPU_SSPP_SMART_DMA_V2, &c->cap->features))
> + c->ops.setup_multirect = dpu_hw_sspp_setup_multirect;
> +
> + if (test_bit(DPU_SSPP_CDP, &features))
> + c->ops.setup_cdp = dpu_hw_sspp_setup_cdp;
> +
> + if (mdss_rev->core_major_ver >= 9)
> + c->ops.setup_clk_force_ctrl = dpu_hw_sspp_setup_clk_force_ctrl;
> }
>
> if (test_bit(DPU_SSPP_CSC, &features) ||
> test_bit(DPU_SSPP_CSC_10BIT, &features))
> c->ops.setup_csc = dpu_hw_sspp_setup_csc;
>
> - if (test_bit(DPU_SSPP_SMART_DMA_V1, &c->cap->features) ||
> - test_bit(DPU_SSPP_SMART_DMA_V2, &c->cap->features))
> - c->ops.setup_multirect = dpu_hw_sspp_setup_multirect;
> -
> if (test_bit(DPU_SSPP_SCALER_QSEED3_COMPATIBLE, &features))
> c->ops.setup_scaler = _dpu_hw_sspp_setup_scaler3;
If the only common items are CSC and scaler (and both are already pretty
abstracted), please don't squash it in the same old file. Create new
file for the new hardware block (like we did for DSC 1.1 vs 1.2).
>
> - if (test_bit(DPU_SSPP_CDP, &features))
> - c->ops.setup_cdp = dpu_hw_sspp_setup_cdp;
> -
> - if (mdss_rev->core_major_ver >= 9)
> - c->ops.setup_clk_force_ctrl = dpu_hw_sspp_setup_clk_force_ctrl;
> }
>
> #ifdef CONFIG_DEBUG_FS
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
> index 486be346d40d..1acf456c425b 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c
> @@ -81,6 +81,13 @@ static u32 dpu_hw_util_log_mask = DPU_DBG_MASK_NONE;
> #define QOS_CREQ_LUT_0 0x14
> #define QOS_CREQ_LUT_1 0x18
>
> +/* CMN_QOS_LUT */
> +#define SSPP_CMN_DANGER_LUT 0x2C
> +#define SSPP_CMN_SAFE_LUT 0x30
> +#define SSPP_CMN_CREQ_LUT_0 0x34
> +#define SSPP_CMN_CREQ_LUT_1 0x38
> +#define SSPP_CMN_QOS_CTRL 0x28
Lowercase hex, sort by the address.
> +
> /* QOS_QOS_CTRL */
> #define QOS_QOS_CTRL_DANGER_SAFE_EN BIT(0)
> #define QOS_QOS_CTRL_DANGER_VBLANK_MASK GENMASK(5, 4)
> @@ -475,6 +482,22 @@ void _dpu_hw_setup_qos_lut(struct dpu_hw_blk_reg_map *c, u32 offset,
> cfg->danger_safe_en ? QOS_QOS_CTRL_DANGER_SAFE_EN : 0);
> }
>
> +void _dpu_hw_setup_qos_lut_v13(struct dpu_hw_blk_reg_map *c, u32 offset,
> + bool qos_8lvl,
> + const struct dpu_hw_qos_cfg *cfg)
> +{
> + DPU_REG_WRITE(c, offset + SSPP_CMN_DANGER_LUT, cfg->danger_lut);
> + DPU_REG_WRITE(c, offset + SSPP_CMN_SAFE_LUT, cfg->safe_lut);
> +
> + if (qos_8lvl) {
> + DPU_REG_WRITE(c, offset + SSPP_CMN_CREQ_LUT_0, cfg->creq_lut);
> + DPU_REG_WRITE(c, offset + SSPP_CMN_CREQ_LUT_1, cfg->creq_lut >> 32);
> + }
> +
> + DPU_REG_WRITE(c, offset + SSPP_CMN_QOS_CTRL,
> + cfg->danger_safe_en ? QOS_QOS_CTRL_DANGER_SAFE_EN : 0);
> +}
> +
> /*
> * note: Aside from encoders, input_sel should be set to 0x0 by default
> */
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h
> index 67b08e99335d..9d442d6fc11c 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h
> @@ -360,6 +360,10 @@ void _dpu_hw_setup_qos_lut(struct dpu_hw_blk_reg_map *c, u32 offset,
> bool qos_8lvl,
> const struct dpu_hw_qos_cfg *cfg);
>
> +void _dpu_hw_setup_qos_lut_v13(struct dpu_hw_blk_reg_map *c, u32 offset,
> + bool qos_8lvl,
> + const struct dpu_hw_qos_cfg *cfg);
> +
> void dpu_hw_setup_misr(struct dpu_hw_blk_reg_map *c,
> u32 misr_ctrl_offset, u8 input_sel);
>
> --
> 2.34.1
>
--
With best wishes
Dmitry
From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
The NT37801 Sepc V1.0 chapter "5.7.1 Power On Sequence" states
VDDI=1.65V~1.95V, so set sufficient voltage for panel nt37801.
Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
---
drivers/gpu/drm/panel/panel-novatek-nt37801.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-novatek-nt37801.c b/drivers/gpu/drm/panel/panel-novatek-nt37801.c
index d6a37d7e0cc6..7eda16e0c1f9 100644
--- a/drivers/gpu/drm/panel/panel-novatek-nt37801.c
+++ b/drivers/gpu/drm/panel/panel-novatek-nt37801.c
@@ -267,6 +267,11 @@ static int novatek_nt37801_probe(struct mipi_dsi_device *dsi)
if (ret < 0)
return ret;
+ ret = regulator_set_voltage(ctx->supplies[0].consumer,
+ 1650000, 1950000);
+ if (ret < 0)
+ return ret;
+
ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
if (IS_ERR(ctx->reset_gpio))
return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio),
--
2.34.1
On Thu, Oct 23, 2025 at 04:06:04PM +0800, yuanjie yang wrote: > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > The NT37801 Sepc V1.0 chapter "5.7.1 Power On Sequence" states > VDDI=1.65V~1.95V, so set sufficient voltage for panel nt37801. > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > --- > drivers/gpu/drm/panel/panel-novatek-nt37801.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/panel/panel-novatek-nt37801.c b/drivers/gpu/drm/panel/panel-novatek-nt37801.c > index d6a37d7e0cc6..7eda16e0c1f9 100644 > --- a/drivers/gpu/drm/panel/panel-novatek-nt37801.c > +++ b/drivers/gpu/drm/panel/panel-novatek-nt37801.c > @@ -267,6 +267,11 @@ static int novatek_nt37801_probe(struct mipi_dsi_device *dsi) > if (ret < 0) > return ret; > > + ret = regulator_set_voltage(ctx->supplies[0].consumer, > + 1650000, 1950000); This should be done in the DT. Limit the voltage per the user. > + if (ret < 0) > + return ret; > + > ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); > if (IS_ERR(ctx->reset_gpio)) > return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), > -- > 2.34.1 > -- With best wishes Dmitry
On 10/23/25 10:06 AM, yuanjie yang wrote: > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > The NT37801 Sepc V1.0 chapter "5.7.1 Power On Sequence" states > VDDI=1.65V~1.95V, so set sufficient voltage for panel nt37801. > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > --- This patch should have been sent separately as it's not at all related to extending the msm display driver to support Kaanapali *and* it goes through a different maintainer Konrad
On Thu, Oct 23, 2025 at 10:22:12AM +0200, Konrad Dybcio wrote: > On 10/23/25 10:06 AM, yuanjie yang wrote: > > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > > > The NT37801 Sepc V1.0 chapter "5.7.1 Power On Sequence" states > > VDDI=1.65V~1.95V, so set sufficient voltage for panel nt37801. > > > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > --- > > This patch should have been sent separately as it's not at all > related to extending the msm display driver to support Kaanapali > *and* it goes through a different maintainer OK, get it, will split panel patch. Thanks, Yuanjie > Konrad
From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
Build the NT37801 DSI panel driver as module.
Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 8cfb5000fa8e..537a065db11c 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -945,6 +945,7 @@ CONFIG_DRM_PANEL_SITRONIX_ST7703=m
CONFIG_DRM_PANEL_STARTEK_KD070FHFID015=m
CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m
CONFIG_DRM_PANEL_VISIONOX_VTDR6130=m
+CONFIG_DRM_PANEL_NOVATEK_NT37801=m
CONFIG_DRM_DISPLAY_CONNECTOR=m
CONFIG_DRM_FSL_LDB=m
CONFIG_DRM_ITE_IT6263=m
--
2.34.1
On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > Build the NT37801 DSI panel driver as module. > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing provided certificate of origin, then you provide certificate of origin and send it to list? Please correct. Also, all other patches in this series are merged by DRM maintainers, while I'm supposed to merge this one. Please send it separately, once it's ready to be merged. Thanks, Bjorn > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > index 8cfb5000fa8e..537a065db11c 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -945,6 +945,7 @@ CONFIG_DRM_PANEL_SITRONIX_ST7703=m > CONFIG_DRM_PANEL_STARTEK_KD070FHFID015=m > CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m > CONFIG_DRM_PANEL_VISIONOX_VTDR6130=m > +CONFIG_DRM_PANEL_NOVATEK_NT37801=m > CONFIG_DRM_DISPLAY_CONNECTOR=m > CONFIG_DRM_FSL_LDB=m > CONFIG_DRM_ITE_IT6263=m > -- > 2.34.1 >
On Mon, Oct 27, 2025 at 10:51:23PM -0500, Bjorn Andersson wrote: > On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: > > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > > > Build the NT37801 DSI panel driver as module. > > > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing > provided certificate of origin, then you provide certificate of origin > and send it to list? > > Please correct. All the display patches were jointly developed by Yongxing and me. So every patch I do sign below: Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> I am the author of these patches. So author is me: From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> Do I need to fix this sign below in next patch: Co-developed-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > Also, all other patches in this series are merged by DRM maintainers, > while I'm supposed to merge this one. Please send it separately, once > it's ready to be merged. Sure, I will split this patch to push. Thanks, Yuanjie > Thanks, > Bjorn > > > --- > > arch/arm64/configs/defconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > > index 8cfb5000fa8e..537a065db11c 100644 > > --- a/arch/arm64/configs/defconfig > > +++ b/arch/arm64/configs/defconfig > > @@ -945,6 +945,7 @@ CONFIG_DRM_PANEL_SITRONIX_ST7703=m > > CONFIG_DRM_PANEL_STARTEK_KD070FHFID015=m > > CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m > > CONFIG_DRM_PANEL_VISIONOX_VTDR6130=m > > +CONFIG_DRM_PANEL_NOVATEK_NT37801=m > > CONFIG_DRM_DISPLAY_CONNECTOR=m > > CONFIG_DRM_FSL_LDB=m > > CONFIG_DRM_ITE_IT6263=m > > -- > > 2.34.1 > >
On 29/10/2025 03:37, yuanjiey wrote: > On Mon, Oct 27, 2025 at 10:51:23PM -0500, Bjorn Andersson wrote: >> On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: >>> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> >>> >>> Build the NT37801 DSI panel driver as module. >>> >>> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> >>> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> >> >> You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing >> provided certificate of origin, then you provide certificate of origin >> and send it to list? >> >> Please correct. > > All the display patches were jointly developed by Yongxing and me. > So every patch So two people were working on this absolutely trivial defconfig change? I have troubles believing this. Best regards, Krzysztof
On Wed, Oct 29, 2025 at 02:05:20PM +0100, Krzysztof Kozlowski wrote: > On 29/10/2025 03:37, yuanjiey wrote: > > On Mon, Oct 27, 2025 at 10:51:23PM -0500, Bjorn Andersson wrote: > >> On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: > >>> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > >>> > >>> Build the NT37801 DSI panel driver as module. > >>> > >>> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > >>> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > >> > >> You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing > >> provided certificate of origin, then you provide certificate of origin > >> and send it to list? > >> > >> Please correct. > > > > All the display patches were jointly developed by Yongxing and me. > > So every patch > > > So two people were working on this absolutely trivial defconfig change? > I have troubles believing this. I want to say these patches I am first author and yongxing give me support, so I think yongxing is second author. I want to express my gratitude for Yongxing's support in every patch, so I included both our names in the sign-off for each one. However, if my intention causes any trouble for maintainer, I can remove Yongxing's sign-off from this patch. Thanks, Yuanjie > Best regards, > Krzysztof
On 30/10/2025 03:33, yuanjiey wrote: > On Wed, Oct 29, 2025 at 02:05:20PM +0100, Krzysztof Kozlowski wrote: >> On 29/10/2025 03:37, yuanjiey wrote: >>> On Mon, Oct 27, 2025 at 10:51:23PM -0500, Bjorn Andersson wrote: >>>> On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: >>>>> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> >>>>> >>>>> Build the NT37801 DSI panel driver as module. >>>>> >>>>> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> >>>>> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> >>>> >>>> You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing >>>> provided certificate of origin, then you provide certificate of origin >>>> and send it to list? >>>> >>>> Please correct. >>> >>> All the display patches were jointly developed by Yongxing and me. >>> So every patch >> >> >> So two people were working on this absolutely trivial defconfig change? >> I have troubles believing this. > I want to say these patches I am first author and yongxing give me support, so > I think yongxing is second author. > > I want to express my gratitude for Yongxing's support in every patch, so I included > both our names in the sign-off for each one. > > However, if my intention causes any trouble for maintainer, I can remove Yongxing's > sign-off from this patch. Please read submitting patches to understand what Signed-off-by means. Otherwise I have doubts we can accept your patches - you simply do not understand what you are certifying. Best regards, Krzysztof
On Thu, Oct 30, 2025 at 06:37:40AM +0100, Krzysztof Kozlowski wrote: > On 30/10/2025 03:33, yuanjiey wrote: > > On Wed, Oct 29, 2025 at 02:05:20PM +0100, Krzysztof Kozlowski wrote: > >> On 29/10/2025 03:37, yuanjiey wrote: > >>> On Mon, Oct 27, 2025 at 10:51:23PM -0500, Bjorn Andersson wrote: > >>>> On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: > >>>>> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > >>>>> > >>>>> Build the NT37801 DSI panel driver as module. > >>>>> > >>>>> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > >>>>> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > >>>> > >>>> You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing > >>>> provided certificate of origin, then you provide certificate of origin > >>>> and send it to list? > >>>> > >>>> Please correct. > >>> > >>> All the display patches were jointly developed by Yongxing and me. > >>> So every patch > >> > >> > >> So two people were working on this absolutely trivial defconfig change? > >> I have troubles believing this. > > I want to say these patches I am first author and yongxing give me support, so > > I think yongxing is second author. > > > > I want to express my gratitude for Yongxing's support in every patch, so I included > > both our names in the sign-off for each one. > > > > However, if my intention causes any trouble for maintainer, I can remove Yongxing's > > sign-off from this patch. > > > Please read submitting patches to understand what Signed-off-by means. > Otherwise I have doubts we can accept your patches - you simply do not > understand what you are certifying. Thanks for your tips, and I learn some tips from submitting patches: https://elixir.bootlin.com/linux/v6.18-rc3/source/Documentation/process/submitting-patches.rst#L524 I thinks below sign should be true, if you also think it true, I will use it in next patches. Co-developed-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> Thanks, Yuanjie > Best regards, > Krzysztof
On Thu, Oct 30, 2025 at 03:07:59PM +0800, yuanjiey wrote: > On Thu, Oct 30, 2025 at 06:37:40AM +0100, Krzysztof Kozlowski wrote: > > On 30/10/2025 03:33, yuanjiey wrote: > > > On Wed, Oct 29, 2025 at 02:05:20PM +0100, Krzysztof Kozlowski wrote: > > >> On 29/10/2025 03:37, yuanjiey wrote: > > >>> On Mon, Oct 27, 2025 at 10:51:23PM -0500, Bjorn Andersson wrote: > > >>>> On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: > > >>>>> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > >>>>> > > >>>>> Build the NT37801 DSI panel driver as module. > > >>>>> > > >>>>> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > > >>>>> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > >>>> > > >>>> You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing > > >>>> provided certificate of origin, then you provide certificate of origin > > >>>> and send it to list? > > >>>> > > >>>> Please correct. > > >>> > > >>> All the display patches were jointly developed by Yongxing and me. > > >>> So every patch > > >> > > >> > > >> So two people were working on this absolutely trivial defconfig change? > > >> I have troubles believing this. > > > I want to say these patches I am first author and yongxing give me support, so > > > I think yongxing is second author. > > > > > > I want to express my gratitude for Yongxing's support in every patch, so I included > > > both our names in the sign-off for each one. > > > > > > However, if my intention causes any trouble for maintainer, I can remove Yongxing's > > > sign-off from this patch. > > > > > > Please read submitting patches to understand what Signed-off-by means. > > Otherwise I have doubts we can accept your patches - you simply do not > > understand what you are certifying. > Thanks for your tips, and I learn some tips from submitting patches: > https://elixir.bootlin.com/linux/v6.18-rc3/source/Documentation/process/submitting-patches.rst#L524 > > I thinks below sign should be true, if you also think it true, I will use it in next patches. > > Co-developed-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> Does one-liner need two engineers to co-develop it? -- With best wishes Dmitry
On 30/10/2025 08:07, yuanjiey wrote: > On Thu, Oct 30, 2025 at 06:37:40AM +0100, Krzysztof Kozlowski wrote: >> On 30/10/2025 03:33, yuanjiey wrote: >>> On Wed, Oct 29, 2025 at 02:05:20PM +0100, Krzysztof Kozlowski wrote: >>>> On 29/10/2025 03:37, yuanjiey wrote: >>>>> On Mon, Oct 27, 2025 at 10:51:23PM -0500, Bjorn Andersson wrote: >>>>>> On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: >>>>>>> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> >>>>>>> >>>>>>> Build the NT37801 DSI panel driver as module. >>>>>>> >>>>>>> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> >>>>>>> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> >>>>>> >>>>>> You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing >>>>>> provided certificate of origin, then you provide certificate of origin >>>>>> and send it to list? >>>>>> >>>>>> Please correct. >>>>> >>>>> All the display patches were jointly developed by Yongxing and me. >>>>> So every patch >>>> >>>> >>>> So two people were working on this absolutely trivial defconfig change? >>>> I have troubles believing this. >>> I want to say these patches I am first author and yongxing give me support, so >>> I think yongxing is second author. >>> >>> I want to express my gratitude for Yongxing's support in every patch, so I included >>> both our names in the sign-off for each one. >>> >>> However, if my intention causes any trouble for maintainer, I can remove Yongxing's >>> sign-off from this patch. >> >> >> Please read submitting patches to understand what Signed-off-by means. >> Otherwise I have doubts we can accept your patches - you simply do not >> understand what you are certifying. > Thanks for your tips, and I learn some tips from submitting patches: > https://elixir.bootlin.com/linux/v6.18-rc3/source/Documentation/process/submitting-patches.rst#L524 > > I thinks below sign should be true, if you also think it true, I will use it in next patches. > > Co-developed-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> How does co-developing match what you wrote "give me support"? > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> Best regards, Krzysztof
On Thu, Oct 30, 2025 at 11:43:49AM +0100, Krzysztof Kozlowski wrote: > On 30/10/2025 08:07, yuanjiey wrote: > > On Thu, Oct 30, 2025 at 06:37:40AM +0100, Krzysztof Kozlowski wrote: > >> On 30/10/2025 03:33, yuanjiey wrote: > >>> On Wed, Oct 29, 2025 at 02:05:20PM +0100, Krzysztof Kozlowski wrote: > >>>> On 29/10/2025 03:37, yuanjiey wrote: > >>>>> On Mon, Oct 27, 2025 at 10:51:23PM -0500, Bjorn Andersson wrote: > >>>>>> On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: > >>>>>>> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > >>>>>>> > >>>>>>> Build the NT37801 DSI panel driver as module. > >>>>>>> > >>>>>>> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > >>>>>>> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > >>>>>> > >>>>>> You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing > >>>>>> provided certificate of origin, then you provide certificate of origin > >>>>>> and send it to list? > >>>>>> > >>>>>> Please correct. > >>>>> > >>>>> All the display patches were jointly developed by Yongxing and me. > >>>>> So every patch > >>>> > >>>> > >>>> So two people were working on this absolutely trivial defconfig change? > >>>> I have troubles believing this. > >>> I want to say these patches I am first author and yongxing give me support, so > >>> I think yongxing is second author. > >>> > >>> I want to express my gratitude for Yongxing's support in every patch, so I included > >>> both our names in the sign-off for each one. > >>> > >>> However, if my intention causes any trouble for maintainer, I can remove Yongxing's > >>> sign-off from this patch. > >> > >> > >> Please read submitting patches to understand what Signed-off-by means. > >> Otherwise I have doubts we can accept your patches - you simply do not > >> understand what you are certifying. > > Thanks for your tips, and I learn some tips from submitting patches: > > https://elixir.bootlin.com/linux/v6.18-rc3/source/Documentation/process/submitting-patches.rst#L524 > > > > I thinks below sign should be true, if you also think it true, I will use it in next patches. > > > > Co-developed-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > > How does co-developing match what you wrote "give me support"? OK, I will fix sign, will keep sign below in next patch: Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> Thanks, Yuanjie > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > > > Best regards, > Krzysztof
On Fri, Oct 31, 2025 at 10:28:12AM +0800, yuanjiey wrote: > On Thu, Oct 30, 2025 at 11:43:49AM +0100, Krzysztof Kozlowski wrote: > > On 30/10/2025 08:07, yuanjiey wrote: > > > On Thu, Oct 30, 2025 at 06:37:40AM +0100, Krzysztof Kozlowski wrote: > > >> On 30/10/2025 03:33, yuanjiey wrote: > > >>> On Wed, Oct 29, 2025 at 02:05:20PM +0100, Krzysztof Kozlowski wrote: > > >>>> On 29/10/2025 03:37, yuanjiey wrote: > > >>>>> On Mon, Oct 27, 2025 at 10:51:23PM -0500, Bjorn Andersson wrote: > > >>>>>> On Thu, Oct 23, 2025 at 04:06:05PM +0800, yuanjie yang wrote: > > >>>>>>> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > >>>>>>> > > >>>>>>> Build the NT37801 DSI panel driver as module. > > >>>>>>> > > >>>>>>> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > > >>>>>>> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > >>>>>> > > >>>>>> You (Yuanjie) authored the patch, but forgot to sign-off, then Yongxing > > >>>>>> provided certificate of origin, then you provide certificate of origin > > >>>>>> and send it to list? > > >>>>>> > > >>>>>> Please correct. > > >>>>> > > >>>>> All the display patches were jointly developed by Yongxing and me. > > >>>>> So every patch > > >>>> > > >>>> > > >>>> So two people were working on this absolutely trivial defconfig change? > > >>>> I have troubles believing this. > > >>> I want to say these patches I am first author and yongxing give me support, so > > >>> I think yongxing is second author. > > >>> > > >>> I want to express my gratitude for Yongxing's support in every patch, so I included > > >>> both our names in the sign-off for each one. > > >>> > > >>> However, if my intention causes any trouble for maintainer, I can remove Yongxing's > > >>> sign-off from this patch. > > >> > > >> > > >> Please read submitting patches to understand what Signed-off-by means. > > >> Otherwise I have doubts we can accept your patches - you simply do not > > >> understand what you are certifying. > > > Thanks for your tips, and I learn some tips from submitting patches: > > > https://elixir.bootlin.com/linux/v6.18-rc3/source/Documentation/process/submitting-patches.rst#L524 > > > > > > I thinks below sign should be true, if you also think it true, I will use it in next patches. > > > > > > Co-developed-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > > > > How does co-developing match what you wrote "give me support"? > OK, I will fix sign, will keep sign below in next patch: > > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> There was already one and it doesn't help, because co-developing means actually developing together or one after another. "giving support" is not co-developing-by. > > Thanks, > Yuanjie > > > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > > > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > > > > > > > Best regards, > > Krzysztof -- With best wishes Dmitry
On 10/23/25 10:06 AM, yuanjie yang wrote: > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > Build the NT37801 DSI panel driver as module. Yes, we can see that's what happens in the diff below. You failed to state the "why" Konrad > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > index 8cfb5000fa8e..537a065db11c 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -945,6 +945,7 @@ CONFIG_DRM_PANEL_SITRONIX_ST7703=m > CONFIG_DRM_PANEL_STARTEK_KD070FHFID015=m > CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m > CONFIG_DRM_PANEL_VISIONOX_VTDR6130=m > +CONFIG_DRM_PANEL_NOVATEK_NT37801=m > CONFIG_DRM_DISPLAY_CONNECTOR=m > CONFIG_DRM_FSL_LDB=m > CONFIG_DRM_ITE_IT6263=m
On Thu, Oct 23, 2025 at 10:22:36AM +0200, Konrad Dybcio wrote: > On 10/23/25 10:06 AM, yuanjie yang wrote: > > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > > > Build the NT37801 DSI panel driver as module. > > Yes, we can see that's what happens in the diff below. > > You failed to state the "why" Novatek NT37801 panel is used on Qualcomm Kaanapali-mtp and SM8750-mtp board. I will give this reason in split panel patch. Thanks, Yuanjie > Konrad > > > > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > --- > > arch/arm64/configs/defconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > > index 8cfb5000fa8e..537a065db11c 100644 > > --- a/arch/arm64/configs/defconfig > > +++ b/arch/arm64/configs/defconfig > > @@ -945,6 +945,7 @@ CONFIG_DRM_PANEL_SITRONIX_ST7703=m > > CONFIG_DRM_PANEL_STARTEK_KD070FHFID015=m > > CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m > > CONFIG_DRM_PANEL_VISIONOX_VTDR6130=m > > +CONFIG_DRM_PANEL_NOVATEK_NT37801=m > > CONFIG_DRM_DISPLAY_CONNECTOR=m > > CONFIG_DRM_FSL_LDB=m > > CONFIG_DRM_ITE_IT6263=m
From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
Add DPU version 13.0 for Qualcomm Kaanapali Soc. The Kaanapali
DPU and SM8750 have significant differences, including additions
and removals of registers, as well as changes in register addresses.
Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
---
.../devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml b/Documentation/devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml
index 0a46120dd868..424dbda3fd9d 100644
--- a/Documentation/devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml
+++ b/Documentation/devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml
@@ -14,6 +14,7 @@ $ref: /schemas/display/msm/dpu-common.yaml#
properties:
compatible:
enum:
+ - qcom,kaanapali-dpu
- qcom,sa8775p-dpu
- qcom,sm8650-dpu
- qcom,sm8750-dpu
--
2.34.1
On Thu, 23 Oct 2025 16:06:06 +0800, yuanjie yang wrote: > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > Add DPU version 13.0 for Qualcomm Kaanapali Soc. The Kaanapali > DPU and SM8750 have significant differences, including additions > and removals of registers, as well as changes in register addresses. > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > --- > .../devicetree/bindings/display/msm/qcom,sm8650-dpu.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring (Arm) <robh@kernel.org>
From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
Add DSI PHY for Kaanapali.
Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
---
Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml b/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml
index 1ca820a500b7..a6e044eed3df 100644
--- a/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml
+++ b/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml
@@ -17,6 +17,7 @@ properties:
enum:
- qcom,dsi-phy-7nm
- qcom,dsi-phy-7nm-8150
+ - qcom,kaanapali-dsi-phy-3nm
- qcom,sa8775p-dsi-phy-5nm
- qcom,sar2130p-dsi-phy-5nm
- qcom,sc7280-dsi-phy-7nm
--
2.34.1
On Thu, Oct 23, 2025 at 04:06:07PM +0800, yuanjie yang wrote: > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> In the subject: DSI, not DSi > > Add DSI PHY for Kaanapali. Why? > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > --- > Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml b/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml > index 1ca820a500b7..a6e044eed3df 100644 > --- a/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml > +++ b/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml > @@ -17,6 +17,7 @@ properties: > enum: > - qcom,dsi-phy-7nm > - qcom,dsi-phy-7nm-8150 > + - qcom,kaanapali-dsi-phy-3nm > - qcom,sa8775p-dsi-phy-5nm > - qcom,sar2130p-dsi-phy-5nm > - qcom,sc7280-dsi-phy-7nm > -- > 2.34.1 > -- With best wishes Dmitry
From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
Add DSI Controller for Kaanapali.
Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
---
.../devicetree/bindings/display/msm/dsi-controller-main.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml
index 4400d4cce072..536ebf331828 100644
--- a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml
+++ b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml
@@ -15,6 +15,7 @@ properties:
- items:
- enum:
- qcom,apq8064-dsi-ctrl
+ - qcom,kaanapali-dsi-ctrl
- qcom,msm8226-dsi-ctrl
- qcom,msm8916-dsi-ctrl
- qcom,msm8953-dsi-ctrl
@@ -369,6 +370,7 @@ allOf:
compatible:
contains:
enum:
+ - qcom,kaanapali-dsi-ctrl
- qcom,sm8750-dsi-ctrl
then:
properties:
--
2.34.1
On Thu, Oct 23, 2025 at 04:06:08PM +0800, yuanjie yang wrote: > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > Add DSI Controller for Kaanapali. Please say something more important here. Why do we need new compatible for this platform, etc. > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > --- > .../devicetree/bindings/display/msm/dsi-controller-main.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml > index 4400d4cce072..536ebf331828 100644 > --- a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml > +++ b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml > @@ -15,6 +15,7 @@ properties: > - items: > - enum: > - qcom,apq8064-dsi-ctrl > + - qcom,kaanapali-dsi-ctrl > - qcom,msm8226-dsi-ctrl > - qcom,msm8916-dsi-ctrl > - qcom,msm8953-dsi-ctrl > @@ -369,6 +370,7 @@ allOf: > compatible: > contains: > enum: > + - qcom,kaanapali-dsi-ctrl > - qcom,sm8750-dsi-ctrl > then: > properties: > -- > 2.34.1 > -- With best wishes Dmitry
© 2016 - 2026 Red Hat, Inc.