| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/backlight/ |
| D | pwm-backlight.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/pwm-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: pwm-backlight bindings 10 - Lee Jones <lee.jones@linaro.org> 11 - Daniel Thompson <daniel.thompson@linaro.org> 12 - Jingoo Han <jingoohan1@gmail.com> 16 const: pwm-backlight 21 pwm-names: true [all …]
|
| D | led-backlight.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/led-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: led-backlight bindings 10 - Lee Jones <lee.jones@linaro.org> 11 - Daniel Thompson <daniel.thompson@linaro.org> 12 - Jingoo Han <jingoohan1@gmail.com> 21 const: led-backlight 25 $ref: /schemas/types.yaml#/definitions/phandle-array [all …]
|
| D | qcom-wled.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <bjorn.andersson@linaro.org> 11 - Kiran Gunda <kgunda@codeaurora.org> 21 - qcom,pm8941-wled 22 - qcom,pmi8998-wled 23 - qcom,pm660l-wled 24 - qcom,pm8150l-wled [all …]
|
| D | lm3630a-backlight.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TI LM3630A High-Efficiency Dual-String White LED 10 - Lee Jones <lee.jones@linaro.org> 11 - Daniel Thompson <daniel.thompson@linaro.org> 12 - Jingoo Han <jingoohan1@gmail.com> 15 The LM3630A is a current-mode boost converter which supplies the power and 26 '#address-cells': [all …]
|
| D | common.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lee Jones <lee.jones@linaro.org> 11 - Daniel Thompson <daniel.thompson@linaro.org> 12 - Jingoo Han <jingoohan1@gmail.com> 20 default-brightness: 22 The default brightness that should be applied to the LED by the operating 23 system on start-up. The brightness should not exceed the brightness the 27 max-brightness: [all …]
|
| D | arcxcnn_bl.txt | 4 - compatible: should be "arc,arc2c0608" 5 - reg: slave address 8 - default-brightness: brightness value on boot, value from: 0-4095 9 - label: The name of the backlight device 11 - led-sources: List of enabled channels from 0 to 5. 14 - arc,led-config-0: setting for register ILED_CONFIG_0 15 - arc,led-config-1: setting for register ILED_CONFIG_1 16 - arc,dim-freq: PWM mode frequence setting (bits [3:0] used) 17 - arc,comp-config: setting for register CONFIG_COMP 18 - arc,filter-config: setting for register FILTER_CONFIG [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/leds/backlight/ |
| D | pwm-backlight.txt | 1 pwm-backlight bindings 4 - compatible: "pwm-backlight" 5 - pwms: OF device-tree PWM specification (see PWM binding[0]) 6 - power-supply: regulator for supply voltage 9 - pwm-names: a list of names for the PWM devices specified in the 11 - enable-gpios: contains a single GPIO specifier for the GPIO which enables 13 - post-pwm-on-delay-ms: Delay in ms between setting an initial (non-zero) PWM 15 - pwm-off-delay-ms: Delay in ms between disabling the backlight using GPIO 17 - brightness-levels: Array of distinct brightness levels. Typically these 19 0 will do. The actual brightness level (PWM duty cycle) [all …]
|
| D | arcxcnn_bl.txt | 4 - compatible: should be "arc,arc2c0608" 5 - reg: slave address 8 - default-brightness: brightness value on boot, value from: 0-4095 9 - label: The name of the backlight device 11 - led-sources: List of enabled channels from 0 to 5. 14 - arc,led-config-0: setting for register ILED_CONFIG_0 15 - arc,led-config-1: setting for register ILED_CONFIG_1 16 - arc,dim-freq: PWM mode frequence setting (bits [3:0] used) 17 - arc,comp-config: setting for register CONFIG_COMP 18 - arc,filter-config: setting for register FILTER_CONFIG [all …]
|
| /kernel/linux/linux-5.10/drivers/video/backlight/ |
| D | ktd253-backlight.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Based on code and know-how from the Samsung GT-S7710 40 gpiod_set_value_cansleep(ktd253->gpiod, 1); in ktd253_backlight_set_max_ratio() 63 gpiod_set_value(ktd253->gpiod, 0); in ktd253_backlight_stepdown() 65 gpiod_set_value(ktd253->gpiod, 1); in ktd253_backlight_stepdown() 66 ns = ktime_get_ns() - ns; in ktd253_backlight_stepdown() 68 dev_err(ktd253->dev, "PCM on backlight took too long (%llu ns)\n", ns); in ktd253_backlight_stepdown() 69 return -EAGAIN; in ktd253_backlight_stepdown() 78 int brightness = backlight_get_brightness(bl); in ktd253_backlight_update_status() local 80 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status() [all …]
|
| D | pwm_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 int brightness); 37 int brightness); 47 pwm_get_state(pb->pwm, &state); in pwm_backlight_power_on() 48 if (pb->enabled) in pwm_backlight_power_on() 51 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on() 53 dev_err(pb->dev, "failed to enable power supply\n"); in pwm_backlight_power_on() 56 pwm_apply_state(pb->pwm, &state); in pwm_backlight_power_on() 58 if (pb->post_pwm_on_delay) in pwm_backlight_power_on() 59 msleep(pb->post_pwm_on_delay); in pwm_backlight_power_on() [all …]
|
| D | led_bl.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2015-2019 Texas Instruments Incorporated - http://www.ti.com/ 30 if (priv->levels) in led_bl_set_brightness() 31 bkl_brightness = priv->levels[level]; in led_bl_set_brightness() 35 for (i = 0; i < priv->nb_leds; i++) in led_bl_set_brightness() 36 led_set_brightness(priv->leds[i], bkl_brightness); in led_bl_set_brightness() 38 priv->enabled = true; in led_bl_set_brightness() 45 if (!priv->enabled) in led_bl_power_off() 48 for (i = 0; i < priv->nb_leds; i++) in led_bl_power_off() 49 led_set_brightness(priv->leds[i], LED_OFF); in led_bl_power_off() [all …]
|
| D | as3711_bl.c | 1 // SPDX-License-Identifier: GPL-2.0 29 int brightness; member 42 switch (su->type) { in to_supply() 52 unsigned int brightness) in as3711_set_brightness_auto_i() argument 55 struct as3711 *as3711 = supply->as3711; in as3711_set_brightness_auto_i() 56 const struct as3711_bl_pdata *pdata = supply->pdata; in as3711_set_brightness_auto_i() 60 if (pdata->su2_auto_curr1) in as3711_set_brightness_auto_i() 61 ret = regmap_write(as3711->regmap, AS3711_CURR1_VALUE, in as3711_set_brightness_auto_i() 62 brightness); in as3711_set_brightness_auto_i() 63 if (!ret && pdata->su2_auto_curr2) in as3711_set_brightness_auto_i() [all …]
|
| D | tps65217_bl.c | 39 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_enable() 43 dev_err(tps65217_bl->dev, in tps65217_bl_enable() 48 tps65217_bl->is_enabled = true; in tps65217_bl_enable() 50 dev_dbg(tps65217_bl->dev, "backlight enabled\n"); in tps65217_bl_enable() 59 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_disable() 64 dev_err(tps65217_bl->dev, in tps65217_bl_disable() 69 tps65217_bl->is_enabled = false; in tps65217_bl_disable() 71 dev_dbg(tps65217_bl->dev, "backlight disabled\n"); in tps65217_bl_disable() 80 int brightness = backlight_get_brightness(bl); in tps65217_bl_update_status() local 82 if (brightness > 0) { in tps65217_bl_update_status() [all …]
|
| D | arcxcnn_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 * @name : Backlight driver name (NULL will use default) 23 * @initial_brightness : initial value of backlight brightness 48 #define ARCXCNN_CMD_OVP_MASK 0x0C /* --- Over Voltage Threshold */ 63 #define ARCXCNN_LEDEN_ISETEXT 0x80 /* Full-scale current set extern */ 99 ret = i2c_smbus_read_byte_data(lp->client, reg); in arcxcnn_update_field() 101 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in arcxcnn_update_field() 109 return i2c_smbus_write_byte_data(lp->client, reg, tmp); in arcxcnn_update_field() 112 static int arcxcnn_set_brightness(struct arcxcnn *lp, u32 brightness) in arcxcnn_set_brightness() argument 117 /* lower nibble of brightness goes in upper nibble of LSB register */ in arcxcnn_set_brightness() [all …]
|
| /kernel/linux/linux-4.19/drivers/video/backlight/ |
| D | as3711_bl.c | 32 int brightness; member 45 switch (su->type) { in to_supply() 55 unsigned int brightness) in as3711_set_brightness_auto_i() argument 58 struct as3711 *as3711 = supply->as3711; in as3711_set_brightness_auto_i() 59 const struct as3711_bl_pdata *pdata = supply->pdata; in as3711_set_brightness_auto_i() 63 if (pdata->su2_auto_curr1) in as3711_set_brightness_auto_i() 64 ret = regmap_write(as3711->regmap, AS3711_CURR1_VALUE, in as3711_set_brightness_auto_i() 65 brightness); in as3711_set_brightness_auto_i() 66 if (!ret && pdata->su2_auto_curr2) in as3711_set_brightness_auto_i() 67 ret = regmap_write(as3711->regmap, AS3711_CURR2_VALUE, in as3711_set_brightness_auto_i() [all …]
|
| D | pwm_bl.c | 42 int brightness); 44 int brightness); 49 static void pwm_backlight_power_on(struct pwm_bl_data *pb, int brightness) in pwm_backlight_power_on() argument 53 if (pb->enabled) in pwm_backlight_power_on() 56 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on() 58 dev_err(pb->dev, "failed to enable power supply\n"); in pwm_backlight_power_on() 60 pwm_enable(pb->pwm); in pwm_backlight_power_on() 62 if (pb->post_pwm_on_delay) in pwm_backlight_power_on() 63 msleep(pb->post_pwm_on_delay); in pwm_backlight_power_on() 65 if (pb->enable_gpio) in pwm_backlight_power_on() [all …]
|
| D | tps65217_bl.c | 39 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_enable() 43 dev_err(tps65217_bl->dev, in tps65217_bl_enable() 48 tps65217_bl->is_enabled = true; in tps65217_bl_enable() 50 dev_dbg(tps65217_bl->dev, "backlight enabled\n"); in tps65217_bl_enable() 59 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_disable() 64 dev_err(tps65217_bl->dev, in tps65217_bl_disable() 69 tps65217_bl->is_enabled = false; in tps65217_bl_disable() 71 dev_dbg(tps65217_bl->dev, "backlight disabled\n"); in tps65217_bl_disable() 80 int brightness = bl->props.brightness; in tps65217_bl_update_status() local 82 if (bl->props.state & BL_CORE_SUSPENDED) in tps65217_bl_update_status() [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | leds.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include <dt-bindings/leds/common.h> 28 /* This is obsolete/useless. We now support variable maximum brightness. */ 40 * default <color:function> tuple, for backward compatibility 41 * with in-driver hard-coded LED names used as a fallback when 54 * only LEDs exposed by drivers of hot-pluggable devices should 66 enum led_brightness brightness; member 93 /* Set LED brightness level 95 * that can sleep while setting brightness. 98 enum led_brightness brightness); [all …]
|
| /kernel/linux/linux-5.10/drivers/leds/ |
| D | leds-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-regulator.c - LED class driver for regulator driven LEDs. 7 * Inspired by leds-wm8350 driver. 14 #include <linux/leds-regulator.h> 49 enum led_brightness brightness) in led_regulator_get_voltage() argument 51 if (brightness == 0) in led_regulator_get_voltage() 52 return -EINVAL; in led_regulator_get_voltage() 54 return regulator_list_voltage(supply, brightness - 1); in led_regulator_get_voltage() 62 if (led->enabled) in regulator_led_enable() 65 ret = regulator_enable(led->vcc); in regulator_led_enable() [all …]
|
| /kernel/linux/linux-4.19/drivers/leds/ |
| D | leds-regulator.c | 2 * leds-regulator.c - LED class driver for regulator driven LEDs. 6 * Inspired by leds-wm8350 driver. 18 #include <linux/leds-regulator.h> 53 enum led_brightness brightness) in led_regulator_get_voltage() argument 55 if (brightness == 0) in led_regulator_get_voltage() 56 return -EINVAL; in led_regulator_get_voltage() 58 return regulator_list_voltage(supply, brightness - 1); in led_regulator_get_voltage() 66 if (led->enabled) in regulator_led_enable() 69 ret = regulator_enable(led->vcc); in regulator_led_enable() 71 dev_err(led->cdev.dev, "Failed to enable vcc: %d\n", ret); in regulator_led_enable() [all …]
|
| /kernel/linux/linux-4.19/Documentation/ABI/testing/ |
| D | sysfs-class-led | 1 What: /sys/class/leds/<led>/brightness 6 Set the brightness of the LED. Most LEDs don't 7 have hardware brightness support, so will just be turned on for 8 non-zero brightness settings. The value is between 0 and 13 Writing non-zero to this file while trigger is active changes the 14 top brightness trigger is going to use. 21 Maximum brightness level for this LED, default is 255 (LED_FULL). 23 If the LED does not support different brightness levels, this 30 Last hardware set brightness level for this LED. Some LEDs 36 the brightness. [all …]
|
| /kernel/linux/linux-5.10/Documentation/ABI/testing/ |
| D | sysfs-class-led | 1 What: /sys/class/leds/<led>/brightness 6 Set the brightness of the LED. 8 Most LEDs don't have hardware brightness support, so will 9 just be turned on for non-zero brightness settings. 20 led_brightness = brightness * multi_intensity/max_brightness 23 Documentation/leds/leds-class-multicolor.rst. 30 Writing non-zero to this file while trigger is active changes the 31 top brightness trigger is going to use. 40 Maximum brightness level for this LED, default is 255 (LED_FULL). 42 If the LED does not support different brightness levels, this [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | exynos54xx-odroidxu-leds.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <dt-bindings/gpio/gpio.h> 15 compatible = "pwm-leds"; 20 pwm-names = "pwm1"; 23 * so limit its max brightness 25 max-brightness = <127>; 26 linux,default-trigger = "mmc0"; 32 pwm-names = "pwm2"; 33 max-brightness = <255>; 34 linux,default-trigger = "heartbeat"; [all …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | pixfmt-meta-vivid.rst | 1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later 3 .. _v4l2-meta-fmt-vivid: 17 It sets Brightness, Saturation, Contrast and Hue, each of which maps to 18 corresponding controls of the vivid driver with respect to the range and default values. 22 .. flat-table:: VIVID Metadata 24 :header-rows: 1 25 :stub-columns: 0 27 * - Field 28 - Description 29 * - u16 brightness; [all …]
|
| /kernel/linux/linux-4.19/arch/arm/boot/dts/ |
| D | vf610-zii-cfu1.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 /dts-v1/; 15 stdout-path = &uart0; 22 gpio-leds { 23 compatible = "gpio-leds"; 24 pinctrl-0 = <&pinctrl_leds_debug>; 25 pinctrl-names = "default"; 27 led-debug { 30 linux,default-trigger = "heartbeat"; 31 max-brightness = <1>; [all …]
|