| /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 …]
|
| /kernel/linux/linux-6.6/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 10 - Lee Jones <lee@kernel.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 10 - Lee Jones <lee@kernel.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,pmi8950-wled 23 - qcom,pmi8994-wled 24 - qcom,pmi8998-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@kernel.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 | mediatek,mt6370-backlight.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiaEn Wu <chiaen_wu@richtek.com> 21 - $ref: common.yaml# 26 - mediatek,mt6370-backlight 27 - mediatek,mt6372-backlight 29 default-brightness: 32 max-brightness: [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@kernel.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 …]
|
| /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 …]
|
| /kernel/linux/linux-6.6/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 34 int brightness); 36 int brightness); 45 if (pb->enabled) in pwm_backlight_power_on() 48 if (pb->power_supply) { in pwm_backlight_power_on() 49 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on() 51 dev_err(pb->dev, "failed to enable power supply\n"); in pwm_backlight_power_on() 54 if (pb->post_pwm_on_delay) in pwm_backlight_power_on() 55 msleep(pb->post_pwm_on_delay); in pwm_backlight_power_on() 57 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on() [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 | 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 | rt4831-backlight.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include <dt-bindings/leds/rt4831-backlight.h> 42 int brightness = backlight_get_brightness(bl_dev); in rt4831_bl_update_status() local 43 unsigned int enable = brightness ? RT4831_BLEN_MASK : 0; in rt4831_bl_update_status() 47 if (brightness) { in rt4831_bl_update_status() 48 v[0] = (brightness - 1) & RT4831_BLDIML_MASK; in rt4831_bl_update_status() 49 v[1] = ((brightness - 1) & RT4831_BLDIMH_MASK) >> RT4831_BLDIMH_SHIFT; in rt4831_bl_update_status() 51 ret = regmap_raw_write(priv->regmap, RT4831_REG_BLDIML, v, sizeof(v)); in rt4831_bl_update_status() 56 return regmap_update_bits(priv->regmap, RT4831_REG_ENABLE, RT4831_BLEN_MASK, enable); in rt4831_bl_update_status() 67 ret = regmap_read(priv->regmap, RT4831_REG_ENABLE, &val); in rt4831_bl_get_brightness() [all …]
|
| D | tps65217_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_enable() 35 dev_err(tps65217_bl->dev, in tps65217_bl_enable() 40 tps65217_bl->is_enabled = true; in tps65217_bl_enable() 42 dev_dbg(tps65217_bl->dev, "backlight enabled\n"); in tps65217_bl_enable() 51 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_disable() 56 dev_err(tps65217_bl->dev, in tps65217_bl_disable() 61 tps65217_bl->is_enabled = false; in tps65217_bl_disable() 63 dev_dbg(tps65217_bl->dev, "backlight disabled\n"); in tps65217_bl_disable() 72 int brightness = backlight_get_brightness(bl); in tps65217_bl_update_status() local [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-6.6/include/linux/ |
| D | leds.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include <dt-bindings/leds/common.h> 32 /* This is obsolete/useless. We now support variable maximum brightness. */ 47 * struct led_lookup_data - represents a single LED lookup entry 65 * default <color:function> tuple, for backward compatibility 66 * with in-driver hard-coded LED names used as a fallback when 79 * only LEDs exposed by drivers of hot-pluggable devices should 101 unsigned int brightness; member 128 /* Brightness off also disables hw-blinking so it is a separate action */ 133 /* Set LED brightness level [all …]
|
| /kernel/linux/linux-6.6/drivers/leds/ |
| D | leds-pwm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/leds-pwm.c 9 * based on leds-gpio.c by Raphael Assenat <raph@8d.com> 42 enum led_brightness brightness) in led_pwm_set() argument 46 unsigned int max = led_dat->cdev.max_brightness; in led_pwm_set() 47 unsigned long long duty = led_dat->pwmstate.period; in led_pwm_set() 49 duty *= brightness; in led_pwm_set() 52 if (led_dat->active_low) in led_pwm_set() 53 duty = led_dat->pwmstate.period - duty; in led_pwm_set() 55 led_dat->pwmstate.duty_cycle = duty; in led_pwm_set() [all …]
|