/linux/Documentation/devicetree/bindings/leds/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/linux/drivers/video/backlight/ |
H A D | ktd253-backlight.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Based on code and know-how from the Samsung GT-S7710 39 gpiod_set_value_cansleep(ktd253->gpiod, 1); in ktd253_backlight_set_max_ratio() 62 gpiod_set_value(ktd253->gpiod, 0); in ktd253_backlight_stepdown() 64 gpiod_set_value(ktd253->gpiod, 1); in ktd253_backlight_stepdown() 65 ns = ktime_get_ns() - ns; in ktd253_backlight_stepdown() 67 dev_err(ktd253->dev, "PCM on backlight took too long (%llu ns)\n", ns); in ktd253_backlight_stepdown() 68 return -EAGAIN; in ktd253_backlight_stepdown() 77 int brightness = backlight_get_brightness(bl); in ktd253_backlight_update_status() local 79 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status() [all …]
|
H A D | ktd2801-backlight.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * https://www.kinet-ic.com/uploads/web/KTD2801/KTD2801-04b.pdf 8 #include <linux/leds-expresswire.h> 36 u8 brightness = (u8) backlight_get_brightness(bd); in ktd2801_update_status() local 39 expresswire_power_off(&ktd2801->props); in ktd2801_update_status() 40 ktd2801->was_on = false; in ktd2801_update_status() 44 if (!ktd2801->was_on) { in ktd2801_update_status() 45 expresswire_enable(&ktd2801->props); in ktd2801_update_status() 46 ktd2801->was_on = true; in ktd2801_update_status() 49 expresswire_write_u8(&ktd2801->props, brightness); in ktd2801_update_status() [all …]
|
H A D | jornada720_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2006-2009 Kristoffer Ericson <kristoffer.ericson@gmail.com> 36 dev_err(&bd->dev, "get brightness timeout\n"); in jornada_bl_get_brightness() 38 return -ETIMEDOUT; in jornada_bl_get_brightness() 46 return BL_MAX_BRIGHT - ret; in jornada_bl_get_brightness() 59 dev_info(&bd->dev, "brightness off timeout\n"); in jornada_bl_update_status() 63 ret = -ETIMEDOUT; in jornada_bl_update_status() 70 dev_info(&bd->dev, "failed to set brightness\n"); in jornada_bl_update_status() 71 ret = -ETIMEDOUT; in jornada_bl_update_status() 78 * please note that maximum brightness is 255, in jornada_bl_update_status() [all …]
|
/linux/include/media/i2c/ |
H A 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 …]
|
/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/drivers/leds/flash/ |
H A 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 …]
|
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) 102 struct mt6360_priv *priv = led->priv; in mt6360_mc_brightness_set() 106 mutex_lock(&priv->lock); in mt6360_mc_brightness_set() 110 for (i = 0; i < mccdev->num_colors; i++) { in mt6360_mc_brightness_set() [all …]
|
H A D | leds-aat1290.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * 1.5A Step-Up Current Regulator for Flash LEDs 13 #include <linux/led-class-flash.h> 21 #include <media/v4l2-flash-led-class.h> 58 /* max LED brightness level */ 99 gpiod_direction_output(led->gpio_fl_en, 0); in aat1290_as2cwire_write() 100 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write() 107 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write() 109 gpiod_direction_output(led->gpio_en_set, 1); in aat1290_as2cwire_write() 117 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write() [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A 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 …]
|
/linux/Documentation/leds/ |
H A 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
|
/linux/Documentation/devicetree/bindings/leds/backlight/ |
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 | ti,lm3509.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Patrick Gansterer <paroga@paroga.com> 23 "#address-cells": 26 "#size-cells": 29 reset-gpios: 32 ti,brightness-rate-of-change-us: 33 description: Brightness Rate of Change in microseconds. 36 ti,oled-mode: [all …]
|
H A D | qcom-wled.yaml | 1 # 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 <andersson@kernel.org> 11 - Kiran Gunda <quic_kgunda@quicinc.com> 21 - qcom,pm8941-wled 22 - qcom,pmi8950-wled 23 - qcom,pmi8994-wled 24 - qcom,pmi8998-wled [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 …]
|
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> 19 - $ref: common.yaml# 25 ctrl-gpios: 28 default-brightness: true 29 max-brightness: true 32 - compatible [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 …]
|
/linux/drivers/leds/ |
H A 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> 41 enum led_brightness brightness) in led_pwm_set() argument 45 unsigned int max = led_dat->cdev.max_brightness; in led_pwm_set() local 46 unsigned long long duty = led_dat->pwmstate.period; in led_pwm_set() 48 duty *= brightness; in led_pwm_set() 49 do_div(duty, max); in led_pwm_set() 51 if (led_dat->active_low) in led_pwm_set() 52 duty = led_dat->pwmstate.period - duty; in led_pwm_set() [all …]
|
/linux/Documentation/gpu/ |
H A 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 …]
|
/linux/arch/riscv/boot/dts/sifive/ |
H A D | hifive-unleashed-a00.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* Copyright (c) 2018-2019 SiFive, Inc */ 4 #include "fu540-c000.dtsi" 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pwm/pwm.h> 14 compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000", 18 stdout-path = "serial0"; 22 timebase-frequency = <RTCCLK_FREQ>; 31 #clock-cells = <0>; [all …]
|
/linux/include/linux/ |
H A D | led-lm3530.h | 1 /* 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/arch/arm/boot/dts/samsung/ |
H A D | exynos54xx-odroidxu-leds.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/leds/common.h> 15 led-controller-1 { 16 compatible = "pwm-leds"; 18 led-1 { 23 pwm-names = "pwm1"; 26 * so limit its max brightness 28 max-brightness = <127>; 29 linux,default-trigger = "mmc0"; [all …]
|
/linux/include/linux/platform_data/ |
H A D | lm3630a_bl.h | 1 /* 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
|