/Linux-v6.1/drivers/video/backlight/ |
D | pwm_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 unsigned int *levels; member 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() [all …]
|
D | led_bl.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2015-2019 Texas Instruments Incorporated - http://www.ti.com/ 20 unsigned int *levels; member 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() [all …]
|
/Linux-v6.1/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@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 bindings 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 …]
|
/Linux-v6.1/drivers/acpi/ |
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> 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"); 70 static int only_lcd = -1; 97 * the rest are all supported levels. [all …]
|
/Linux-v6.1/Documentation/firmware-guide/acpi/ |
D | video_extension.rst | 1 .. SPDX-License-Identifier: GPL-2.0 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 65 The first two levels are for when laptop are on AC or on battery and are 66 not used by Linux currently. The remaining 10 levels are supported levels 68 corresponds to the 0x0A brightness value) to 9 (that corresponds to the [all …]
|
/Linux-v6.1/drivers/thermal/intel/int340x_thermal/ |
D | int3406_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 * "Each brightness level is represented by a number between 0 and 100, 31 * power consumption or 50% brightness, as defined by the OEM." 35 * the percentage of brightness only 37 #define ACPI_TO_RAW(v, d) (d->raw_bd->props.max_brightness * v / 100) 38 #define RAW_TO_ACPI(v, d) (v * 100 / d->raw_bd->props.max_brightness) 44 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_max_state() 46 *state = d->upper_limit - d->lower_limit; in int3406_thermal_get_max_state() 54 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_set_cur_state() 57 if (state > d->upper_limit - d->lower_limit) in int3406_thermal_set_cur_state() [all …]
|
/Linux-v6.1/Documentation/ABI/testing/ |
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-v6.1/drivers/leds/ |
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 16 * levels which can be programmed from 0 to 15 and indicate how many 17 * 500usec intervals in each 8msec that the led is 'on'. The levels 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 [all …]
|
/Linux-v6.1/Documentation/leds/ |
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 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 …]
|
D | leds-lm3556.rst | 6 1.5 A Synchronous Boost LED Flash Driver w/ High-Side Current Source 10 - Daniel Jeong 12 Contact:Daniel Jeong(daniel.jeong-at-ti.com, gshark.jeong-at-gmail.com) 15 ----------- 21 In Flash Mode, the LED current source(LED) provides 16 target current levels 26 LM3556 Flash can be controlled through /sys/class/leds/flash/brightness file 28 * if STROBE pin is enabled, below example control brightness only, and 35 #echo 0 > /sys/class/leds/flash/brightness 39 #echo 1 > /sys/class/leds/flash/brightness 45 #echo 16 > /sys/class/leds/flash/brightness [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/allwinner/ |
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 …]
|
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-v6.1/include/linux/ |
D | pwm_backlight.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c 16 unsigned int *levels; member 20 int (*notify)(struct device *dev, int brightness); 21 void (*notify_after)(struct device *dev, int brightness);
|
/Linux-v6.1/Documentation/power/regulator/ |
D | overview.rst | 26 - Regulator 27 - Electronic device that supplies power to other devices. 31 Input Voltage -> Regulator -> Output Voltage 34 - PMIC 35 - Power Management IC. An IC that contains numerous 39 - Consumer 40 - Electronic device that is supplied power by a regulator. 41 Consumers can be classified into two types:- 52 - Power Domain 53 - Electronic circuit that is supplied its input power by the [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/renesas/ |
D | hihope-rzg2-ex-lvds.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 10 compatible = "pwm-backlight"; 13 brightness-levels = <0 2 8 16 32 64 128 255>; 14 default-brightness-level = <6>; 23 lvds-connector-en-hog { 24 gpio-hog; 26 output-low; 27 line-name = "lvds-connector-en-gpio"; 48 pinctrl-0 = <&pwm0_pins>; 49 pinctrl-names = "default";
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | wm8850-w70v2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8850-w70v2.dts 4 * - Device tree file for Wondermedia WM8850 Tablet 5 * - 'W70-V2' mainboard 6 * - HongLianYing 'HLY070ML268-21A' 7" LCD panel 11 /dts-v1/; 13 #include <dt-bindings/pwm/pwm.h> 16 model = "Wondermedia WM8850-W70v2 Tablet"; 19 compatible = "pwm-backlight"; 22 brightness-levels = <0 40 60 80 100 130 190 255>; [all …]
|
D | imx53-tx53-x13x.dts | 2 * Copyright 2013-2017 Lothar Waßmann <LW@KARO-electronics.de> 4 * This file is dual-licensed: you can use it either under the terms 44 * http://www.opensource.org/licenses/gpl-license.html 48 /dts-v1/; 49 #include "imx53-tx53.dtsi" 50 #include <dt-bindings/input/input.h> 53 model = "Ka-Ro electronics TX53 module (LVDS)"; 63 compatible = "pwm-backlight"; 65 power-supply = <®_3v3>; 66 brightness-levels = < [all …]
|
D | sun5i-a13-utoo-p66.dts | 4 * This file is dual-licensed: you can use it either under the terms 43 /dts-v1/; 44 #include "sun5i-a13.dtsi" 45 #include "sun5i-reference-design-tablet.dtsi" 46 #include <dt-bindings/interrupt-controller/irq.h> 50 compatible = "utoo,p66", "allwinner,sun5i-a13"; 54 /delete-property/serial0; 58 /delete-property/stdout-path; 63 compatible = "i2c-gpio"; 64 sda-gpios = <&pio 6 12 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PG12 */ [all …]
|
D | imx6qdl-vicut1.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 #include <dt-bindings/display/sdtv-standards.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/media/tvp5150.h> 12 #include <dt-bindings/sound/fsl-imx-audmux.h> 16 stdout-path = &uart4; 20 compatible = "pwm-backlight"; 21 pinctrl-names = "default"; [all …]
|
D | imx6dl-aristainetos_7.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 7 /dts-v1/; 9 #include "imx6qdl-aristainetos.dtsi" 13 compatible = "abb,aristainetos-imx6dl-7", "fsl,imx6dl"; 21 compatible = "fsl,imx-parallel-display"; 22 interface-pix-fmt = "rgb24"; 23 pinctrl-names = "default"; 24 pinctrl-0 = <&pinctrl_ipu_disp>; 27 display-timings { 29 native-mode; [all …]
|
D | imx6qdl-skov-revc-lt2.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 compatible = "pwm-backlight"; 8 pinctrl-names = "default"; 9 pinctrl-0 = <&pinctrl_backlight>; 10 enable-gpios = <&gpio6 23 GPIO_ACTIVE_LOW>; 12 brightness-levels = <0 255>; 13 num-interpolated-steps = <17>; 14 default-brightness-level = <8>; 15 power-supply = <®_24v0>; 19 #address-cells = <1>; [all …]
|
D | imx6dl-aristainetos_4.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 7 /dts-v1/; 9 #include "imx6qdl-aristainetos.dtsi" 13 compatible = "abb,aristainetos-imx6dl-4", "fsl,imx6dl"; 16 compatible = "pwm-backlight"; 18 brightness-levels = <0 4 8 16 32 64 128 255>; 19 default-brightness-level = <7>; 20 enable-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; 21 pinctrl-names = "default"; 22 pinctrl-0 = <&pinctrl_backlight>; [all …]
|
D | at91-dvk_su60_somc_lcm.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * at91-dvk_su60_somc_lcm.dtsi - Device Tree file for the DVK SOM60 LCD board 12 compatible = "pwm-backlight"; 14 brightness-levels = <0 4 8 16 32 64 128 255>; 15 default-brightness-level = <6>; 22 power-supply = <&vcc_lcd_reg>; 23 #address-cells = <1>; 24 #size-cells = <0>; 28 #address-cells = <1>; 29 #size-cells = <0>; [all …]
|
D | imx6dl-skov-revc-lt6.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 /dts-v1/; 7 #include "imx6qdl-skov-cpu.dtsi" 8 #include "imx6qdl-skov-cpu-revc.dtsi" 12 compatible = "skov,imx6dl-skov-revc-lt6", "fsl,imx6dl"; 15 compatible = "pwm-backlight"; 16 pinctrl-names = "default"; 17 pinctrl-0 = <&pinctrl_backlight>; 18 enable-gpios = <&gpio6 23 GPIO_ACTIVE_LOW>; 20 brightness-levels = <0 255>; [all …]
|