/openbmc/linux/drivers/video/backlight/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A D | ams369fg06.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 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() [all …]
|
H A D | lp855x_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 40 #define DEFAULT_BL_NAME "lcd-backlight" 70 struct backlight_device *bl; member 81 return i2c_smbus_write_byte_data(lp->client, reg, data); in lp855x_write_byte() 89 ret = i2c_smbus_read_byte_data(lp->client, reg); in lp855x_update_bit() 91 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp855x_update_bit() 106 switch (lp->chip_id) { in lp855x_is_valid_rom_area() 173 struct lp855x_platform_data *pd = lp->pdata; in lp855x_configure() 175 if (lp->cfg->pre_init_device) { in lp855x_configure() 176 ret = lp->cfg->pre_init_device(lp); in lp855x_configure() [all …]
|
H A D | locomolcd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Backlight control code for Sharp Zaurus SL-5500 6 * Maintainer: Pavel Machek <pavel@ucw.cz> (unless John wants to :-) 13 /* LCD power functions */ 25 #include <asm/mach-types.h> 27 #include "../../../arch/arm/mach-sa1100/generic.h" 36 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHA_ON, 0); in locomolcd_on() 37 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHA_ON, 1); in locomolcd_on() 40 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHD_ON, 0); in locomolcd_on() 41 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHD_ON, 1); in locomolcd_on() [all …]
|
/openbmc/linux/drivers/auxdisplay/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A 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 …]
|
/openbmc/u-boot/doc/device-tree-bindings/video/ |
H A D | exynos-fb.txt | 5 compatible: should be "samsung,exynos-fimd" 9 samsung,vl-col: X resolution of the panel 10 samsung,vl-row: Y resolution of the panel 11 samsung,vl-freq: Refresh rate 12 samsung,vl-bpix: Bits per pixel 13 samsung,vl-hspw: Hsync value 14 samsung,vl-hfpd: Right margin 15 samsung,vl-hbpd: Left margin 16 samsung,vl-vspw: Vsync value 17 samsung,vl-vfpd: Lower margin [all …]
|
/openbmc/linux/arch/arm/boot/dts/rockchip/ |
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/backlight/ |
H A 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 …]
|
/openbmc/u-boot/board/BuR/common/ |
H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com 26 #include <lcd.h> 28 #include "../../../drivers/video/am335x-fb.h" 32 /* --------------------------------------------------------------------------*/ 57 case 0: /* PMIC LED-Driver */ in lcdbacklight() 70 timerhw->tiocp_cfg = TCFG_RESET; in lcdbacklight() 72 while (timerhw->tiocp_cfg & TCFG_RESET) in lcdbacklight() 74 tmp = ~0UL-(V_OSCK/pwmfrq); /* bottom value */ in lcdbacklight() 75 timerhw->tldr = tmp; in lcdbacklight() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A 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 …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A 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 …]
|
H A D | am3517-evm.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 8 #include "am3517-som.dtsi" 9 #include "am3517-evm-ui.dtsi" 10 #include <dt-bindings/input/input.h> 14 compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3"; 21 stdout-path = &uart3; 30 compatible = "regulator-fixed"; 31 regulator-name = "vmmc_fixed"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/nvidia/ |
H A 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 …]
|
H A D | tegra20-colibri-eval-v3.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include "tegra20-colibri.dtsi" 9 compatible = "toradex,colibri_t20-eval-v3", "toradex,colibri_t20", 22 stdout-path = "serial0:115200n8"; 35 hdmi-supply = <®_5v0>; 41 bl-on { 49 hotplug-detect { 57 lcd { [all …]
|
/openbmc/linux/Documentation/driver-api/backlight/ |
H A D | lp855x-driver.rst | 15 ----------- 37 ------------------------ 68 .name = "lcd-bl",
|
/openbmc/linux/drivers/gpu/drm/panel/ |
H A D | panel-samsung-s6d7aa0.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung S6D7AA0 MIPI-DSI TFT LCD controller drm_panel driver. 59 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in s6d7aa0_reset() 61 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6d7aa0_reset() 67 struct mipi_dsi_device *dsi = ctx->dsi; in s6d7aa0_lock() 72 if (ctx->desc->use_passwd3) in s6d7aa0_lock() 77 if (ctx->desc->use_passwd3) in s6d7aa0_lock() 86 struct mipi_dsi_device *dsi = ctx->dsi; in s6d7aa0_on() 87 struct device *dev = &dsi->dev; in s6d7aa0_on() 90 ret = ctx->desc->init_func(ctx); in s6d7aa0_on() [all …]
|
/openbmc/linux/drivers/gpu/drm/bridge/ |
H A D | parade-ps8622.c | 1 // SPDX-License-Identifier: GPL-2.0-only 48 struct backlight_device *bl; member 68 struct i2c_adapter *adap = client->adapter; in ps8622_set() 72 msg.addr = client->addr + page; in ps8622_set() 80 client->addr + page, reg, val, ret); in ps8622_set() 86 struct i2c_client *cl = ps8622->client; in ps8622_send_config() 137 /* [7:5] DCO_FTRNG=+-40% */ in ps8622_send_config() 147 /* Gitune=-37% */ in ps8622_send_config() 167 /* [7:6] Right-bar GPIO output strength is 8mA */ in ps8622_send_config() 179 err = ps8622_set(cl, 0x01, 0x02, 0x80 | ps8622->max_lane_count); in ps8622_send_config() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | sun50i-a64-pinebook.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include "sun50i-a64.dtsi" 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/input/input.h> 14 #include <dt-bindings/pwm/pwm.h> 18 compatible = "pine64,pinebook", "allwinner,sun50i-a64"; 26 compatible = "regulator-fixed"; 27 regulator-name = "bl-3v3"; 28 regulator-min-microvolt = <3300000>; [all …]
|
H A D | am335x-brppt1-mmc.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * http://www.br-automation.com 7 /dts-v1/; 15 fset: factory-settings { 16 bl-version = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; 18 order-no = "6PPT30 (MMC)"; 19 hw-revision = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; 20 serial-no = "0"; 21 device-id = <0x0>; 22 parent-id = <0x0>; [all …]
|
H A D | am335x-brxre1.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * http://www.br-automation.com 7 /dts-v1/; 15 fset: factory-settings { 16 bl-version = " "; 17 order-no = " "; 18 cpu-order-no = " "; 19 hw-revision = " "; 20 serial-no = <0>; 21 device-id = <0xE681>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | ti-lmu.txt | 6 ------ --------------------------------- 14 - compatible: Should be one of: 20 - reg: I2C slave address. 28 - enable-gpios: A GPIO specifier for hardware enable pin. 29 - ramp-up-us: Current ramping from one brightness level to 31 Range from 2048 us - 117.44 s 32 - ramp-down-us: Current ramping from one brightness level to 34 Range from 2048 us - 117.44 s 35 - ti,brightness-resolution - This determines whether to use 8 bit brightness 47 - backlight: All LMU devices have backlight child nodes. [all …]
|