Kaynağa Gözat

1、增加 BOE_EDP_GV238QUB_N12 panel type

2、目前,BOE_EDP_GV238QUB_N12 和 BOE_VBO_DV430QUM_N10_UHD60这两种屏幕调试亮度控制需要反转电平
3、BOE_EDP_GV238QUB_N12 和 BOE_VBO_DV430QUM_N10_UHD60 用同一组PWM参数来调整屏幕亮度
robbin 1 gün önce
ebeveyn
işleme
05d196e526

+ 1 - 1
out/.config

@@ -5,7 +5,7 @@ export CONFIG_PRINT ?= yes
 export CONFIG_HARD_FLOAT ?= yes
 export CONFIG_USER_PANEL_RESOLUTION_TYPE ?= PANEL_RESOLUTION_TYPE_UHD
 export CONFIG_USER_PANEL_TYPE ?= PANEL_TYPE_EDPTX
-export CONFIG_USER_PANEL_MODEL ?= BOE_EDP_MV238QUM_N20_UHD60
+export CONFIG_USER_PANEL_MODEL ?= BOE_EDP_GV238QUB_N12
 export CONFIG_USER_PANEL_SEQUENCE ?= PANEL_SEQUENCE_OFF
 export CONFIG_USER_AMBLIGHT ?= AMBLIGHT_ON
 export CONFIG_USER_USB_OTA ?= USB_OTA_OFF

+ 1 - 1
out/.config.tmp

@@ -1,6 +1,6 @@
 CONFIG_USER_PANEL_RESOLUTION_TYPE ?= PANEL_RESOLUTION_TYPE_UHD
 CONFIG_USER_PANEL_TYPE ?= PANEL_TYPE_EDPTX
-CONFIG_USER_PANEL_MODEL ?= BOE_EDP_MV238QUM_N20_UHD60
+CONFIG_USER_PANEL_MODEL ?= BOE_EDP_GV238QUB_N12
 CONFIG_USER_PANEL_SEQUENCE ?= PANEL_SEQUENCE_OFF
 CONFIG_USER_AMBLIGHT ?= AMBLIGHT_ON
 CONFIG_USER_USB_OTA ?= USB_OTA_OFF

+ 3 - 1
sdk/MiddleWare/ChannelManager/Video/src/hv_mw_PQ.c

@@ -993,7 +993,9 @@ VOID Hv_Mw_PQ_SetBrightness(USHORT16 usBrightness)
     UINT32 uiLow = 0; 
     UINT32 uiHigh = 0; 
 
-    //usBrightness = PQ_BRIGHTNESS_DRV_FOR_OSD_SET_END - usBrightness;  //亮度控制需要反转电平时可打开
+#if (defined CONFIG_USER_BOE_EDP_GV238QUB_N12 || defined CONFIG_USER_BOE_VBO_DV430QUM_N10_UHD60)
+    usBrightness = PQ_BRIGHTNESS_DRV_FOR_OSD_SET_END - usBrightness;  //亮度控制需要反转电平时可打开
+#endif
 
     uiHigh = usBrightness;
     uiLow = HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_TOTAL - uiHigh;

+ 2 - 2
user/hiview/ht7315_product_uhd/BoardConfig.h

@@ -110,9 +110,9 @@
 
 #define HV_BOARD_CONFIG_HDMI_HPD_SOURCE_5V                  1
 #if (HV_BOARD_CONFIG_HDMI_HPD_SOURCE_5V == 1)
-#define HV_BOARD_CONFIG_HDMI_HPD_5V                        1
+#define HV_BOARD_CONFIG_HDMI_HPD_5V                         1
 #else
-#define HV_BOARD_CONFIG_HDMI_HPD_5V                        0
+#define HV_BOARD_CONFIG_HDMI_HPD_5V                         0
 #endif
 
 #define CABLE_DETECT_WITH_GROUND_VOL                        0

+ 17 - 4
user/hiview/ht7315_product_uhd/DataBase/inc/hv_comm_PqDef.h

