| /kernel/linux/linux-5.10/arch/powerpc/platforms/powermac/ |
| D | backlight.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/arch/powerpc/platforms/powermac/ |
| D | backlight.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 2006 Michael Hanselmann <linux-kernel@hansmi.ch> 35 /* The via-pmu code allows the backlight to be grabbed, in which case the 36 * in-kernel control of the brightness needs to be disabled. This should 64 "backlight-control", NULL); in pmac_has_backlight_type() 77 int level = (FB_BACKLIGHT_LEVELS - 1); in pmac_backlight_curve_lookup() 79 if (info && info->bl_dev) { in pmac_backlight_curve_lookup() 80 int i, max = 0; in pmac_backlight_curve_lookup() local 84 max = max((int)info->bl_curve[i], max); in pmac_backlight_curve_lookup() 88 int diff = abs(info->bl_curve[i] - value); in pmac_backlight_curve_lookup() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/ |
| D | leds-netxbig.txt | 5 - 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 …]
|
| D | leds-pwm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-pwm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Pavel Machek <pavel@ucw.cz> 13 Each LED is represented as a sub-node of the pwm-leds device. Each 18 const: pwm-leds 21 "^led(-[0-9a-f]+)?$": 30 pwm-names: true 32 max-brightness: [all …]
|
| D | leds-trigger-pattern.txt | 3 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/ |
| D | leds-netxbig.txt | 5 - 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 …]
|
| D | leds-trigger-pattern.txt | 3 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 …]
|
| D | leds-pwm.txt | 4 - 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 …]
|
| /kernel/linux/linux-6.6/drivers/video/backlight/ |
| D | ktd253-backlight.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Based on code and know-how from the Samsung GT-S7710 40 gpiod_set_value_cansleep(ktd253->gpiod, 1); in ktd253_backlight_set_max_ratio() 63 gpiod_set_value(ktd253->gpiod, 0); in ktd253_backlight_stepdown() 65 gpiod_set_value(ktd253->gpiod, 1); in ktd253_backlight_stepdown() 66 ns = ktime_get_ns() - ns; in ktd253_backlight_stepdown() 68 dev_err(ktd253->dev, "PCM on backlight took too long (%llu ns)\n", ns); in ktd253_backlight_stepdown() 69 return -EAGAIN; in ktd253_backlight_stepdown() 78 int brightness = backlight_get_brightness(bl); in ktd253_backlight_update_status() local 80 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status() [all …]
|
| /kernel/linux/linux-5.10/drivers/video/backlight/ |
| D | ktd253-backlight.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Based on code and know-how from the Samsung GT-S7710 40 gpiod_set_value_cansleep(ktd253->gpiod, 1); in ktd253_backlight_set_max_ratio() 63 gpiod_set_value(ktd253->gpiod, 0); in ktd253_backlight_stepdown() 65 gpiod_set_value(ktd253->gpiod, 1); in ktd253_backlight_stepdown() 66 ns = ktime_get_ns() - ns; in ktd253_backlight_stepdown() 68 dev_err(ktd253->dev, "PCM on backlight took too long (%llu ns)\n", ns); in ktd253_backlight_stepdown() 69 return -EAGAIN; in ktd253_backlight_stepdown() 78 int brightness = backlight_get_brightness(bl); in ktd253_backlight_update_status() local 80 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status() [all …]
|
| /kernel/linux/linux-6.6/include/media/i2c/ |
| D | lm3646.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/include/media/i2c/ |
| D | lm3646.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/leds/flash/ |
| D | leds-rt8515.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 #include <linux/led-class-flash.h> 35 #include <media/v4l2-flash-led-class.h> 37 /* We can provide 15-700 mA out to the LED */ 40 /* The maximum intensity is 1-16 for flash and 1-100 for torch */ 56 u32 max_timeout; /* Flash max timeout */ 68 gpiod_set_value(rt->enable_flash, 0); in rt8515_gpio_led_off() 69 gpiod_set_value(rt->enable_torch, 0); in rt8515_gpio_led_off() 73 int brightness) in rt8515_gpio_brightness_commit() argument 79 * brightness one step at a time. in rt8515_gpio_brightness_commit() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | kirkwood-net5big.dts | 1 // 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 …]
|
| D | kirkwood-netxbig.dtsi | 1 // 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 …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/marvell/ |
| D | kirkwood-net5big.dts | 1 // 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 …]
|
| D | kirkwood-netxbig.dtsi | 1 // 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 …]
|
| /kernel/linux/linux-6.6/Documentation/leds/ |
| D | leds-cht-wcove.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 -------------------------------- 18 Max-| --- 23 Min-|- --- 25 0------2------4--> time (sec) 31 The set pattern only controls the timing. For max brightness the last 32 set brightness is used and the max brightness can be changed 33 while breathing by writing the brightness attribute. 36 for both sw and hw blinking the brightness can also be changed
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/backlight/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/leds/ |
| D | leds-pwm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/leds-pwm.c 9 * based on leds-gpio.c by Raphael Assenat <raph@8d.com> 42 enum led_brightness brightness) in led_pwm_set() argument 46 unsigned int max = led_dat->cdev.max_brightness; in led_pwm_set() local 47 unsigned long long duty = led_dat->pwmstate.period; in led_pwm_set() 49 duty *= brightness; in led_pwm_set() 50 do_div(duty, max); in led_pwm_set() 52 if (led_dat->active_low) in led_pwm_set() 53 duty = led_dat->pwmstate.period - duty; in led_pwm_set() [all …]
|
| D | leds-spi-byte.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/Documentation/gpu/ |
| D | kms-properties.csv | 2 ,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 …]
|
| /kernel/linux/linux-6.6/Documentation/gpu/ |
| D | kms-properties.csv | 2 ,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 …]
|