1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef __DRIVERS_I2C_RTD2132_CHIP_H__ 4 #define __DRIVERS_I2C_RTD2132_CHIP_H__ 5 6 struct drivers_i2c_rtd2132_config { 7 /* Panel Power Sequencing. All units in ms. */ 8 u16 t1; /* Delay from panel Vcc enable to LVDS output enable. */ 9 u16 t2; /* Delay from LVDS output enable to PWM output enable. */ 10 u16 t3; /* Delay from PWM output enable to backlight output enable. */ 11 u16 t4; /* Delay from backlight output disable to PWM output disable. */ 12 u16 t5; /* Delay from PWM output disable to LVDS output disable. */ 13 u16 t6; /* Delay from LVDS output disable to panel Vcc disable. */ 14 u16 t7; /* Delay between two panel power on/off sequence. */ 15 16 /* 17 * LVDS swap. 18 * 0x00 - Normal 19 * 0x01 - Mirror 20 * 0x02 - P/N 21 * 0x03 - Mirror + P/N 22 * 0x04 - R/L 23 * 24 * Dual Support or in bit 7: 25 * 0x80 - Dual Swap 26 */ 27 u8 lvds_swap; 28 29 /* 30 * LVDS Spread Spectrum Clock 31 * 0x00 = DISABLED 32 * 0x05 = 0.5% 33 * 0x10 = 1.0% 34 * 0x15 = 1.5% 35 */ 36 u8 sscg_percent; 37 }; 38 39 #endif /* __DRIVERS_I2C_RTD2132_CHIP_H__ */ 40