Home
last modified time | relevance | path

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

12345678910>>...14

/linux/drivers/acpi/
H A Dacpi_video.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * video.c - ACPI Video Driver
7 * Copyright (C) 2006 Thomas Tuttle <linux-kernel@ttuttle.net>
52 static int report_key_events = -1;
55 "0: none, 1: output changes, 2: brightness changes, 3: all");
57 static int hw_changes_brightness = -1;
60 "Set this to 1 on buggy hw which changes the brightness itself when "
61 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness");
89 ACPI_VIDEO_AC_LEVEL, /* level when machine has full power */
90 ACPI_VIDEO_BATTERY_LEVEL, /* level when machine is on batteries */
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-backlight6 Description of the scale of the brightness curve.
8 The human eye senses brightness approximately logarithmically,
9 hence linear changes in brightness are perceived as being
10 non-linear. To achieve a linear perception of brightness changes
12 backlights with a linear brightness curve.
17 The scale of the brightness curve is unknown.
20 The brightness changes linearly with each step. Brightness
24 non-linear
25 The brightness changes non-linearly with each step. Brightness
38 The value range is device-driver specific:
[all …]
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 …]
/linux/include/linux/platform_data/x86/
H A Dnvidia-wmi-ec-backlight.h1 /* SPDX-License-Identifier: GPL-2.0-only */
9 #define WMI_BRIGHTNESS_GUID "603E9613-EF25-4338-A3D0-C46177516DB7"
12 * enum wmi_brightness_method - WMI method IDs
13 * @WMI_BRIGHTNESS_METHOD_LEVEL: Get/Set EC brightness level status
14 * @WMI_BRIGHTNESS_METHOD_SOURCE: Get/Set EC Brightness Source
23 * enum wmi_brightness_mode - Operation mode for WMI-wrapped method
24 * @WMI_BRIGHTNESS_MODE_GET: Get the current brightness level/source.
25 * @WMI_BRIGHTNESS_MODE_SET: Set the brightness level.
26 * @WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL: Get the maximum brightness level. This
38 * enum wmi_brightness_source - Backlight brightness control source selection
[all …]
/linux/Documentation/firmware-guide/acpi/
H A Dvideo_extension.rst1 .. SPDX-License-Identifier: GPL-2.0
16 Export a sysfs interface for user space to control backlight level
26 Documentation/ABI/stable/sysfs-class-backlight.
32 get the brightness level the firmware thinks it is at;
34 not implemented, will set the current brightness instead;
35 brightness:
36 on write, control method _BCM will run to set the requested brightness level;
43 brightness, actual_brightness and max_brightness. So if we have
68 corresponds to the 0x0A brightness value) to 9 (that corresponds to the
69 0x64 brightness value) inclusive. Each of those index values is regarded
[all …]
/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>
15 - $ref: common.yaml#
19 const: pwm-backlight
[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 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 …]
/linux/drivers/video/backlight/
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 Dadp8870_bl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2009-2011 Analog Devices Inc.
35 #define ADP8870_BLMX1 0x0A /* Backlight (Brightness Level 1-daylight) maximum current */
36 #define ADP8870_BLDM1 0x0B /* Backlight (Brightness Level 1-daylight) dim current */
37 #define ADP8870_BLMX2 0x0C /* Backlight (Brightness Level 2-bright) maximum current */
38 #define ADP8870_BLDM2 0x0D /* Backlight (Brightness Level 2-bright) dim current */
39 #define ADP8870_BLMX3 0x0E /* Backlight (Brightness Level 3-office) maximum current */
40 #define ADP8870_BLDM3 0x0F /* Backlight (Brightness Level 3-office) dim current */
41 #define ADP8870_BLMX4 0x10 /* Backlight (Brightness Level 4-indoor) maximum current */
42 #define ADP8870_BLDM4 0x11 /* Backlight (Brightness Level 4-indoor) dim current */
[all …]
H A Dled_bl.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2015-2019 Texas Instruments Incorporated - http://www.ti.com/
25 static void led_bl_set_brightness(struct led_bl_data *priv, int level) in led_bl_set_brightness() argument
30 if (priv->levels) in led_bl_set_brightness()
31 bkl_brightness = priv->levels[level]; in led_bl_set_brightness()
33 bkl_brightness = 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()
[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 Dadp8860_bl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2009-2010 Analog Devices Inc.
33 #define ADP8860_BLMX1 0x09 /* Backlight (Brightness Level 1-daylight) maximum current */
34 #define ADP8860_BLDM1 0x0A /* Backlight (Brightness Level 1-daylight) dim current */
35 #define ADP8860_BLMX2 0x0B /* Backlight (Brightness Level 2-office) maximum current */
36 #define ADP8860_BLDM2 0x0C /* Backlight (Brightness Level 2-office) dim current */
37 #define ADP8860_BLMX3 0x0D /* Backlight (Brightness Level 3-dark) maximum current */
38 #define ADP8860_BLDM3 0x0E /* Backlight (Brightness Level 3-dark) dim current */
57 #define ADP8860_PH1LEVL 0x21 /* First phototransistor ambient light level-low byte register */
58 #define ADP8860_PH1LEVH 0x22 /* First phototransistor ambient light level-high byte register */
[all …]
H A Dbacklight.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2003,2004 Hewlett-Packard Company
33 * When the core detect changes in for example brightness or power state
39 * - brightness R/W, set the requested brightness level
40 * - actual_brightness RO, the brightness level used by the HW
41 * - max_brightness RO, the maximum brightness level supported
43 * See Documentation/ABI/stable/sysfs-class-backlight for the full list.
47 * a hot-key or some other platform or firmware specific way.
51 * brightness, thus providing user-space access to the actual level
54 * When the backlight changes this is reported to user-space using
[all …]
H A Dmp3309c.c1 // SPDX-License-Identifier: GPL-2.0-or-later
92 /* I2C register #0 - Device enable */ in mp3309c_enable_device()
93 ret = regmap_update_bits(chip->regmap, REG_I2C_0, REG_I2C_0_EN, in mp3309c_enable_device()
99 * I2C register #1 - Set working mode: in mp3309c_enable_device()
100 * - enable/disable synchronous mode in mp3309c_enable_device()
101 * - set overvoltage protection (OVP) in mp3309c_enable_device()
104 if (chip->pdata->sync_mode) in mp3309c_enable_device()
106 reg_val |= chip->pdata->over_voltage_protection; in mp3309c_enable_device()
107 ret = regmap_write(chip->regmap, REG_I2C_1, reg_val); in mp3309c_enable_device()
117 int brightness = backlight_get_brightness(bl); in mp3309c_bl_update_status() local
[all …]
/linux/drivers/leds/
H A Dleds-tca6507.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * leds-tca6507
9 * blink or double-blink.
12 * out-only (pull-up resistor required) or as an LED with variable
13 * brightness and hardware-assisted blinking.
15 * Apart from OFF and ON there are three programmable brightness
21 * with separate time for rise, on, fall, off and second-off. Thus if
22 * 3 or more different non-trivial rates are required, software must
25 * support double-blink so 'second-off' always matches 'off'.
42 * delays in the ranges: 56-72, 112-144, 168-216, 224-27504,
[all …]
/linux/drivers/leds/flash/
H A Dleds-mt6360.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/led-class-flash.h>
9 #include <linux/led-class-multicolor.h>
15 #include <media/v4l2-flash-led-class.h>
29 #define MT6360_ISNK_ENMASK(_led_no) BIT(7 - (_led_no))
39 #define MT6360_REG_FLEDBASE(_id) (0x372 + 4 * (_id - MT6360_LED_FLASH1))
49 #define MT6360_FLCSEN_MASK(_id) BIT(MT6360_LED_FLASH2 - _id)
98 enum led_brightness level) in mt6360_mc_brightness_set() argument
102 struct mt6360_priv *priv = led->priv; in mt6360_mc_brightness_set()
106 mutex_lock(&priv->lock); in mt6360_mc_brightness_set()
[all …]
H A Dleds-mt6370-flash.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/led-class-flash.h>
22 #include <media/v4l2-flash-led-class.h>
43 #define MT6370_FLCSEN_MASK(_id) BIT(MT6370_LED_FLASH2 - (_id))
87 static int mt6370_torch_brightness_set(struct led_classdev *lcdev, enum led_brightness level) in mt6370_torch_brightness_set() argument
90 struct mt6370_priv *priv = led->priv; in mt6370_torch_brightness_set()
91 u32 led_enable_mask = led->led_no == MT6370_LED_JOINT ? MT6370_FLCSEN_MASK_ALL : in mt6370_torch_brightness_set()
92 MT6370_FLCSEN_MASK(led->led_no); in mt6370_torch_brightness_set()
94 u32 val = level ? led_enable_mask : 0; in mt6370_torch_brightness_set()
98 mutex_lock(&priv->lock); in mt6370_torch_brightness_set()
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dti-lmu.txt6 ------ ---------------------------------
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
30 the a higher brightness level.
31 Range from 2048 us - 117.44 s
32 - ramp-down-us: Current ramping from one brightness level to
33 the a lower brightness level.
34 Range from 2048 us - 117.44 s
[all …]
/linux/Documentation/admin-guide/laptops/
H A Dthinkpad-acpi.rst9 - Borislav Deianov <borislav@users.sf.net>
10 - Henrique de Moraes Holschuh <hmh@hmh.eng.br>
12 http://ibm-acpi.sf.net/
19 This driver used to be named ibm-acpi until kernel 2.6.21 and release
20 0.13-20070314. It used to be in the drivers/acpi tree, but it was
21 moved to the drivers/misc tree and renamed to thinkpad-acpi for kernel
25 The driver is named "thinkpad-acpi". In some places, like module
29 "tpacpi" is used as a shorthand where "thinkpad-acpi" would be too
33 ------
38 - Fn key combinations
[all …]
/linux/arch/arm64/boot/dts/allwinner/
H A Dsun50i-a64-pinephone-1.1.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 /dts-v1/;
6 #include "sun50i-a64-pinephone.dtsi"
10 compatible = "pine64,pinephone-1.1", "pine64,pinephone", "allwinner,sun50i-a64";
14 power-supply = <&reg_ldo_io0>;
18 * being off is around 20%. Duty cycle for the lowest brightness level
22 brightness-levels = <
28 num-interpolated-steps = <50>;
29 default-brightness-level = <400>;
33 allwinner,internal-bias-resistor;
[all …]
H A Dsun50i-a64-pinephone-1.2.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 /dts-v1/;
6 #include "sun50i-a64-pinephone.dtsi"
10 compatible = "pine64,pinephone-1.2", "pine64,pinephone", "allwinner,sun50i-a64";
12 wifi_pwrseq: wifi-pwrseq {
13 compatible = "mmc-pwrseq-simple";
14 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
19 power-supply = <&reg_ldo_io0>;
23 * is around 10%. Duty cycle for the lowest brightness level also varries
27 brightness-levels = <
[all …]
/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
66 * with in-driver hard-coded LED names used as a fallback when
79 * only LEDs exposed by drivers of hot-pluggable devices should
93 unsigned int brightness; member
122 /* Brightness off also disables hw-blinking so it is a separate action */
127 /* Set LED brightness level
129 * that can sleep while setting brightness.
[all …]
/linux/Documentation/leds/
H A Dleds-class-multicolor.rst1 .. SPDX-License-Identifier: GPL-2.0
12 via brightness file.
18 led_class framework. The led_class framework is documented in led-class.rst
34 root:/sys/class/leds/multicolor:status# ls -lR
35 -rw-r--r-- 1 root root 4096 Oct 19 16:16 brightness
36 -r--r--r-- 1 root root 4096 Oct 19 16:16 max_brightness
37 -r--r--r-- 1 root root 4096 Oct 19 16:16 multi_index
38 -rw-r--r-- 1 root root 4096 Oct 19 16:16 multi_intensity
40 Multicolor Class Brightness Control
42 The brightness level for each LED is calculated based on the color LED
[all …]
/linux/drivers/leds/rgb/
H A Dleds-mt6370-rgb.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/led-class-multicolor.h>
110 #define MT6370_CHEN_BIT(id) BIT(MT6370_LED_ISNK4 - id)
113 #define MT6370_PWM_DUTY (BIT(5) - 1)
114 #define MT6372_PWM_DUTY (BIT(8) - 1)
119 * - 'LED_COLOR_ID_RGB'
120 * - 'LED_COLOR_ID_MULTI'
236 .reg_rgb_chrind_tr = -1,
254 unsigned int level) in mt6370_set_led_brightness() argument
260 return regmap_field_write(priv->fields[sel_field], level); in mt6370_set_led_brightness()
[all …]

12345678910>>...14