Home
last modified time | relevance | path

Searched +full:default +full:- +full:brightness (Results 1 – 25 of 741) sorted by relevance

12345678910>>...30

/openbmc/linux/Documentation/devicetree/bindings/leds/backlight/
H A Dpwm-backlight.yaml1 # 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 …]
H A Dled-backlight.yaml1 # 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 …]
H A Dqcom-wled.yaml1 # 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 …]
H A Dlm3630a-backlight.yaml1 # 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 …]
H A Dmediatek,mt6370-backlight.yaml1 # 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 …]
H A Dcommon.yaml1 # 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 …]
H A Darcxcnn_bl.txt4 - 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 …]
/openbmc/linux/drivers/video/backlight/
H A Dktd253-backlight.c1 // 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 …]
H A Dpwm_bl.c1 // 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 …]
H A Das3711_bl.c1 // 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 …]
H A Dled_bl.c1 // 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 …]
H A Drt4831-backlight.c1 // 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 …]
H A Dtps65217_bl.c1 // 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 …]
H A Dmt6370-backlight.c1 // SPDX-License-Identifier: GPL-2.0-only
76 int brightness = backlight_get_brightness(bl_dev); in mt6370_bl_update_status() local
81 if (brightness) { in mt6370_bl_update_status()
82 brightness_val[0] = (brightness - 1) & priv->dim2_mask; in mt6370_bl_update_status()
83 brightness_val[1] = (brightness - 1) >> priv->dim2_shift; in mt6370_bl_update_status()
85 ret = regmap_raw_write(priv->regmap, MT6370_REG_BL_DIM2, in mt6370_bl_update_status()
91 gpiod_set_value(priv->enable_gpio, !!brightness); in mt6370_bl_update_status()
93 enable_val = brightness ? MT6370_BL_EN_MASK : 0; in mt6370_bl_update_status()
94 return regmap_update_bits(priv->regmap, MT6370_REG_BL_EN, in mt6370_bl_update_status()
103 int brightness, ret; in mt6370_bl_get_brightness() local
[all …]
H A Darcxcnn_bl.c1 // 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 …]
/openbmc/linux/include/linux/
H A Dleds.h1 /* 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 …]
/openbmc/linux/drivers/leds/
H A Dleds-pwm.c1 // 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 …]
H A Dleds-max8997.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * leds-max8997.c - LED class driver for MAX8997 LEDs.
14 #include <linux/mfd/max8997-private.h>
51 struct i2c_client *client = led->iodev->i2c; in max8997_led_set_mode()
57 val = led->id ? in max8997_led_set_mode()
59 led->cdev.max_brightness = MAX8997_LED_FLASH_MAX_BRIGHTNESS; in max8997_led_set_mode()
63 val = led->id ? in max8997_led_set_mode()
65 led->cdev.max_brightness = MAX8997_LED_MOVIE_MAX_BRIGHTNESS; in max8997_led_set_mode()
70 val = led->id ? in max8997_led_set_mode()
72 led->cdev.max_brightness = MAX8997_LED_FLASH_MAX_BRIGHTNESS; in max8997_led_set_mode()
[all …]
H A Dleds-spi-byte.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2019 Christian Mauderer <oss@c-mauderer.de>
6 * - one LED is controlled by a single byte on MOSI
7 * - the value of the byte gives the brightness between two values (lowest to
9 * - no return value is necessary (no MISO signal)
11 * The value for minimum and maximum brightness depends on the device
15 * - "ubnt,acb-spi-led": Microcontroller (SONiX 8F26E611LA) based device used
19 * * Mode: 00 -> set brightness between 0x00 (min) and 0x3F (max)
20 * * Mode: 01 -> pulsing pattern (min -> max -> min) with an interval. From
24 * * Mode: 10 -> same as 01 but with only a ramp from min to max. Again a
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-led1 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 …]
/openbmc/linux/Documentation/userspace-api/media/v4l/
H A Dmetafmt-vivid.rst1 .. 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 …]
/openbmc/linux/arch/arm/boot/dts/samsung/
H A Dexynos54xx-odroidxu-leds.dtsi1 // SPDX-License-Identifier: GPL-2.0
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/leds/common.h>
15 led-controller-1 {
16 compatible = "pwm-leds";
18 led-1 {
23 pwm-names = "pwm1";
26 * so limit its max brightness
28 max-brightness = <127>;
29 linux,default-trigger = "mmc0";
[all …]
/openbmc/linux/arch/arm/boot/dts/microchip/
H A Dat91-kizbox.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
5 * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com>
6 * 2014-2015 Gaël PORTAY <g.portay@overkiz.com>
8 /dts-v1/;
10 #include <dt-bindings/pwm/pwm.h>
18 stdout-path = &dbgu;
27 clock-frequency = <18432000>;
31 gpio-keys {
32 compatible = "gpio-keys";
[all …]
/openbmc/linux/Documentation/devicetree/bindings/leds/
H A Dleds-netxbig.txt5 - compatible: "lacie,netxbig-leds".
6 - gpio-ext: Phandle for the gpio-ext bus.
9 - timers: Timer array. Each timer entry is represented by three integers:
10 Mode (gpio-ext bus), delay_on and delay_off.
12 Each LED is represented as a sub-node of the netxbig-leds device.
14 Required sub-node properties:
15 - mode-addr: Mode register address on gpio-ext bus.
16 - mode-val: Mode to value mapping. Each entry is represented by two integers:
17 A mode and the corresponding value on the gpio-ext bus.
18 - bright-addr: Brightness register address on gpio-ext bus.
[all …]
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6ull-jozacp.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/leds/common.h>
18 stdout-path = &uart1;
22 led-controller-1 {
23 compatible = "pwm-leds";
25 led-0 {
28 function-enumerator = <0>;
30 max-brightness = <255>;
[all …]

12345678910>>...30