| /kernel/linux/linux-6.6/drivers/video/backlight/ |
| D | omap1_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <linux/soc/ti/omap1-io.h> 18 #include <linux/soc/ti/omap1-mux.h> 40 static void omapbl_blank(struct omap_backlight *bl, int mode) in omapbl_blank() argument 42 if (bl->pdata->set_power) in omapbl_blank() 43 bl->pdata->set_power(bl->dev, mode); in omapbl_blank() 55 omapbl_send_intensity(bl->current_intensity); in omapbl_blank() 65 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_suspend() local 67 omapbl_blank(bl, FB_BLANK_POWERDOWN); in omapbl_suspend() 74 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_resume() local [all …]
|
| D | ep93xx_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for the Cirrus EP93xx lcd backlight 26 static int ep93xxbl_set(struct backlight_device *bl, int brightness) in ep93xxbl_set() argument 28 struct ep93xxbl *ep93xxbl = bl_get_data(bl); in ep93xxbl_set() 30 writel((brightness << 8) | EP93XX_MAX_COUNT, ep93xxbl->mmio); in ep93xxbl_set() 32 ep93xxbl->brightness = brightness; in ep93xxbl_set() 37 static int ep93xxbl_update_status(struct backlight_device *bl) in ep93xxbl_update_status() argument 39 return ep93xxbl_set(bl, backlight_get_brightness(bl)); in ep93xxbl_update_status() 42 static int ep93xxbl_get_brightness(struct backlight_device *bl) in ep93xxbl_get_brightness() argument 44 struct ep93xxbl *ep93xxbl = bl_get_data(bl); in ep93xxbl_get_brightness() [all …]
|
| D | lp8788_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI LP8788 MFD - backlight driver 32 #define DEFAULT_BL_NAME "lcd-backlight" 71 static int lp8788_backlight_configure(struct lp8788_bl *bl) in lp8788_backlight_configure() argument 73 struct lp8788_backlight_platform_data *pdata = bl->pdata; in lp8788_backlight_configure() 83 cfg->bl_mode = pdata->bl_mode; in lp8788_backlight_configure() 84 cfg->dim_mode = pdata->dim_mode; in lp8788_backlight_configure() 85 cfg->full_scale = pdata->full_scale; in lp8788_backlight_configure() 86 cfg->rise_time = pdata->rise_time; in lp8788_backlight_configure() 87 cfg->fall_time = pdata->fall_time; in lp8788_backlight_configure() [all …]
|
| /kernel/linux/linux-5.10/drivers/video/backlight/ |
| D | omap1_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 static void omapbl_blank(struct omap_backlight *bl, int mode) in omapbl_blank() argument 42 if (bl->pdata->set_power) in omapbl_blank() 43 bl->pdata->set_power(bl->dev, mode); in omapbl_blank() 55 omapbl_send_intensity(bl->current_intensity); in omapbl_blank() 65 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_suspend() local 67 omapbl_blank(bl, FB_BLANK_POWERDOWN); in omapbl_suspend() 74 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_resume() local 76 omapbl_blank(bl, bl->powermode); in omapbl_resume() 83 struct omap_backlight *bl = bl_get_data(dev); in omapbl_set_power() local [all …]
|
| D | tosa_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LCD / Backlight control code for Sharp SL-6000x (tosa) 30 struct backlight_device *bl; member 38 struct spi_device *spi = dev_get_platdata(&data->i2c->dev); in tosa_bl_set_backlight() 40 i2c_smbus_write_byte_data(data->i2c, DAC_CH1, data->comadj); in tosa_bl_set_backlight() 43 i2c_smbus_write_byte_data(data->i2c, DAC_CH2, (u8)(brightness & 0xff)); in tosa_bl_set_backlight() 46 gpiod_set_value(data->gpio, brightness & 0x100); in tosa_bl_set_backlight() 53 struct backlight_properties *props = &dev->props; in tosa_bl_update_status() 55 int power = max(props->power, props->fb_blank); in tosa_bl_update_status() 56 int brightness = props->brightness; in tosa_bl_update_status() [all …]
|
| D | tosa_lcd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LCD / Backlight control code for Sharp SL-6000x (tosa) 17 #include <linux/lcd.h> 48 struct lcd_device *lcd; member 83 gpiod_set_value(data->gpiod_tg, 0); in tosa_lcd_tg_init() 88 tosa_tg_send(data->spi, TG_TPOSCTL, 0x00); in tosa_lcd_tg_init() 90 tosa_tg_send(data->spi, TG_GPOSR, 0x02); in tosa_lcd_tg_init() 95 struct spi_device *spi = data->spi; in tosa_lcd_tg_on() 98 if (data->is_vga) in tosa_lcd_tg_on() 103 /* TG LCD pannel power up */ in tosa_lcd_tg_on() [all …]
|
| D | ep93xx_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for the Cirrus EP93xx lcd backlight 26 static int ep93xxbl_set(struct backlight_device *bl, int brightness) in ep93xxbl_set() argument 28 struct ep93xxbl *ep93xxbl = bl_get_data(bl); in ep93xxbl_set() 30 writel((brightness << 8) | EP93XX_MAX_COUNT, ep93xxbl->mmio); in ep93xxbl_set() 32 ep93xxbl->brightness = brightness; in ep93xxbl_set() 37 static int ep93xxbl_update_status(struct backlight_device *bl) in ep93xxbl_update_status() argument 39 return ep93xxbl_set(bl, backlight_get_brightness(bl)); in ep93xxbl_update_status() 42 static int ep93xxbl_get_brightness(struct backlight_device *bl) in ep93xxbl_get_brightness() argument 44 struct ep93xxbl *ep93xxbl = bl_get_data(bl); in ep93xxbl_get_brightness() [all …]
|
| D | lp8788_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI LP8788 MFD - backlight driver 32 #define DEFAULT_BL_NAME "lcd-backlight" 71 static int lp8788_backlight_configure(struct lp8788_bl *bl) in lp8788_backlight_configure() argument 73 struct lp8788_backlight_platform_data *pdata = bl->pdata; in lp8788_backlight_configure() 83 cfg->bl_mode = pdata->bl_mode; in lp8788_backlight_configure() 84 cfg->dim_mode = pdata->dim_mode; in lp8788_backlight_configure() 85 cfg->full_scale = pdata->full_scale; in lp8788_backlight_configure() 86 cfg->rise_time = pdata->rise_time; in lp8788_backlight_configure() 87 cfg->fall_time = pdata->fall_time; in lp8788_backlight_configure() [all …]
|
| D | lp855x_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 39 #define DEFAULT_BL_NAME "lcd-backlight" 69 struct backlight_device *bl; member 79 return i2c_smbus_write_byte_data(lp->client, reg, data); in lp855x_write_byte() 87 ret = i2c_smbus_read_byte_data(lp->client, reg); in lp855x_update_bit() 89 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp855x_update_bit() 104 switch (lp->chip_id) { in lp855x_is_valid_rom_area() 171 struct lp855x_platform_data *pd = lp->pdata; in lp855x_configure() 173 switch (lp->chip_id) { in lp855x_configure() 179 lp->cfg = &lp855x_dev_cfg; in lp855x_configure() [all …]
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/ |
| D | atmel_lcdfb.c | 2 * Driver for AT91 LCD Controller 13 #include <linux/dma-mapping.h> 38 /* LCD Controller info data structure, stored in device platform_data */ 70 #define lcdc_readl(sinfo, reg) __raw_readl((sinfo)->mmio+(reg)) 71 #define lcdc_writel(sinfo, reg, val) __raw_writel((val), (sinfo)->mmio+(reg)) 108 /* some bl->props field just changed */ 109 static int atmel_bl_update_status(struct backlight_device *bl) in atmel_bl_update_status() argument 111 struct atmel_lcdfb_info *sinfo = bl_get_data(bl); in atmel_bl_update_status() 112 int power = sinfo->bl_power; in atmel_bl_update_status() 113 int brightness = bl->props.brightness; in atmel_bl_update_status() [all …]
|
| /kernel/linux/linux-6.6/drivers/auxdisplay/ |
| D | panel.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu> 5 * Copyright (C) 2016-2017 Glider bvba 7 * This code drives an LCD module (/dev/lcd), and a keypad (/dev/keypad) 10 * The LCD module may either be an HD44780-like 8-bit parallel LCD, or a 1-bit 15 * data output pins or to the ground. The combinations have to be hard-coded 18 * Several profiles are provided for commonly found LCD+keypad modules on the 22 * - the initialization/deinitialization process is very dirty and should 26 * - document 24 keys keyboard (3 rows of 8 cols, 32 diodes + 2 inputs) 27 * - make the LCD a part of a virtual screen of Vx*Vy [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 4 # see Documentation/kbuild/kconfig-language.rst. 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 31 This is the core support for single-line character displays, to be 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" [all …]
|
| /kernel/linux/linux-5.10/drivers/auxdisplay/ |
| D | panel.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu> 5 * Copyright (C) 2016-2017 Glider bvba 7 * This code drives an LCD module (/dev/lcd), and a keypad (/dev/keypad) 10 * The LCD module may either be an HD44780-like 8-bit parallel LCD, or a 1-bit 15 * data output pins or to the ground. The combinations have to be hard-coded 18 * Several profiles are provided for commonly found LCD+keypad modules on the 22 * - the initialization/deinitialization process is very dirty and should 26 * - document 24 keys keyboard (3 rows of 8 cols, 32 diodes + 2 inputs) 27 * - make the LCD a part of a virtual screen of Vx*Vy [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 4 # see Documentation/kbuild/kconfig-language.rst. 20 tristate "HD44780 Character LCD support" 25 The LCD is accessible through the /dev/lcd char device (10, 156). 31 tristate "KS0108 LCD Controller" 35 If you have a LCD controlled by one or more KS0108 37 driver for your LCD. 41 and built-in as well (Y). 49 hex "Parallel port where the LCD is connected" 53 The address of the parallel port where the LCD is connected. [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-pxa/ |
| D | palm27x.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 59 extern void __init palm27x_pwm_init(int bl, int lcd); 61 static inline void palm27x_pwm_init(int bl, int lcd) {} in palm27x_pwm_init() argument
|
| D | palm27x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2010-2011 Marek Vasut <marek.vasut@gmail.com> 21 #include <linux/platform_data/i2c-pxa.h> 23 #include <asm/mach-types.h> 29 #include <linux/platform_data/mmc-pxamci.h> 30 #include <linux/platform_data/video-pxafb.h> 31 #include <linux/platform_data/irda-pxaficp.h> 33 #include <linux/platform_data/asoc-palm27x.h> 57 * Power management - standby 141 if (!gpio_request(power, "LCD power")) { in palm27x_lcd_init() [all …]
|
| /kernel/linux/linux-6.6/drivers/video/fbdev/ |
| D | atmel_lcdfb.c | 2 * Driver for AT91 LCD Controller 13 #include <linux/dma-mapping.h> 38 /* LCD Controller info data structure, stored in device platform_data */ 69 #define lcdc_readl(sinfo, reg) __raw_readl((sinfo)->mmio+(reg)) 70 #define lcdc_writel(sinfo, reg, val) __raw_writel((val), (sinfo)->mmio+(reg)) 107 /* some bl->props field just changed */ 108 static int atmel_bl_update_status(struct backlight_device *bl) in atmel_bl_update_status() argument 110 struct atmel_lcdfb_info *sinfo = bl_get_data(bl); in atmel_bl_update_status() 111 int brightness = backlight_get_brightness(bl); in atmel_bl_update_status() 123 static int atmel_bl_get_brightness(struct backlight_device *bl) in atmel_bl_get_brightness() argument [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/backlight/ |
| D | lp855x.txt | 4 - compatible: "ti,lp8550", "ti,lp8551", "ti,lp8552", "ti,lp8553", 6 - reg: I2C slave address (u8) 7 - dev-ctrl: Value of DEVICE CONTROL register (u8). It depends on the device. 10 - bl-name: Backlight device name (string) 11 - init-brt: Initial value of backlight brightness (u8) 12 - pwm-period: PWM period value. Set only PWM input mode used (u32) 13 - rom-addr: Register address of ROM area to be updated (u8) 14 - rom-val: Register value to be updated (u8) 15 - power-supply: Regulator which controls the 3V rail 16 - enable-supply: Regulator which controls the EN/VDDIO input [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/rockchip/ |
| D | rk3288-veyron-edp.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 backlight_regulator: backlight-regulator { 10 compatible = "regulator-fixed"; 11 enable-active-high; 13 pinctrl-names = "default"; 14 pinctrl-0 = <&bl_pwr_en>; 15 regulator-name = "backlight_regulator"; 16 vin-supply = <&vcc33_sys>; 17 startup-delay-us = <15000>; 20 panel_regulator: panel-regulator { [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | rk3288-veyron-edp.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 backlight_regulator: backlight-regulator { 10 compatible = "regulator-fixed"; 11 enable-active-high; 13 pinctrl-names = "default"; 14 pinctrl-0 = <&bl_pwr_en>; 15 regulator-name = "backlight_regulator"; 16 vin-supply = <&vcc33_sys>; 17 startup-delay-us = <15000>; 20 panel_regulator: panel-regulator { [all …]
|
| D | tegra20-colibri-iris.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include "tegra20-colibri.dtsi" 9 compatible = "toradex,colibri_t20-iris", "toradex,colibri_t20", 22 stdout-path = "serial0:115200n8"; 35 hdmi-supply = <®_5v0>; 41 bl-on { 49 hotplug-detect { 57 lcd { [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/backlight/ |
| D | lp855x-backlight.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/lp855x-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Artur Weber <aweber.kernel@gmail.com> 15 - ti,lp8550 16 - ti,lp8551 17 - ti,lp8552 18 - ti,lp8553 19 - ti,lp8555 [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/qcom/ |
| D | apq8039-t2.dts | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2020-2023, Linaro Ltd. 8 /dts-v1/; 11 #include "msm8939-pm8916.dtsi" 12 #include <dt-bindings/arm/qcom,ids.h> 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 15 #include <dt-bindings/sound/apq8016-lpass.h> 19 compatible = "square,apq8039-t2", "qcom,msm8939"; 21 qcom,board-id = <0x53 0x54>; [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/ti/omap/ |
| D | logicpd-som-lv-baseboard.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 5 compatible = "gpio-keys"; 6 pinctrl-names = "default"; 7 pinctrl-0 = <&gpio_key_pins>; 13 wakeup-source; 18 compatible = "ti,omap-twl4030"; 24 compatible = "gpio-leds"; 25 pinctrl-names = "default"; 26 pinctrl-0 = <&led_pins &led_pins_wkup>; 31 linux,default-trigger = "cpu0"; [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/nvidia/ |
| D | tegra20-colibri-iris.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include "tegra20-colibri.dtsi" 9 compatible = "toradex,colibri_t20-iris", "toradex,colibri_t20", 22 stdout-path = "serial0:115200n8"; 35 hdmi-supply = <®_5v0>; 41 bl-on { 49 hotplug-detect { 57 lcd { [all …]
|