Home
last modified time | relevance | path

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

12345678910>>...15

/Linux-v5.15/Documentation/devicetree/bindings/leds/backlight/
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 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 …]
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 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 …]
Dtps65217-backlight.txt7 - compatible: "ti,tps65217"
8 - reg: I2C slave address
9 - backlight: node for specifying WLED1 and WLED2 lines in TPS65217
10 - isel: selection bit, valid values: 1 for ISEL1 (low-level) and 2 for ISEL2 (high-level)
11 - fdim: PWM dimming frequency, valid values: 100, 200, 500, 1000
12 - default-brightness: valid values: 0-100
22 isel = <1>; /* 1 - ISET1, 2 ISET2 */
24 default-brightness = <50>;
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.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 …]
/Linux-v5.15/drivers/acpi/
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>
50 static int disable_backlight_sysfs_if = -1;
55 static int report_key_events = -1;
58 "0: none, 1: output changes, 2: brightness changes, 3: all");
60 static int hw_changes_brightness = -1;
63 "Set this to 1 on buggy hw which changes the brightness itself when "
64 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness");
73 static int only_lcd = -1;
[all …]
/Linux-v5.15/Documentation/ABI/testing/
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 …]
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-v5.15/Documentation/firmware-guide/acpi/
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-v5.15/drivers/leds/
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-v5.15/arch/powerpc/platforms/powermac/
Dbacklight.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (C) 2006 Michael Hanselmann <linux-kernel@hansmi.ch>
36 /* The via-pmu code allows the backlight to be grabbed, in which case the
37 * in-kernel control of the brightness needs to be disabled. This should
65 "backlight-control", NULL); in pmac_has_backlight_type()
78 int level = (FB_BACKLIGHT_LEVELS - 1); in pmac_backlight_curve_lookup() local
80 if (info && info->bl_dev) { in pmac_backlight_curve_lookup()
85 max = max((int)info->bl_curve[i], max); in pmac_backlight_curve_lookup()
89 int diff = abs(info->bl_curve[i] - value); in pmac_backlight_curve_lookup()
92 level = i; in pmac_backlight_curve_lookup()
[all …]
/Linux-v5.15/drivers/video/backlight/
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 …]
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 …]
Dtps65217_bl.c39 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 …]
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 …]
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 …]
/Linux-v5.15/Documentation/devicetree/bindings/mfd/
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-v5.15/drivers/platform/x86/
Dfujitsu-laptop.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*-*-linux-c-*-*/
10 Adrian Yee <brewt-fujitsu@brewt.org>
12 Templated from msi-laptop.c and thinkpad_acpi.c which is copyright
18 * fujitsu-laptop.c - Fujitsu laptop support, providing access to additional
22 * This driver implements a vendor-specific backlight control interface for
27 * P8010. It should work on most P-series and S-series Lifebooks, but
31 * brightness controls which are used by different Fujitsu laptops. In most
48 #include <linux/input/sparse-keymap.h>
60 #define ACPI_FUJITSU_BL_DRIVER_NAME "Fujitsu laptop FUJ02B1 ACPI brightness driver"
[all …]
Dmsi-wmi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Most stuff taken over from hp-wmi
14 #include <linux/input/sparse-keymap.h>
25 #define DRV_NAME "msi-wmi"
27 #define MSIWMI_BIOS_GUID "551A1F84-FBDD-4125-91DB-3EA8F44F1D45"
28 #define MSIWMI_MSI_EVENT_GUID "B6F3EEF2-3D2F-49DC-9DE3-85BCE18C62F2"
29 #define MSIWMI_WIND_EVENT_GUID "5B3CC38A-40D9-7245-8AE6-1145B751BE3F"
46 WIND_KEY_WLAN = 0x5f, /* Fn+F11 Wi-Fi toggle */
100 return -EIO; in msi_wmi_query_block()
104 if (!obj || obj->type != ACPI_TYPE_INTEGER) { in msi_wmi_query_block()
[all …]
/Linux-v5.15/Documentation/admin-guide/laptops/
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-v5.15/arch/arm64/boot/dts/allwinner/
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 enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
[all …]
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-v5.15/drivers/macintosh/
Dvia-pmu-backlight.c1 // SPDX-License-Identifier: GPL-2.0
3 * Backlight code for via-pmu
6 * Copyright (C) 2001-2002 Benjamin Herrenschmidt
7 * Copyright (C) 2006 Michael Hanselmann <linux-kernel@hansmi.ch>
26 int i, flat, count, range = (max - min); in pmu_backlight_init_curve()
40 int level = (FB_BACKLIGHT_LEVELS - 1); in pmu_backlight_curve_lookup() local
49 int diff = abs(bl_curve[i] - value); in pmu_backlight_curve_lookup()
52 level = i; in pmu_backlight_curve_lookup()
55 return level; in pmu_backlight_curve_lookup()
58 static int pmu_backlight_get_level_brightness(int level) in pmu_backlight_get_level_brightness() argument
[all …]
/Linux-v5.15/Documentation/leds/
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-v5.15/include/linux/
Dleds.h1 /* 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. */
47 * with in-driver hard-coded LED names used as a fallback when
60 * only LEDs exposed by drivers of hot-pluggable devices should
72 unsigned int brightness; member
99 /* Set LED brightness level
101 * that can sleep while setting brightness.
104 enum led_brightness brightness);
106 * Set LED brightness level immediately - it can block the caller for
[all …]
/Linux-v5.15/Documentation/ABI/stable/
Dsysfs-class-backlight8 - FB_BLANK_UNBLANK (0) : power on.
9 - FB_BLANK_POWERDOWN (4) : power off
12 What: /sys/class/backlight/<backlight>/brightness
17 Control the brightness for this <backlight>. Values
19 show the brightness level stored in the driver, which
20 may not be the actual brightness (see actual_brightness).
28 Show the actual brightness by querying the hardware.
36 Maximum brightness for <backlight>.
46 "platform": The driver uses a platform-specific interface
56 holdover from pre-standardisation of firmware

12345678910>>...15