@@ -28,10 +28,23 @@
 #define PQ_BRIGHTNESS_OSD_MIDDLE   (80)   //OSD界面默认值
 #define PQ_BRIGHTNESS_OSD_END      (100)  //OSD界面最大值
 
-#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_START    (2460)     //OSD界面对应的PWM的最小值
-#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_MIDDLE   (4412)  //OSD界面对应的PWM的默认值
-#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_END      (4900)  //OSD界面对应的PWM的最大值
-#define PQ_BRIGHTNESS_DRV_FOR_HDR_MAX          (4900)
+#if (defined CONFIG_USER_BOE_EDP_GV238QUB_N12 || defined CONFIG_USER_BOE_VBO_DV430QUM_N10_UHD60)
+#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_START    (0)     //OSD界面对应的PWM的最小值
+#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_MIDDLE   (3446)  //OSD界面对应的PWM的默认值
+#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_END      (4308)  //OSD界面对应的PWM的最大值
+#define PQ_BRIGHTNESS_DRV_FOR_HDR_MAX          (4308)
+//#elif (defined CONFIG_USER_BOE_EDP_MV270QUM_N60_UHD60)
+//#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_START    (2460)
+//#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_MIDDLE   (4412)
+//#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_END      (4900)
+//#define PQ_BRIGHTNESS_DRV_FOR_HDR_MAX          (4900)
+#else
+#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_START    (0)     //OSD界面对应的PWM的最小值
+#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_MIDDLE   (3446)  //OSD界面对应的PWM的默认值
+#define PQ_BRIGHTNESS_DRV_FOR_OSD_SET_END      (4308)  //OSD界面对应的PWM的最大值
+#define PQ_BRIGHTNESS_DRV_FOR_HDR_MAX          (4308)
+#endif
+
 #define PQ_BRIGHTNESS_FOR_PAT1     (1691)
 #define PQ_BRIGHTNESS_FOR_PAT2     (237)
 #define PQ_BRIGHTNESS_FOR_PAT3     (237)

+ 103 - 0
user/hiview/ht7315_product_uhd/Panel/inc/BOE_EDP_GV238QUB_N12.h

