Home
last modified time | relevance | path

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

12345678910>>...16

/linux-5.10/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()
80 if (info && info->bl_dev) { in pmac_backlight_curve_lookup()
81 int i, max = 0; in pmac_backlight_curve_lookup() local
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()
[all …]
/linux-5.10/drivers/video/backlight/
Dktd253-backlight.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Based on code and know-how from the Samsung GT-S7710
40 int brightness = backlight_get_brightness(bl); in ktd253_backlight_update_status() local
42 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status()
45 dev_dbg(ktd253->dev, "new brightness/ratio: %d/32\n", brightness); in ktd253_backlight_update_status()
47 target_ratio = brightness; in ktd253_backlight_update_status()
54 gpiod_set_value_cansleep(ktd253->gpiod, 0); in ktd253_backlight_update_status()
60 ktd253->ratio = 0; in ktd253_backlight_update_status()
65 gpiod_set_value_cansleep(ktd253->gpiod, 1); in ktd253_backlight_update_status()
85 gpiod_set_value(ktd253->gpiod, 0); in ktd253_backlight_update_status()
[all …]
Djornada720_bl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2006-2009 Kristoffer Ericson <kristoffer.ericson@gmail.com>
37 dev_err(&bd->dev, "get brightness timeout\n"); in jornada_bl_get_brightness()
39 return -ETIMEDOUT; in jornada_bl_get_brightness()
47 return BL_MAX_BRIGHT - ret; in jornada_bl_get_brightness()
60 dev_info(&bd->dev, "brightness off timeout\n"); in jornada_bl_update_status()
64 ret = -ETIMEDOUT; in jornada_bl_update_status()
71 dev_info(&bd->dev, "failed to set brightness\n"); in jornada_bl_update_status()
72 ret = -ETIMEDOUT; in jornada_bl_update_status()
79 * please note that maximum brightness is 255, in jornada_bl_update_status()
[all …]
Das3711_bl.c1 // SPDX-License-Identifier: GPL-2.0
29 int brightness; member
42 switch (su->type) { in to_supply()
52 unsigned int brightness) in as3711_set_brightness_auto_i() argument
55 struct as3711 *as3711 = supply->as3711; in as3711_set_brightness_auto_i()
56 const struct as3711_bl_pdata *pdata = supply->pdata; in as3711_set_brightness_auto_i()
60 if (pdata->su2_auto_curr1) in as3711_set_brightness_auto_i()
61 ret = regmap_write(as3711->regmap, AS3711_CURR1_VALUE, in as3711_set_brightness_auto_i()
62 brightness); in as3711_set_brightness_auto_i()
63 if (!ret && pdata->su2_auto_curr2) in as3711_set_brightness_auto_i()
[all …]
/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-netxbig.txt5 - compatible: "lacie,netxbig-leds".
6 - gpio-ext: Phandle for the gpio-ext bus.
9 - timers: Timer array. Each timer entry is represented by three integers:
10 Mode (gpio-ext bus), delay_on and delay_off.
12 Each LED is represented as a sub-node of the netxbig-leds device.
14 Required sub-node properties:
15 - mode-addr: Mode register address on gpio-ext bus.
16 - mode-val: Mode to value mapping. Each entry is represented by two integers:
17 A mode and the corresponding value on the gpio-ext bus.
18 - bright-addr: Brightness register address on gpio-ext bus.
[all …]
Dleds-trigger-pattern.txt3 The pattern is given by a series of tuples, of brightness and duration (ms).
4 The LED is expected to traverse the series and each brightness value for the
5 specified duration. Duration of 0 means brightness should immediately change to
10 change of brightness, i.e. the subsequent brightness will be applied without
19 It will make the LED go gradually from zero-intensity to max (255) intensity in
22 LED brightness
24 255-| / \ / \ /
28 0-| / \/ \/
29 +---0----1----2----3----4----5----6------------> time (s)
31 2. To make the LED go instantly from one brightness value to another, we should
[all …]
Dleds-pwm.txt4 - compatible : should be "pwm-leds".
6 Each LED is represented as a sub-node of the pwm-leds device. Each
9 LED sub-node properties:
10 - pwms : PWM property to point to the PWM device (phandle)/port (id) and to
12 - pwm-names : (optional) Name to be used by the PWM subsystem for the PWM device
13 For the pwms and pwm-names property please refer to:
15 - max-brightness : Maximum brightness possible for the LED
16 - active-low : (optional) For PWMs where the LED is wired to supply
18 - label : (optional)
20 - linux,default-trigger : (optional)
[all …]
/linux-5.10/include/media/i2c/
Dlm3646.h1 /* SPDX-License-Identifier: GPL-2.0-only */
8 * Ldd-Mlp <ldd-mlp@list.ti.com>
14 #include <media/v4l2-subdev.h>
20 /* TOTAL FLASH Brightness Max
21 * min 93350uA, step 93750uA, max 1499600uA
28 ((((a) - LM3646_TOTAL_FLASH_BRT_MIN) / LM3646_TOTAL_FLASH_BRT_STEP)))
30 /* TOTAL TORCH Brightness Max
31 * min 23040uA, step 23430uA, max 187100uA
38 ((((a) - LM3646_TOTAL_TORCH_BRT_MIN) / LM3646_TOTAL_TORCH_BRT_STEP)))
40 /* LED1 FLASH Brightness
[all …]
Dlm3560.h1 /* SPDX-License-Identifier: GPL-2.0-only */
8 * Ldd-Mlp <ldd-mlp@list.ti.com>
14 #include <media/v4l2-subdev.h>
20 /* FLASH Brightness
21 * min 62500uA, step 62500uA, max 1000000uA
28 (((a) - LM3560_FLASH_BRT_MIN) / LM3560_FLASH_BRT_STEP))
33 * min 32ms, step 32ms, max 1024ms
40 (((a) - LM3560_FLASH_TOUT_MIN) / LM3560_FLASH_TOUT_STEP))
45 * min 31250uA, step 31250uA, max 250000uA
52 (((a) - LM3560_TORCH_BRT_MIN) / LM3560_TORCH_BRT_STEP))
[all …]
/linux-5.10/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-5.10/arch/arm/boot/dts/
Dkirkwood-net5big.dts1 // SPDX-License-Identifier: GPL-2.0
9 * Based on netxbig_v2-setup.c,
14 /dts-v1/;
17 #include "kirkwood-6281.dtsi"
18 #include "kirkwood-netxbig.dtsi"
22 compatible = "lacie,net5big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
33 compatible = "regulator-fixed";
35 regulator-name = "hdd1power";
36 regulator-min-microvolt = <5000000>;
37 regulator-max-microvolt = <5000000>;
[all …]
Dkirkwood-netxbig.dtsi1 // SPDX-License-Identifier: GPL-2.0
9 * Based on netxbig_v2-setup.c,
14 #include <dt-bindings/leds/leds-netxbig.h>
16 #include "kirkwood-6281.dtsi"
21 stdout-path = &uart0;
33 #address-cells = <1>;
34 #size-cells = <1>;
35 compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
37 spi-max-frequency = <20000000>;
42 label = "u-boot";
[all …]
Dat91-kizbox.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
5 * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com>
6 * 2014-2015 Gaël PORTAY <g.portay@overkiz.com>
8 /dts-v1/;
10 #include <dt-bindings/pwm/pwm.h>
18 stdout-path = &dbgu;
27 clock-frequency = <18432000>;
32 compatible = "gpio-keys";
33 #address-cells = <1>;
[all …]
De60k02.dtsi1 // SPDX-License-Identifier: GPL-2.0
11 * found in ebook-readers like the Kobo Clara HD (with i.MX6SLL) and
14 #include <dt-bindings/input/input.h>
19 stdout-path = &uart1;
22 gpio_keys: gpio-keys {
23 compatible = "gpio-keys";
29 wakeup-source;
36 linux,input-type = <EV_SW>;
37 wakeup-source;
42 compatible = "gpio-leds";
[all …]
/linux-5.10/Documentation/gpu/
Dkms-properties.csv2 ,DVI-I,“subconnector”,ENUM,"{ “Unknown”, “DVI-D”, “DVI-A” }",Connector,TBD
3 ,,“select subconnector”,ENUM,"{ “Automatic”, “DVI-D”, “DVI-A” }",Connector,TBD
7 ,,“left margin”,RANGE,"Min=0, Max=100",Connector,TBD
8 ,,“right margin”,RANGE,"Min=0, Max=100",Connector,TBD
9 ,,“top margin”,RANGE,"Min=0, Max=100",Connector,TBD
10 ,,“bottom margin”,RANGE,"Min=0, Max=100",Connector,TBD
11 ,,“brightness”,RANGE,"Min=0, Max=100",Connector,TBD
12 ,,“contrast”,RANGE,"Min=0, Max=100",Connector,TBD
13 ,,“flicker reduction”,RANGE,"Min=0, Max=100",Connector,TBD
14 ,,“overscan”,RANGE,"Min=0, Max=100",Connector,TBD
[all …]
/linux-5.10/drivers/leds/
Dleds-aat1290.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * 1.5A Step-Up Current Regulator for Flash LEDs
12 #include <linux/led-class-flash.h>
20 #include <media/v4l2-flash-led-class.h>
57 /* max LED brightness level */
80 /* brightness cache */
100 gpiod_direction_output(led->gpio_fl_en, 0); in aat1290_as2cwire_write()
101 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write()
108 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write()
110 gpiod_direction_output(led->gpio_en_set, 1); in aat1290_as2cwire_write()
[all …]
Dleds-spi-byte.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2019 Christian Mauderer <oss@c-mauderer.de>
6 * - one LED is controlled by a single byte on MOSI
7 * - the value of the byte gives the brightness between two values (lowest to
9 * - no return value is necessary (no MISO signal)
11 * The value for minimum and maximum brightness depends on the device
15 * - "ubnt,acb-spi-led": Microcontroller (SONiX 8F26E611LA) based device used
19 * * Mode: 00 -> set brightness between 0x00 (min) and 0x3F (max)
20 * * Mode: 01 -> pulsing pattern (min -> max -> min) with an interval. From
24 * * Mode: 10 -> same as 01 but with only a ramp from min to max. Again a
[all …]
/linux-5.10/Documentation/devicetree/bindings/leds/backlight/
Dqcom-wled.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
11 - Kiran Gunda <kgunda@codeaurora.org>
21 - qcom,pm8941-wled
22 - qcom,pmi8998-wled
23 - qcom,pm660l-wled
24 - qcom,pm8150l-wled
[all …]
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 …]
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.jones@linaro.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 …]
/linux-5.10/drivers/media/v4l2-core/
Dv4l2-flash-led-class.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * V4L2 flash LED sub-device registration helpers.
9 #include <linux/led-class-flash.h>
15 #include <media/v4l2-flash-led-class.h>
18 (v4l2_flash && v4l2_flash->ops && v4l2_flash->ops->op)
22 v4l2_flash->ops->op(v4l2_flash, arg) : \
23 -EINVAL)
46 intensity -= ctrl->minimum; in __intensity_to_led_brightness()
47 intensity /= (u32) ctrl->step; in __intensity_to_led_brightness()
55 if (ctrl->minimum) in __intensity_to_led_brightness()
[all …]
/linux-5.10/include/linux/
Dled-lm3530.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2011 ST-Ericsson SA.
9 * based on leds-lm3530.c by Dan Murphy <D.Murphy@motorola.com>
34 #define LM3530_RAMP_TIME_130ms (1) /* Max to 0 and vice versa */
71 LM3530_INPUT_CEIL, /* Max of ALS1 and ALS2 */
76 void (*pwm_set_intensity) (int brightness, int max_brightness);
83 * @als_input_mode: select source of ALS input - ALS1/2 or average
85 * @pwm_pol_hi: PWM input polarity - active high/active low
87 * @brt_ramp_law: brightness mapping mode - exponential/linear
92 * @als_vmin: als input voltage calibrated for max brightness in mV
[all …]
/linux-5.10/include/linux/platform_data/
Dlm3630a_bl.h1 /* SPDX-License-Identifier: GPL-2.0-only */
38 *@leda_init_brt : led a init brightness. 4~255
39 *@leda_max_brt : led a max brightness. 4~255
42 *@ledb_init_brt : led b init brightness. 4~255
43 *@ledb_max_brt : led b max brightness. 4~255
/linux-5.10/drivers/hid/
Dhid-corsair.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * - Vengeance K70 Keyboard
7 * - K70 RAPIDFIRE Keyboard
8 * - Vengeance K90 Keyboard
9 * - Scimitar PRO RGB Gaming Mouse
24 #include "hid-ids.h"
31 int brightness; member
52 return usage - 0xd0 + 1; in corsair_usage_to_gkey()
55 return usage - 0xe8 + 17; in corsair_usage_to_gkey()
81 MODULE_PARM_DESC(gkey_codes, "Key codes for the G-keys");
[all …]
/linux-5.10/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 …]

12345678910>>...16