Home
last modified time | relevance | path

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

12345678910>>...16

/kernel/linux/linux-5.10/drivers/video/backlight/
Dpwm_bl.c1 // 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 …]
Dled_bl.c1 // 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 …]
/kernel/linux/linux-4.19/drivers/video/backlight/
Dpwm_bl.c33 unsigned int *levels; member
42 int brightness);
44 int brightness);
49 static void pwm_backlight_power_on(struct pwm_bl_data *pb, int brightness) in pwm_backlight_power_on() argument
53 if (pb->enabled) in pwm_backlight_power_on()
56 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on()
58 dev_err(pb->dev, "failed to enable power supply\n"); in pwm_backlight_power_on()
60 pwm_enable(pb->pwm); in pwm_backlight_power_on()
62 if (pb->post_pwm_on_delay) in pwm_backlight_power_on()
63 msleep(pb->post_pwm_on_delay); in pwm_backlight_power_on()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/leds/backlight/
Dpwm-backlight.txt1 pwm-backlight bindings
4 - compatible: "pwm-backlight"
5 - pwms: OF device-tree PWM specification (see PWM binding[0])
6 - power-supply: regulator for supply voltage
9 - pwm-names: a list of names for the PWM devices specified in the
11 - enable-gpios: contains a single GPIO specifier for the GPIO which enables
13 - post-pwm-on-delay-ms: Delay in ms between setting an initial (non-zero) PWM
15 - pwm-off-delay-ms: Delay in ms between disabling the backlight using GPIO
17 - brightness-levels: Array of distinct brightness levels. Typically these
19 0 will do. The actual brightness level (PWM duty cycle)
[all …]
/kernel/linux/linux-5.10/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>
53 static int disable_backlight_sysfs_if = -1;
58 static int report_key_events = -1;
61 "0: none, 1: output changes, 2: brightness changes, 3: all");
63 static int hw_changes_brightness = -1;
66 "Set this to 1 on buggy hw which changes the brightness itself when "
67 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness");
76 static int only_lcd = -1;
[all …]
/kernel/linux/linux-4.19/drivers/acpi/
Dacpi_video.c2 * video.c - ACPI Video Driver
6 * Copyright (C) 2006 Thomas Tuttle <linux-kernel@ttuttle.net>
66 static int disable_backlight_sysfs_if = -1;
71 static int report_key_events = -1;
74 "0: none, 1: output changes, 2: brightness changes, 3: all");
76 static int hw_changes_brightness = -1;
79 "Set this to 1 on buggy hw which changes the brightness itself when "
80 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness");
89 static int only_lcd = -1;
103 * the rest are all supported levels.
[all …]
/kernel/linux/linux-4.19/Documentation/acpi/
Dvideo_extension.txt22 Documentation/ABI/stable/sysfs-class-backlight.
26 get the brightness level the firmware thinks it is at;
27 bl_power: not implemented, will set the current brightness instead;
28 brightness: on write, control method _BCM will run to set the requested
29 brightness level;
34 brightness, actual_brightness and max_brightness. So if we have
56 The first two levels are for when laptop are on AC or on battery and are
57 not used by Linux currently. The remaining 10 levels are supported levels
59 corresponds to the 0x0A brightness value) to 9 (that corresponds to the
60 0x64 brightness value) inclusive. Each of those index values is regarded
[all …]
/kernel/linux/linux-4.19/Documentation/ABI/testing/
Dsysfs-class-backlight-adp55202 ---------------------------------------------------------------
4 The backlight brightness control operates at three different levels for the
6 (level 3). By default the brightness operates at the daylight brightness level.
15 (RW) Maximum current setting for the backlight when brightness
16 is at one of the three levels (daylight, office or dark). This
18 value between 0 mA and 30 mA using linear or non-linear
28 (RW) Dim current setting for the backlight when brightness is at
29 one of the three levels (daylight, office or dark). This is an
31 between 0 mA and 30 mA using linear or non-linear algorithms.
Dsysfs-class-backlight-adp88602 -----------------------------------------------------------
4 The backlight brightness control operates at three different levels for the
6 dark (level 3). By default the brightness operates at the daylight brightness
14 (RO) 13-bit conversion value for the first light sensor—high
37 (RW) Maximum current setting for the backlight when brightness
38 is at one of the three levels (daylight, office or dark). This
40 value between 0 mA and 30 mA using linear or non-linear
51 (RW) Dim current setting for the backlight when brightness is at
52 one of the three levels (daylight, office or dark). This is an
54 between 0 mA and 30 mA using linear or non-linear algorithms.
Dsysfs-class-led1 What: /sys/class/leds/<led>/brightness
6 Set the brightness of the LED. Most LEDs don't
7 have hardware brightness support, so will just be turned on for
8 non-zero brightness settings. The value is between 0 and
13 Writing non-zero to this file while trigger is active changes the
14 top brightness trigger is going to use.
21 Maximum brightness level for this LED, default is 255 (LED_FULL).
23 If the LED does not support different brightness levels, this
30 Last hardware set brightness level for this LED. Some LEDs
36 the brightness.
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-backlight-adp55202 ---------------------------------------------------------------
4 The backlight brightness control operates at three different levels for the
6 (level 3). By default the brightness operates at the daylight brightness level.
15 (RW) Maximum current setting for the backlight when brightness
16 is at one of the three levels (daylight, office or dark). This
18 value between 0 mA and 30 mA using linear or non-linear
28 (RW) Dim current setting for the backlight when brightness is at
29 one of the three levels (daylight, office or dark). This is an
31 between 0 mA and 30 mA using linear or non-linear algorithms.
Dsysfs-class-backlight-adp88602 -----------------------------------------------------------
4 The backlight brightness control operates at three different levels for the
6 dark (level 3). By default the brightness operates at the daylight brightness
20 (RW) Maximum current setting for the backlight when brightness
21 is at one of the three levels (daylight, office or dark). This
23 value between 0 mA and 30 mA using linear or non-linear
34 (RW) Dim current setting for the backlight when brightness is at
35 one of the three levels (daylight, office or dark). This is an
37 between 0 mA and 30 mA using linear or non-linear algorithms.
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 …]
/kernel/linux/linux-5.10/Documentation/firmware-guide/acpi/
Dvideo_extension.rst1 .. 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 …]
/kernel/linux/linux-5.10/drivers/thermal/intel/int340x_thermal/
Dint3406_thermal.c1 // 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 …]
/kernel/linux/linux-4.19/drivers/thermal/int340x_thermal/
Dint3406_thermal.c33 * "Each brightness level is represented by a number between 0 and 100,
35 * power consumption or 50% brightness, as defined by the OEM."
39 * the percentage of brightness only
41 #define ACPI_TO_RAW(v, d) (d->raw_bd->props.max_brightness * v / 100)
42 #define RAW_TO_ACPI(v, d) (v * 100 / d->raw_bd->props.max_brightness)
48 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_max_state()
50 *state = d->upper_limit - d->lower_limit; in int3406_thermal_get_max_state()
58 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_set_cur_state()
61 if (state > d->upper_limit - d->lower_limit) in int3406_thermal_set_cur_state()
62 return -EINVAL; in int3406_thermal_set_cur_state()
[all …]
/kernel/linux/linux-4.19/Documentation/leds/
Dleds-lm3556.txt5 1.5 A Synchronous Boost LED Flash Driver w/ High-Side Current Source
10 Contact:Daniel Jeong(daniel.jeong-at-ti.com, gshark.jeong-at-gmail.com)
13 -----------
17 In Flash Mode, the LED current source(LED) provides 16 target current levels
21 LM3556 Flash can be controlled through sys/class/leds/flash/brightness file
22 * if STROBE pin is enabled, below example control brightness only, and
26 OFF : #echo 0 > sys/class/leds/flash/brightness
27 93.75 mA: #echo 1 > sys/class/leds/flash/brightness
29 1500 mA: #echo 16 > sys/class/leds/flash/brightness
35 LM3556 torch can be controlled through sys/class/leds/torch/brightness file.
[all …]
/kernel/linux/linux-5.10/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
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 …]
/kernel/linux/linux-5.10/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", "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>;
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", "allwinner,sun50i-a64";
14 power-supply = <&reg_ldo_io0>;
18 * is around 10%. Duty cycle for the lowest brightness level also varries
22 brightness-levels = <
29 num-interpolated-steps = <50>;
30 default-brightness-level = <500>;
38 interrupt-parent = <&pio>;
/kernel/linux/linux-5.10/Documentation/leds/
Dleds-lm3556.rst6 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 …]
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 …]
/kernel/linux/linux-4.19/drivers/leds/
Dleds-tca6507.c2 * leds-tca6507
8 * blink or double-blink.
11 * out-only (pull-up resistor required) or as an LED with variable
12 * brightness and hardware-assisted blinking.
14 * Apart from OFF and ON there are three programmable brightness
15 * levels which can be programmed from 0 to 15 and indicate how many
16 * 500usec intervals in each 8msec that the led is 'on'. The levels
20 * with separate time for rise, on, fall, off and second-off. Thus if
21 * 3 or more different non-trivial rates are required, software must
23 * align with the two levels BANK0 and BANK1. This driver does not
[all …]

12345678910>>...16