@@ -0,0 +1,103 @@
+/**
+ * @file BOE_EDP_GV238QUB_N12.h
+ * @brief Header file of Panel Param.
+ *
+ * @verbatim
+ * ==============================================================================
+ *                        ##### How to use #####
+ * ==============================================================================
+ *
+ *
+ @ endverbatim
+ *
+ * @author Wingcool Software Team
+ * @version 0.0.1
+ * @date 2025-10-14
+ */
+
+#ifndef _BOE_EDP_GV238QUB_N12_H_
+#define _BOE_EDP_GV238QUB_N12_H_
+
+/*Panel common*/
+#define PANEL_NAME                      "BOE_EDP_GV238QUB_N12"
+
+/* QHD attribute */
+#define PANEL_H_TOTAL_TYP                  4000
+#define PANEL_H_TOTAL_MAX                  4150
+#define PANEL_H_TOTAL_MIN                  3900
+#define PANEL_V_TOTAL_TYP                  2222
+#define PANEL_V_TOTAL_MAX                  2320
+#define PANEL_V_TOTAL_MIN                  2200
+#define PANEL_H_ACTIVE                     3840
+#define PANEL_V_ACTIVE                     2160
+#define PANEL_FRAME_RATE_TYP               60
+#define PANEL_FRAME_RATE_MAX               62
+#define PANEL_FRAME_RATE_MIN               50
+#define PANEL_PIXEL_CLOCK_TYP              533280   /*KHZ, PANEL_H_TOTAL_TYP x PANEL_V_TOTAL_TYP x PANEL_FRAME_RATE_TYP*/
+#define PANEL_PIXEL_CLOCK_MAX              596936   /*KHZ*/
+#define PANEL_PIXEL_CLOCK_MIN              429000   /*KHZ*/
+#define PANEL_H_SYNC_WIDTH                 32 
+#define PANEL_V_SYNC_WIDTH                 5
+#define PANEL_H_SYNC_BACK_PORCH            240 //  288
+#define PANEL_V_SYNC_BACK_PORCH            42 
+
+#define PANEL_COLOR_DEPTH                  10
+#define PANEL_LANE_NUM                     4
+#define PANEL_PORT_NUM                     1
+
+/* EDP attribute */
+#define PANEL_LANE_RATE                    20  /*for EDP(6:1.62Gbps 10:2.7Gbps 20 5.4Gbps)*/
+
+/* Process */
+#define PANEL_POWER_ON_TIME                 800                         /*Panel上电*/
+#define PANEL_DATA_ON_TIME                  200                         /*打开data*/
+#define PANEL_BLK_ON_TIME                   100                         /*开背光*/
+#define PANEL_BLK_OFF_TIME                  5                           /*关闭data*/
+#define PANEL_DATA_OF_TIME                  10                          /*关闭背光*/
+#define PANEL_POWER_OFF_TIME                10                          /*Panel下电*/
+#define PANEL_KTX_PLL_LOCK_TIME             210                         /*KTX PLL LOCK*/
+#define PANEL_IDLE_PATTERN_TIME             0                           /*发送idle pattern*/
+
+/* SSC */
+#define PANEL_SSC_EN                        0
+#define PANEL_SSC_FREQ                      50       /*0-100(k)*/
+#define PANEL_SSC_FRAC                      2        /*0-30(0%-3%)*/
+
+#define PANEL_EDP_HPD0_SOFT_MODE            0  /*软件模式(强制HPD模式), 2表示软件模式开并拉低,3表示软件模式开并拉高,0表示硬件模式*/
+#define PANEL_EDP_HPD1_SOFT_MODE            0  /*软件模式(强制HPD模式), 2表示软件模式开并拉低,3表示软件模式开并拉高,0表示硬件模式*/
+
+/* PHY MUX attribute */
+#define PANEL_EDP_AUX0_PN_SWAP_EN           0
+#define PANEL_EDP_AUX1_PN_SWAP_EN           0
+
+#define PANEL_PHY0_MUX_EN                   0
+#define PANEL_PHY0_0_MUX_SEL                4
+#define PANEL_PHY0_1_MUX_SEL                5
+#define PANEL_PHY0_2_MUX_SEL                6
+#define PANEL_PHY0_3_MUX_SEL                7
+#define PANEL_PHY0_LANE0_PN_SWAP            1
+#define PANEL_PHY0_LANE1_PN_SWAP            1
+#define PANEL_PHY0_LANE2_PN_SWAP            1
+#define PANEL_PHY0_LANE3_PN_SWAP            1
+
+#define PANEL_PHY1_MUX_EN                   1
+#define PANEL_PHY1_0_MUX_SEL                0
+#define PANEL_PHY1_1_MUX_SEL                1
+#define PANEL_PHY1_2_MUX_SEL                2
+#define PANEL_PHY1_3_MUX_SEL                3
+#define PANEL_PHY1_LANE0_PN_SWAP            1
+#define PANEL_PHY1_LANE1_PN_SWAP            1
+#define PANEL_PHY1_LANE2_PN_SWAP            1
+#define PANEL_PHY1_LANE3_PN_SWAP            1
+
+#define PANEL_PHY2_MUX_EN                   0
+#define PANEL_PHY2_0_MUX_SEL                0
+#define PANEL_PHY2_1_MUX_SEL                1
+#define PANEL_PHY2_2_MUX_SEL                2
+#define PANEL_PHY2_3_MUX_SEL                3
+#define PANEL_PHY2_LANE0_PN_SWAP            0
+#define PANEL_PHY2_LANE1_PN_SWAP            0
+#define PANEL_PHY2_LANE2_PN_SWAP            0
+#define PANEL_PHY2_LANE3_PN_SWAP            0
+
+#endif

+ 4 - 0
user/hiview/ht7315_product_uhd/Panel/inc/PanelConfig.h

@@ -54,6 +54,10 @@
 #include "BOE_EDP_ME270QUM_NF2_P0_UD60.h"
 #define HV_PROJECT_CONFIG_TCON_POWER_CONTROL          HV_CONFIG_OFF
 #endif
