3 #ifndef _PANEL_JDI_LPM102A188A_H_
4 #define _PANEL_JDI_LPM102A188A_H_
6 #define LP8557_MAX_BRIGHTNESS 0xFFF;
8 #define LP8557_COMMAND 0x00
9 #define LP8557_COMMAND_ON (1 << 0)
11 #define LP8557_BRIGHTNESS_LOW 0x03
12 #define LP8557_BRIGHTNESS_LOW_MASK(x) (((x) & 0xF) << 4)
14 #define LP8557_BRIGHTNESS_HIGH 0x04
15 #define LP8557_BRIGHTNESS_HIGH_MASK(x) (((x) & 0xFF0) >> 4)
24 #define LP8557_CONFIG 0x10
25 #define LP8557_CONFIG_BRTMODE(x) (((x) & 0x3) << 0)
26 #define LP8557_CONFIG_AUTO_DETECT_LED (1 << 2)
27 #define LP8557_CONFIG_PWM_STANDBY (1 << 7)
40 #define LP8557_CURRENT 0x11
41 #define LP8557_CURRENT_MAXCURR(x) (((x) & 0x7) << 0)
42 #define LP8557_CURRENT_ISET (1 << 7)
55 #define LP8557_PGEN 0x12
56 #define LP8557_PGEN_FREQ(x) (((x) & 0x7) << 0)
57 #define LP8557_PGEN_MAGIC (5 << 3)
58 #define LP8557_PGEN_FSET (1 << 7)
70 #define LP8557_BOOST 0x13
71 #define LP8557_BOOST_FREQ(x) (((x) & 0x1) << 0)
72 #define LP8557_BOOST_BCOMP(x) (((x) & 0x1) << 1)
73 #define LP8557_BOOST_BCSET (1 << 6)
74 #define LP8557_BOOST_BFSET (1 << 7)
76 #define LP8557_LED_ENABLE 0x14
77 #define LP8557_LED_ENABLE_SINKS(x) (((x) & 0x3F) << 0)
78 #define LP8557_LED_ENABLE_MAGIC (2 << 6)
94 #define LP8557_STEP 0x15
95 #define LP8557_STEP_RAMP(x) (((x) & 0x3) << 0)
96 #define LP8557_STEP_SMOOTHING(x) (((x) & 0x3) << 6)
@ LP8557_PGEN_FREQ_4_9_KHZ
@ LP8557_PGEN_FREQ_9_8_KHZ
@ LP8557_PGEN_FREQ_24_4_KHZ
@ LP8557_PGEN_FREQ_34_2_KHZ
@ LP8557_PGEN_FREQ_29_3_KHZ
@ LP8557_PGEN_FREQ_14_6_KHZ
@ LP8557_PGEN_FREQ_39_1_KHZ
@ LP8557_PGEN_FREQ_19_5_KHZ
struct panel_jdi * panel_jdi_dsi_probe(struct mipi_dsi_device *dsi)
lp8557_config_brightness_mode
@ LP8557_CONFIG_BRTMODE_REG
@ LP8557_CONFIG_BRTMODE_MAX
@ LP8557_CONFIG_BRTMODE_PWM_REG_SHAPE_BRIGHTNESS
@ LP8557_CONFIG_BRTMODE_PWM_REG_SHAPE_PWM
@ LP8557_CONFIG_BRTMODE_PWM
@ LP8557_BOOST_FREQ_500_KHZ
@ LP8557_BOOST_FREQ_1_MHZ
@ LP8557_STEP_RAMP_100_MS
@ LP8557_STEP_RAMP_200_MS
int panel_jdi_prepare(struct panel_jdi *jdi)
@ LP8557_BOOST_BCOMP_OPTION_1
@ LP8557_BOOST_BCOMP_OPTION_0
@ LP8557_STEP_SMOOTHING_MEDIUM
@ LP8557_STEP_SMOOTHING_MAX
@ LP8557_STEP_SMOOTHING_HEAVY
@ LP8557_STEP_SMOOTHING_LIGHT
@ LP8557_STEP_SMOOTHING_NONE
mipi_dsi_device - DSI peripheral device
struct mipi_dsi_device * dsi
const struct soc_nvidia_tegra210_config * mode