Skip to contentSkip to conversation

drm/display: Add missing OLED Vesa brightnesses definitions

PATCH In review Rodrigo Siqueira 2 participants 2 messages Apr 12, 2023 – Apr 19, 2023 DRM drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/display: Add missing OLED Vesa brightnesses definitions

This commit adds missing luminance control registers to enable a more standard way (VESA) to deal with eDP luminance control.

Cc Anthony Koo <[email protected]>
Cc Iswara Negulendran <[email protected]>
Cc Felipe Clark <[email protected]>
Cc Harry Wentland <[email protected]>
---
 include/drm/display/drm_dp.h | 3 +++
 1 file changed, 3 insertions(+)
include/drm/display/drm_dp.h +3 -0
index ed10e6b6f99d..7ad749423a48 100644
@@ -973,6 +973,7 @@
 
 #define DP_EDP_GENERAL_CAP_2		    0x703
 # define DP_EDP_OVERDRIVE_ENGINE_ENABLED		(1 << 0)
+# define DP_EDP_PANEL_LUMINANCE_CONTROL_CAPABLE		(1<<4)
 
 #define DP_EDP_GENERAL_CAP_3		    0x704    /* eDP 1.4 */
 # define DP_EDP_X_REGION_CAP_MASK			(0xf << 0)
@@ -998,6 +999,7 @@
 # define DP_EDP_DYNAMIC_BACKLIGHT_ENABLE		(1 << 4)
 # define DP_EDP_REGIONAL_BACKLIGHT_ENABLE		(1 << 5)
 # define DP_EDP_UPDATE_REGION_BRIGHTNESS		(1 << 6) /* eDP 1.4 */
+# define DP_EDP_PANEL_LUMINANCE_CONTROL_ENABLE		(1<<7)
 
 #define DP_EDP_BACKLIGHT_BRIGHTNESS_MSB     0x722
 #define DP_EDP_BACKLIGHT_BRIGHTNESS_LSB     0x723
@@ -1022,6 +1024,7 @@
 
 #define DP_EDP_DBC_MINIMUM_BRIGHTNESS_SET   0x732
 #define DP_EDP_DBC_MAXIMUM_BRIGHTNESS_SET   0x733
+#define DP_EDP_PANEL_TARGET_LUMINANCE_VALUE 0x734
 
 #define DP_EDP_REGIONAL_BACKLIGHT_BASE      0x740    /* eDP 1.4 */
 #define DP_EDP_REGIONAL_BACKLIGHT_0	    0x741    /* eDP 1.4 */
Signature · 1 line
2.39.2
Reviewed-by on v2 1/1
#1 lore raw
Quoted 8 lines · Rodrigo Siqueira

This commit adds missing luminance control registers to enable a more standard way (VESA) to deal with eDP luminance control.

Cc Anthony Koo <[email protected]>
Cc Iswara Negulendran <[email protected]>
Cc Felipe Clark <[email protected]>
Cc Harry Wentland <[email protected]>

Harry

Quoted 32 lines
---
 include/drm/display/drm_dp.h | 3 +++
 1 file changed, 3 insertions(+)
include/drm/display/drm_dp.h +3 -0
index ed10e6b6f99d..7ad749423a48 100644
@@ -973,6 +973,7 @@
 
 #define DP_EDP_GENERAL_CAP_2		    0x703
 # define DP_EDP_OVERDRIVE_ENGINE_ENABLED		(1 << 0)
+# define DP_EDP_PANEL_LUMINANCE_CONTROL_CAPABLE		(1<<4)
 
 #define DP_EDP_GENERAL_CAP_3		    0x704    /* eDP 1.4 */
 # define DP_EDP_X_REGION_CAP_MASK			(0xf << 0)
@@ -998,6 +999,7 @@
 # define DP_EDP_DYNAMIC_BACKLIGHT_ENABLE		(1 << 4)
 # define DP_EDP_REGIONAL_BACKLIGHT_ENABLE		(1 << 5)
 # define DP_EDP_UPDATE_REGION_BRIGHTNESS		(1 << 6) /* eDP 1.4 */
+# define DP_EDP_PANEL_LUMINANCE_CONTROL_ENABLE		(1<<7)
 
 #define DP_EDP_BACKLIGHT_BRIGHTNESS_MSB     0x722
 #define DP_EDP_BACKLIGHT_BRIGHTNESS_LSB     0x723
@@ -1022,6 +1024,7 @@
 
 #define DP_EDP_DBC_MINIMUM_BRIGHTNESS_SET   0x732
 #define DP_EDP_DBC_MAXIMUM_BRIGHTNESS_SET   0x733
+#define DP_EDP_PANEL_TARGET_LUMINANCE_VALUE 0x734
 
 #define DP_EDP_REGIONAL_BACKLIGHT_BASE      0x740    /* eDP 1.4 */
 #define DP_EDP_REGIONAL_BACKLIGHT_0	    0x741    /* eDP 1.4 */