+#ifdef  CONFIG_USER_BOE_EDP_GV238QUB_N12
+#include "BOE_EDP_GV238QUB_N12.h"
+#define HV_PROJECT_CONFIG_TCON_POWER_CONTROL          HV_CONFIG_OFF
+#endif
 
 
 //==vbo===:

+ 16 - 6
user/hiview/ht7315_product_uhd/ProjectConfig.h

@@ -189,9 +189,19 @@
 #define HV_PROJECT_CONFIG_BACKLIGHT_ENABLE                   1       //背光开
 #define HV_PROJECT_CONFIG_BACKLIGHT_DISABLE                  0       //背光关
 /* 输出固定高频PWM所需的固定参数,根据要设置的频率查表得到此值 */
-#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_TOTAL          4900
-#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_MULT           1
+#if (defined CONFIG_USER_BOE_EDP_GV238QUB_N12 || defined CONFIG_USER_BOE_VBO_DV430QUM_N10_UHD60)
+#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_TOTAL          4308
+#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_MULT           0
 #define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_DUTY           90
+//#elif (defined CONFIG_USER_BOE_EDP_MV270QUM_N60_UHD60)
+//#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_TOTAL          4900
+//#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_MULT           1
+//#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_DUTY           90
+#else
+#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_TOTAL          4308
+#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_MULT           0
+#define HV_PROJECT_CONFIG_MPRT_HIGHT_FREQ_PWM_DUTY           90
+#endif
 
 /* 通过原理图查看pinshare,选择合适的port输出波形 */
 #define HV_PROJECT_CONFIG_MPRT_PORT                          2       //GPIO12/PWM2/PIN93控制
@@ -216,10 +226,10 @@
 /* Device Info Define*/
 #define HV_PROJECT_CONFIG_FACTORY_MONITOR_MODE               "HIVIEW 27G5F UHD"
 #define HV_PROJECT_CONFIG_FACTORY_SCALER_MODE                "HT7315"
-#define HV_PROJECT_CONFIG_FACTORY_FW_VERSION                 "1.2.0"
-#define HV_PROJECT_CONFIG_FACTORY_FW_CHANGE_DATE             "20250722"
-#define HV_PROJECT_CONFIG_FACTORY_PANEL_TYPE                 "DV430QUM_N10_UHD60"
-#define HV_PROJECT_CONFIG_FACTORY_PANEL_SIZE                 "43.0"
+#define HV_PROJECT_CONFIG_FACTORY_FW_VERSION                 "1.2.1"
+#define HV_PROJECT_CONFIG_FACTORY_FW_CHANGE_DATE             "20251015"
+#define HV_PROJECT_CONFIG_FACTORY_PANEL_TYPE                 "BOE_EDP_GV238QUB_N12"
+#define HV_PROJECT_CONFIG_FACTORY_PANEL_SIZE                 "23.8"
 
 #define HV_PROJECT_CONFIG_SW_MAJOR_VER                       0x1
 #define HV_PROJECT_CONFIG_SW_MINOR_VER                       0x3

+ 2 - 1
user/hiview/ht7315_product_uhd/property.config

@@ -23,6 +23,7 @@ BOE_VBO_UV550QUB_N70_UHD60
 BOE_VBO_DV650QUM_N00_UHD60
 BOE_VBO_UF860QUB_N10_UHD60
 BOE_EDP_ME270QUM_NF2_P0_UD60
+BOE_EDP_GV238QUB_N12
 
 CIL_VBO_M280DGJ_Q02_UHD60
 
@@ -37,7 +38,7 @@ INNO_VBO_M280DGJ_L30_UHD60
 
 LG_EDP_LM270WR8_SSC1_UHD60
 */
-CONFIG_USER_PANEL_MODEL ?= BOE_EDP_MV238QUM_N20_UHD60
+CONFIG_USER_PANEL_MODEL ?= BOE_EDP_GV238QUB_N12
 /*
 Panel Power On Sequence
 PANEL_SEQUENCE_ON