Skip to content

support esp32-p4 guiton? #518

Open
Open

Description

@NickyDark1

Activity

  1. pysn2012 commented on Feb 12, 2026

    @pysn2012

    @NickyDark1
    You can first modify the code according to #515, so that the code can fix the support for DSI driver, then compile, and then your screen will be ST7701. Find the corresponding driver and modify it according to the linked code.

    Parameters such as hsync _ back _ porch, hsync _ pulse _ width, hsync _ front _ porch, vsync _ back _ porch, vsync _ pulse _ width, vsync _ front _ porch, etc. are modified according to the following code (extracted from https://github.com/NickyDark1/esp32_p4_jc4880p433c_bsp):

            .dpi_clk_src = MIPI_DSI_DPI_CLK_SRC_DEFAULT,
            .dpi_clock_freq_mhz = CONFIG_BSP_JC4880P443C_DPI_CLOCK_MHZ,
            .virtual_channel = 0,
            .pixel_format = LCD_COLOR_PIXEL_FORMAT_RGB565,
            .num_fbs = CONFIG_BSP_JC4880P443C_NUM_FB,
            .video_timing = {
                .h_size = CONFIG_BSP_JC4880P443C_LCD_H_RES,
                .v_size = CONFIG_BSP_JC4880P443C_LCD_V_RES,
                .hsync_pulse_width = 12,
                .hsync_back_porch = 42,
                .hsync_front_porch = 42,
                .vsync_pulse_width = 2,
                .vsync_back_porch = 8,
                .vsync_front_porch = 166,
            },
            .flags = { .use_dma2d = true },
        };
            config BSP_JC4880P443C_LCD_H_RES
                int "Horizontal resolution"
                default 480
                help
                    Horizontal resolution of the LCD panel in pixels.
    
            config BSP_JC4880P443C_LCD_V_RES
                int "Vertical resolution"
                default 800
                help
                    Vertical resolution of the LCD panel in pixels.
    
            config BSP_JC4880P443C_DSI_LANE_BITRATE
                int "DSI lane bitrate (Mbps)"
                default 500
                range 200 1000
                help
                    MIPI DSI lane bitrate in Mbps. Higher values support faster refresh rates
                    but may cause signal integrity issues. 500 Mbps is recommended for this panel.
    
            config BSP_JC4880P443C_DPI_CLOCK_MHZ
                int "DPI clock frequency (MHz)"
                default 34
                range 20 100
                help
                    DPI (Display Pixel Interface) clock frequency in MHz.
                    This affects the refresh rate. 34 MHz gives ~60Hz refresh rate.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions