/Linux-v6.6/drivers/video/backlight/ |
D | corgi_lcd.c | 3 * LCD/Backlight Driver for Sharp Zaurus Handhelds (various models) 10 * Converted to SPI device based LCD/Backlight device driver 20 #include <linux/lcd.h> 99 static int corgi_ssp_lcdtg_send(struct corgi_lcd *lcd, int reg, uint8_t val); 110 static void lcdtg_ssp_i2c_send(struct corgi_lcd *lcd, uint8_t data) in lcdtg_ssp_i2c_send() argument 112 corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, data); in lcdtg_ssp_i2c_send() 116 static void lcdtg_i2c_send_bit(struct corgi_lcd *lcd, uint8_t data) in lcdtg_i2c_send_bit() argument 118 lcdtg_ssp_i2c_send(lcd, data); in lcdtg_i2c_send_bit() 119 lcdtg_ssp_i2c_send(lcd, data | POWER0_COM_DCLK); in lcdtg_i2c_send_bit() 120 lcdtg_ssp_i2c_send(lcd, data); in lcdtg_i2c_send_bit() [all …]
|
D | ltv350qv.c | 3 * Power control for Samsung LTV350QV Quarter VGA LCD Panel 11 #include <linux/lcd.h> 36 static int ltv350qv_write_reg(struct ltv350qv *lcd, u8 reg, u16 val) in ltv350qv_write_reg() argument 50 lcd->buffer[0] = LTV_OPC_INDEX; in ltv350qv_write_reg() 51 lcd->buffer[1] = 0x00; in ltv350qv_write_reg() 52 lcd->buffer[2] = reg & 0x7f; in ltv350qv_write_reg() 53 index_xfer.tx_buf = lcd->buffer; in ltv350qv_write_reg() 57 lcd->buffer[4] = LTV_OPC_DATA; in ltv350qv_write_reg() 58 lcd->buffer[5] = val >> 8; in ltv350qv_write_reg() 59 lcd->buffer[6] = val; in ltv350qv_write_reg() [all …]
|
D | lms501kf03.c | 3 * lms501kf03 TFT LCD panel driver. 12 #include <linux/lcd.h> 103 static int lms501kf03_spi_write_byte(struct lms501kf03 *lcd, int addr, int data) in lms501kf03_spi_write_byte() argument 118 return spi_sync(lcd->spi, &msg); in lms501kf03_spi_write_byte() 121 static int lms501kf03_spi_write(struct lms501kf03 *lcd, unsigned char address, in lms501kf03_spi_write() argument 124 return lms501kf03_spi_write_byte(lcd, address, command); in lms501kf03_spi_write() 127 static int lms501kf03_panel_send_sequence(struct lms501kf03 *lcd, in lms501kf03_panel_send_sequence() argument 135 ret = lms501kf03_spi_write(lcd, COMMAND_ONLY, wbuf[i]); in lms501kf03_panel_send_sequence() 137 ret = lms501kf03_spi_write(lcd, DATA_ONLY, wbuf[i]); in lms501kf03_panel_send_sequence() 146 static int lms501kf03_ldi_init(struct lms501kf03 *lcd) in lms501kf03_ldi_init() argument [all …]
|
D | ili9320.c | 4 * ILI9320 LCD controller driver core. 15 #include <linux/lcd.h> 75 static void ili9320_reset(struct ili9320 *lcd) in ili9320_reset() argument 77 struct ili9320_platdata *cfg = lcd->platdata; in ili9320_reset() 89 static inline int ili9320_init_chip(struct ili9320 *lcd) in ili9320_init_chip() argument 93 ili9320_reset(lcd); in ili9320_init_chip() 95 ret = lcd->client->init(lcd, lcd->platdata); in ili9320_init_chip() 97 dev_err(lcd->dev, "failed to initialise display\n"); in ili9320_init_chip() 101 lcd->initialised = 1; in ili9320_init_chip() 105 static inline int ili9320_power_on(struct ili9320 *lcd) in ili9320_power_on() argument [all …]
|
D | ams369fg06.c | 3 * ams369fg06 AMOLED LCD panel driver. 14 #include <linux/lcd.h> 158 static int ams369fg06_spi_write_byte(struct ams369fg06 *lcd, int addr, int data) in ams369fg06_spi_write_byte() argument 173 return spi_sync(lcd->spi, &msg); in ams369fg06_spi_write_byte() 176 static int ams369fg06_spi_write(struct ams369fg06 *lcd, unsigned char address, in ams369fg06_spi_write() argument 182 ret = ams369fg06_spi_write_byte(lcd, 0x70, address); in ams369fg06_spi_write() 184 ret = ams369fg06_spi_write_byte(lcd, 0x72, command); in ams369fg06_spi_write() 189 static int ams369fg06_panel_send_sequence(struct ams369fg06 *lcd, in ams369fg06_panel_send_sequence() argument 196 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); in ams369fg06_panel_send_sequence() 208 static int _ams369fg06_gamma_ctl(struct ams369fg06 *lcd, in _ams369fg06_gamma_ctl() argument [all …]
|
D | tdo24m.c | 3 * tdo24m - SPI-based drivers for Toppoly TDO24M series LCD panels 16 #include <linux/lcd.h> 33 int (*adj_mode)(struct tdo24m *lcd, int mode); 175 static int tdo24m_writes(struct tdo24m *lcd, const uint32_t *array) in tdo24m_writes() argument 177 struct spi_transfer *x = &lcd->xfer; in tdo24m_writes() 183 if (!lcd->color_invert && *p == CMD0(0x21)) in tdo24m_writes() 191 lcd->buf[0] = (data >> 8) & 0xff; in tdo24m_writes() 192 lcd->buf[1] = data & 0xff; in tdo24m_writes() 195 lcd->buf[0] = (data >> 16) & 0xff; in tdo24m_writes() 196 lcd->buf[1] = (data >> 8) & 0xff; in tdo24m_writes() [all …]
|
D | vgg2432a4.c | 4 * VGG2432A4 (ILI9320) LCD controller driver. 15 #include <linux/lcd.h> 108 static int vgg2432a4_lcd_init(struct ili9320 *lcd, in vgg2432a4_lcd_init() argument 115 ret = ili9320_write(lcd, 0x00e5, 0x8000); in vgg2432a4_lcd_init() 120 ret = ili9320_write(lcd, ILI9320_OSCILATION, ILI9320_OSCILATION_OSC); in vgg2432a4_lcd_init() 127 ret = ili9320_write_regs(lcd, vgg_init0, ARRAY_SIZE(vgg_init0)); in vgg2432a4_lcd_init() 131 ili9320_write(lcd, ILI9320_DISPLAY2, cfg->display2); in vgg2432a4_lcd_init() 132 ili9320_write(lcd, ILI9320_DISPLAY3, cfg->display3); in vgg2432a4_lcd_init() 133 ili9320_write(lcd, ILI9320_DISPLAY4, cfg->display4); in vgg2432a4_lcd_init() 135 ili9320_write(lcd, ILI9320_RGB_IF1, cfg->rgb_if1); in vgg2432a4_lcd_init() [all …]
|
D | Kconfig | 3 # Backlight & LCD drivers configuration 6 menu "Backlight & LCD device support" 9 # LCD 12 tristate "Lowlevel LCD controls" 14 This framework adds support for low-level control of LCD. 15 Some framebuffer devices connect to platform-specific LCD modules 17 (contrast and applying power to the LCD (not to the backlight!)). 19 To have support for your specific LCD panel you will have to 25 tristate "LCD Panel support for SHARP corgi/spitz model" 28 Say y here to support the LCD panels usually found on SHARP [all …]
|
D | platform_lcd.c | 7 * Generic platform-device LCD power control interface. 14 #include <linux/lcd.h> 21 struct lcd_device *lcd; member 28 static inline struct platform_lcd *to_our_lcd(struct lcd_device *lcd) in to_our_lcd() argument 30 return lcd_get_data(lcd); in to_our_lcd() 33 static int platform_lcd_get_power(struct lcd_device *lcd) in platform_lcd_get_power() argument 35 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_get_power() 40 static int platform_lcd_set_power(struct lcd_device *lcd, int power) in platform_lcd_set_power() argument 42 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_set_power() 54 static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info) in platform_lcd_match() argument [all …]
|
/Linux-v6.6/drivers/auxdisplay/ |
D | charlcd.c | 3 * Character LCD driver for Linux 27 #define LCD_ESCAPE_LEN 24 /* Max chars for LCD escape command */ 31 struct charlcd lcd; member 39 /* contains the LCD config state */ 51 #define charlcd_to_priv(p) container_of(p, struct charlcd_priv, lcd) 57 void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on) in charlcd_backlight() argument 59 struct charlcd_priv *priv = charlcd_to_priv(lcd); in charlcd_backlight() 61 if (!lcd->ops->backlight) in charlcd_backlight() 66 lcd->ops->backlight(lcd, on); in charlcd_backlight() 81 priv->lcd.ops->backlight(&priv->lcd, CHARLCD_OFF); in charlcd_bl_off() [all …]
|
D | arm-charlcd.c | 3 * Driver for the on-board character LCD found on some ARM reference boards 4 * This is basically an Hitachi HD44780 LCD with a custom IP block to drive it 63 * @complete: completion structure for the last LCD command 78 struct charlcd *lcd = data; in charlcd_interrupt() local 81 status = readl(lcd->virtbase + CHAR_STAT) & 0x01; in charlcd_interrupt() 83 writel(CHAR_RAW_CLEAR, lcd->virtbase + CHAR_RAW); in charlcd_interrupt() 85 complete(&lcd->complete); in charlcd_interrupt() 87 dev_info(lcd->dev, "Spurious IRQ (%02x)\n", status); in charlcd_interrupt() 92 static void charlcd_wait_complete_irq(struct charlcd *lcd) in charlcd_wait_complete_irq() argument 96 ret = wait_for_completion_interruptible_timeout(&lcd->complete, in charlcd_wait_complete_irq() [all …]
|
D | Kconfig | 20 tristate "Character LCD core support" if COMPILE_TEST 22 This is the base system for character-based LCD displays. 25 This is some character LCD core interface that multiple drivers can 35 tristate "Common functions for HD44780 (and compatibles) LCD displays" if COMPILE_TEST 45 tristate "HD44780 Character LCD support" 50 The LCD is accessible through the /dev/lcd char device (10, 156). 56 tristate "KS0108 LCD Controller" 60 If you have a LCD controlled by one or more KS0108 62 driver for your LCD. 74 hex "Parallel port where the LCD is connected" [all …]
|
D | hd44780_common.c | 9 /* LCD commands */ 39 int hd44780_common_print(struct charlcd *lcd, int c) in hd44780_common_print() argument 41 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_print() 43 if (lcd->addr.x < hdc->bwidth) { in hd44780_common_print() 52 int hd44780_common_gotoxy(struct charlcd *lcd, unsigned int x, unsigned int y) in hd44780_common_gotoxy() argument 54 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_gotoxy() 71 int hd44780_common_home(struct charlcd *lcd) in hd44780_common_home() argument 73 return hd44780_common_gotoxy(lcd, 0, 0); in hd44780_common_home() 78 int hd44780_common_clear_display(struct charlcd *lcd) in hd44780_common_clear_display() argument 80 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_clear_display() [all …]
|
D | charlcd.h | 3 * Character LCD driver for Linux 46 /* Contains the LCD X and Y offset */ 79 void (*backlight)(struct charlcd *lcd, enum charlcd_onoff on); 80 int (*print)(struct charlcd *lcd, int c); 81 int (*gotoxy)(struct charlcd *lcd, unsigned int x, unsigned int y); 82 int (*home)(struct charlcd *lcd); 83 int (*clear_display)(struct charlcd *lcd); 84 int (*init_display)(struct charlcd *lcd); 85 int (*shift_cursor)(struct charlcd *lcd, enum charlcd_shift_dir dir); 86 int (*shift_display)(struct charlcd *lcd, enum charlcd_shift_dir dir); [all …]
|
D | lcd2s.c | 97 static int lcd2s_print(struct charlcd *lcd, int c) in lcd2s_print() argument 99 struct lcd2s_data *lcd2s = lcd->drvdata; in lcd2s_print() 106 static int lcd2s_gotoxy(struct charlcd *lcd, unsigned int x, unsigned int y) in lcd2s_gotoxy() argument 108 struct lcd2s_data *lcd2s = lcd->drvdata; in lcd2s_gotoxy() 116 static int lcd2s_home(struct charlcd *lcd) in lcd2s_home() argument 118 struct lcd2s_data *lcd2s = lcd->drvdata; in lcd2s_home() 124 static int lcd2s_init_display(struct charlcd *lcd) in lcd2s_init_display() argument 126 struct lcd2s_data *lcd2s = lcd->drvdata; in lcd2s_init_display() 139 static int lcd2s_shift_cursor(struct charlcd *lcd, enum charlcd_shift_dir dir) in lcd2s_shift_cursor() argument 141 struct lcd2s_data *lcd2s = lcd->drvdata; in lcd2s_shift_cursor() [all …]
|
/Linux-v6.6/drivers/gpu/drm/panel/ |
D | panel-sony-acx565akm.c | 3 * Sony ACX565AKM LCD Panel driver 75 static void acx565akm_transfer(struct acx565akm_panel *lcd, int cmd, in acx565akm_transfer() argument 118 ret = spi_sync(lcd->spi, &m); in acx565akm_transfer() 120 dev_dbg(&lcd->spi->dev, "spi_sync %d\n", ret); in acx565akm_transfer() 123 static inline void acx565akm_cmd(struct acx565akm_panel *lcd, int cmd) in acx565akm_cmd() argument 125 acx565akm_transfer(lcd, cmd, NULL, 0, NULL, 0); in acx565akm_cmd() 128 static inline void acx565akm_write(struct acx565akm_panel *lcd, in acx565akm_write() argument 131 acx565akm_transfer(lcd, reg, buf, len, NULL, 0); in acx565akm_write() 134 static inline void acx565akm_read(struct acx565akm_panel *lcd, in acx565akm_read() argument 137 acx565akm_transfer(lcd, reg, NULL, 0, buf, len); in acx565akm_read() [all …]
|
D | panel-tpo-td043mtea1.c | 74 static int td043mtea1_write(struct td043mtea1_panel *lcd, u8 addr, u8 value) in td043mtea1_write() argument 91 ret = spi_sync(lcd->spi, &msg); in td043mtea1_write() 93 dev_warn(&lcd->spi->dev, "failed to write to LCD reg (%d)\n", in td043mtea1_write() 99 static void td043mtea1_write_gamma(struct td043mtea1_panel *lcd) in td043mtea1_write_gamma() argument 101 const u16 *gamma = lcd->gamma; in td043mtea1_write_gamma() 108 td043mtea1_write(lcd, 0x11, val); in td043mtea1_write_gamma() 112 td043mtea1_write(lcd, 0x12, val); in td043mtea1_write_gamma() 116 td043mtea1_write(lcd, 0x13, val); in td043mtea1_write_gamma() 120 td043mtea1_write(lcd, 0x14 + i, gamma[i] & 0xff); in td043mtea1_write_gamma() 123 static int td043mtea1_write_mirror(struct td043mtea1_panel *lcd) in td043mtea1_write_mirror() argument [all …]
|
D | panel-tpo-td028ttec1.c | 94 jbt_ret_write_0(struct td028ttec1_panel *lcd, u8 reg, int *err) in jbt_ret_write_0() argument 96 struct spi_device *spi = lcd->spi; in jbt_ret_write_0() 114 jbt_reg_write_1(struct td028ttec1_panel *lcd, in jbt_reg_write_1() argument 117 struct spi_device *spi = lcd->spi; in jbt_reg_write_1() 138 jbt_reg_write_2(struct td028ttec1_panel *lcd, in jbt_reg_write_2() argument 141 struct spi_device *spi = lcd->spi; in jbt_reg_write_2() 164 struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); in td028ttec1_prepare() local 170 jbt_ret_write_0(lcd, 0x00, &ret); in td028ttec1_prepare() 175 jbt_reg_write_1(lcd, JBT_REG_POWER_ON_OFF, 0x17, &ret); in td028ttec1_prepare() 178 jbt_reg_write_1(lcd, JBT_REG_DISPLAY_MODE, 0x80, &ret); in td028ttec1_prepare() [all …]
|
D | panel-olimex-lcd-olinuxino.c | 3 * LCD-OLinuXino support for panel driver 83 struct lcd_olinuxino *lcd = to_lcd_olinuxino(panel); in lcd_olinuxino_disable() local 85 if (!lcd->enabled) in lcd_olinuxino_disable() 88 lcd->enabled = false; in lcd_olinuxino_disable() 95 struct lcd_olinuxino *lcd = to_lcd_olinuxino(panel); in lcd_olinuxino_unprepare() local 97 if (!lcd->prepared) in lcd_olinuxino_unprepare() 100 gpiod_set_value_cansleep(lcd->enable_gpio, 0); in lcd_olinuxino_unprepare() 101 regulator_disable(lcd->supply); in lcd_olinuxino_unprepare() 103 lcd->prepared = false; in lcd_olinuxino_unprepare() 110 struct lcd_olinuxino *lcd = to_lcd_olinuxino(panel); in lcd_olinuxino_prepare() local [all …]
|
D | panel-sharp-ls037v7dw01.c | 3 * Sharp LS037V7DW01 LCD Panel Driver 41 struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel); in ls037v7dw01_disable() local 43 gpiod_set_value_cansleep(lcd->ini_gpio, 0); in ls037v7dw01_disable() 44 gpiod_set_value_cansleep(lcd->resb_gpio, 0); in ls037v7dw01_disable() 46 /* Wait at least 5 vsyncs after disabling the LCD. */ in ls037v7dw01_disable() 54 struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel); in ls037v7dw01_unprepare() local 56 regulator_disable(lcd->vdd); in ls037v7dw01_unprepare() 62 struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel); in ls037v7dw01_prepare() local 65 ret = regulator_enable(lcd->vdd); in ls037v7dw01_prepare() 67 dev_err(&lcd->pdev->dev, "%s: failed to enable regulator\n", in ls037v7dw01_prepare() [all …]
|
D | panel-nec-nl8048hl11.c | 32 static int nl8048_write(struct nl8048_panel *lcd, unsigned char addr, in nl8048_write() argument 38 ret = spi_write(lcd->spi, data, sizeof(data)); in nl8048_write() 40 dev_err(&lcd->spi->dev, "SPI write to %u failed: %d\n", in nl8048_write() 46 static int nl8048_init(struct nl8048_panel *lcd) in nl8048_init() argument 79 ret = nl8048_write(lcd, nl8048_init_seq[i].addr, in nl8048_init() 87 return nl8048_write(lcd, 2, 0x00); in nl8048_init() 92 struct nl8048_panel *lcd = to_nl8048_device(panel); in nl8048_disable() local 94 gpiod_set_value_cansleep(lcd->reset_gpio, 0); in nl8048_disable() 101 struct nl8048_panel *lcd = to_nl8048_device(panel); in nl8048_enable() local 103 gpiod_set_value_cansleep(lcd->reset_gpio, 1); in nl8048_enable() [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/display/panel/ |
D | panel-simple.yaml | 32 # Ampire AM-1280800N3TZQW-T00H 10.1" WQVGA TFT LCD panel 34 # Ampire AM-480272H3TMQW-T01H 4.3" WQVGA TFT LCD panel 36 # Ampire AM-800480L1TMQW-T00H 5" WVGA TFT LCD panel 38 # Ampire AM-800480R3TMQW-A1H 7.0" WVGA TFT LCD panel 40 # Ampire AM-800600P5TMQW-TB8H 8.0" SVGA TFT LCD panel 42 # AU Optronics Corporation 10.1" WSVGA TFT LCD panel 44 # AU Optronics Corporation 10.1" WSVGA TFT LCD panel 46 # AU Optronics Corporation 10.1" WXGA TFT LCD panel 48 # AUO B116XAK01 eDP TFT LCD panel 50 # AU Optronics Corporation 11.6" HD (1366x768) color TFT-LCD panel [all …]
|
/Linux-v6.6/drivers/staging/fbtft/ |
D | Kconfig | 3 tristate "Support for small TFT LCD display modules" 15 tristate "FB driver for the AGM1264K-FL LCD display" 18 Framebuffer support for the AGM1264K-FL LCD display (two Samsung KS0108 compatible chips) 21 tristate "FB driver for the BD663474 LCD Controller" 27 tristate "FB driver for the HX8340BN LCD Controller" 33 tristate "FB driver for the HX8347D LCD Controller" 39 tristate "FB driver for the HX8353D LCD Controller" 45 tristate "FB driver for the HX8357D LCD Controller" 51 tristate "FB driver for the ILI9163 LCD Controller" 57 tristate "FB driver for the ILI9320 LCD Controller" [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/pinctrl/ |
D | marvell,armada-xp-pinctrl.txt | 21 mpp0 0 gpio, ge0(txclkout), lcd(d0) 22 mpp1 1 gpio, ge0(txd0), lcd(d1) 23 mpp2 2 gpio, ge0(txd1), lcd(d2) 24 mpp3 3 gpio, ge0(txd2), lcd(d3) 25 mpp4 4 gpio, ge0(txd3), lcd(d4) 26 mpp5 5 gpio, ge0(txctl), lcd(d5) 27 mpp6 6 gpio, ge0(rxd0), lcd(d6) 28 mpp7 7 gpio, ge0(rxd1), lcd(d7) 29 mpp8 8 gpio, ge0(rxd2), lcd(d8) 30 mpp9 9 gpio, ge0(rxd3), lcd(d9) [all …]
|
/Linux-v6.6/drivers/video/fbdev/ |
D | au1200fb.c | 3 * Au1200 LCD Driver. 53 #define DRIVER_DESC "LCD controller driver for AU1200 processors" 160 /* LCD controller restrictions */ 179 static struct au1200_lcd *lcd = (struct au1200_lcd *) AU1200_LCD_ADDR; variable 349 /* List of panels known to work with the AU1200 LCD controller. 710 winctrl0 = lcd->window[plane].winctrl0; in au1200_setlocation() 711 winctrl1 = lcd->window[plane].winctrl1; in au1200_setlocation() 733 fb_offset += (((0 - xpos) * winbpp(lcd->window[plane].winctrl1))/8); in au1200_setlocation() 758 winenable = lcd->winenable & (1 << plane); in au1200_setlocation() 760 lcd->winenable &= ~(1 << plane); in au1200_setlocation() [all …]
|