| /linux/drivers/acpi/ |
| H A D | acpi_video.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * video.c - ACPI Video Driver 7 * Copyright (C) 2006 Thomas Tuttle <linux-kernel@ttuttle.net> 53 static int report_key_events = -1; 56 "0: none, 1: output changes, 2: brightness changes, 3: all"); 58 static int hw_changes_brightness = -1; 61 "Set this to 1 on buggy hw which changes the brightness itself when " 62 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness"); 90 ACPI_VIDEO_AC_LEVEL, /* level when machine has full power */ 91 ACPI_VIDEO_BATTERY_LEVEL, /* level when machine is on batteries */ [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-backlight | 6 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 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 …]
|
| /linux/include/linux/platform_data/x86/ |
| H A D | nvidia-wmi-ec-backlight.h | 1 /* 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 D | video_extension.rst | 1 .. 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 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> 15 - $ref: common.yaml# 19 const: pwm-backlight [all …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | kinetic,ktd2801.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Kinetic Technologies KTD2801 one-wire backlight 10 - Duje Mihanović <duje.mihanovic@skole.hr> 15 or by pulsing the GPIO line to set the backlight level. This is called 19 - $ref: common.yaml# 25 ctrl-gpios: 28 default-brightness: true 29 max-brightness: true [all …]
|
| H A 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 …]
|
| /linux/drivers/leds/ |
| H A D | leds-tca6507.c | 1 // 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 D | leds-mt6360.c | 1 // 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 D | leds-mt6370-flash.c | 1 // 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/drivers/platform/chrome/ |
| H A D | cros_kbd_led_backlight.c | 1 // SPDX-License-Identifier: GPL-2.0+ 28 * struct keyboard_led_drvdata - keyboard LED driver data. 30 * @brightness_get: Get LED brightness level. 31 * @brightness_set: Set LED brightness level. Must not sleep. 32 * @brightness_set_blocking: Set LED brightness level. It can block the 35 * @max_brightness: Maximum brightness. 45 enum led_brightness brightness); 47 enum led_brightness brightness); 62 enum led_brightness brightness) in keyboard_led_set_brightness_acpi() argument 69 param.integer.value = brightness; in keyboard_led_set_brightness_acpi() [all …]
|
| /linux/Documentation/devicetree/bindings/mfd/ |
| H A D | ti-lmu.txt | 6 ------ --------------------------------- 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 D | thinkpad-acpi.rst | 9 - 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/drivers/platform/x86/ |
| H A D | fujitsu-laptop.c | 1 // 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 47 #include <linux/input/sparse-keymap.h> 61 #define ACPI_FUJITSU_BL_DRIVER_NAME "Fujitsu laptop FUJ02B1 ACPI brightness driver" [all …]
|
| H A D | msi-wmi.c | 1 // 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/arch/arm64/boot/dts/allwinner/ |
| H A D | sun50i-a64-pinephone-1.1.dts | 1 // 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 = <®_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 D | sun50i-a64-pinephone-1.2.dts | 1 // 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 = <®_ldo_io0>; 23 * is around 10%. Duty cycle for the lowest brightness level also varries 27 brightness-levels = < [all …]
|
| /linux/drivers/platform/x86/lenovo/ |
| H A D | yogabook.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Platform driver for Lenovo Yoga Book YB1-X90F/L tablets (Android model) 4 * WMI driver for Lenovo Yoga Book YB1-X91F/L tablets (Windows model) 26 #define YB_MBTN_EVENT_GUID "243FEC1D-1963-41C1-8100-06A9D82A94B4" 32 #define YB_PDEV_NAME "yogabook-touch-kbd-digitizer-switch" 54 int (*set_kbd_backlight)(struct yogabook_data *data, uint8_t level); 60 uint8_t brightness; member 69 if (test_bit(YB_SUSPENDED, &data->flags)) in yogabook_work() 72 if (test_bit(YB_TABLET_MODE, &data->flags)) { in yogabook_work() 75 } else if (test_bit(YB_DIGITIZER_MODE, &data->flags)) { in yogabook_work() [all …]
|
| /linux/include/linux/ |
| H A 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 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 D | leds-class-multicolor.rst | 1 .. 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 .. code-block:: console 36 root:/sys/class/leds/multicolor:status# ls -lR 37 -rw-r--r-- 1 root root 4096 Oct 19 16:16 brightness 38 -r--r--r-- 1 root root 4096 Oct 19 16:16 max_brightness 39 -r--r--r-- 1 root root 4096 Oct 19 16:16 multi_index 40 -rw-r--r-- 1 root root 4096 Oct 19 16:16 multi_intensity 44 Multicolor Class Brightness Control [all …]
|
| /linux/drivers/leds/rgb/ |
| H A D | leds-mt6370-rgb.c | 1 // 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 …]
|
| /linux/drivers/platform/loongarch/ |
| H A D | loongson-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Generic Loongson processor based LAPTOP/ALL-IN-ONE driver 20 #include <linux/input/sparse-keymap.h> 26 /* 1. Driver-wide structs and misc. variables */ 32 #define ACPI_LAPTOP_NAME "loongson-laptop" 142 return -EIO; in hotkey_status_get() 151 if (!sub_driver || !sub_driver->notify) in dispatch_acpi_notify() 153 sub_driver->notify(sub_driver, event); in dispatch_acpi_notify() 160 if (!*sub_driver->handle) in setup_acpi_notify() 163 sub_driver->device = acpi_fetch_acpi_dev(*sub_driver->handle); in setup_acpi_notify() [all …]
|