/linux/Documentation/leds/ |
H A 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 ----------- 16 There are 3 functions in LM3556, Flash, Torch and Indicator. 18 Flash Mode 21 In Flash Mode, the LED current source(LED) provides 16 target current levels 22 from 93.75 mA to 1500 mA.The Flash currents are adjusted via the CURRENT 23 CONTROL REGISTER(0x09).Flash mode is activated by the ENABLE REGISTER(0x0A), 26 LM3556 Flash can be controlled through /sys/class/leds/flash/brightness file [all …]
|
H A D | leds-class-flash.rst | 2 Flash LED handling under Linux 5 Some LED devices provide two modes - torch and flash. In the LED subsystem 6 those modes are supported by LED class (see Documentation/leds/leds-class.rst) 7 and LED Flash class respectively. The torch mode related features are enabled 8 by default and the flash ones only if a driver declares it by setting 11 In order to enable the support for flash LEDs CONFIG_LEDS_CLASS_FLASH symbol 12 must be defined in the kernel config. A LED Flash class driver must be 15 Following sysfs attributes are exposed for controlling flash LED devices: 16 (see Documentation/ABI/testing/sysfs-class-led-flash) 18 - flash_brightness [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-led-flash | 1 What: /sys/class/leds/<led>/flash_brightness 6 Set the brightness of this LED in the flash strobe mode, in 7 microamperes. The file is created only for the flash LED devices 8 that support setting flash brightness. 11 /sys/class/leds/<led>/max_flash_brightness. 13 What: /sys/class/leds/<led>/max_flash_brightness 18 Maximum brightness level for this LED in the flash strobe mode, 21 What: /sys/class/leds/<led>/flash_timeout 26 Hardware timeout for flash, in microseconds. The flash strobe 28 of the strobe. The file is created only for the flash LED [all …]
|
/linux/drivers/leds/flash/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 12 This option enables support for the LEDs on the AAT1290. 15 tristate "AS3645A and LM3555 LED flash controllers support" 19 Enable LED flash class support for AS3645A LED flash 20 controller. V4L2 flash API is provided as well if 24 tristate "LED support for Kinetic KTD2692 flash LED controller" 29 This option enables support for Kinetic KTD2692 LED flash connected 40 of flash, torch and indicator classes. 43 tristate "LED support for MAX77693 Flash" 48 This option enables support for the flash part of the MAX77693 [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 3 obj-$(CONFIG_LEDS_MT6360) += leds-mt6360.o 4 obj-$(CONFIG_LEDS_MT6370_FLASH) += leds-mt6370-flash.o 5 obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o 6 obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o 7 obj-$(CONFIG_LEDS_KTD2692) += leds-ktd2692.o 8 obj-$(CONFIG_LEDS_LM3601X) += leds-lm3601x.o 9 obj-$(CONFIG_LEDS_MAX77693) += leds-max77693.o 10 obj-$(CONFIG_LEDS_QCOM_FLASH) += leds-qcom-flash.o 11 obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o [all …]
|
/linux/Documentation/devicetree/bindings/leds/ |
H A D | ams,as3645a.txt | 3 The AS3645A flash LED controller can drive two LEDs, one high current 4 flash LED and one indicator LED. The high current flash LED can be 18 #address-cells : 1 19 #size-cells : 0 22 Required properties of the flash child node (0) 26 flash-timeout-us: Flash timeout in microseconds. The value must be in 28 flash-max-microamp: Maximum flash current in microamperes. Has to be 31 led-max-microamp: Maximum torch (assist) current in microamperes. The 34 ams,input-max-microamp: Maximum flash controller input current. The 39 Optional properties of the flash child node [all …]
|
H A D | common.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/leds/common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Common leds properties 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 14 LED and flash LED devices provide the same basic functionality as current 15 regulators, but extended with LED and flash LED specific features like 16 blinking patterns, flash timeout, flash faults and external flash strobe mode. [all …]
|
H A D | leds-lm3601x.txt | 1 * Texas Instruments - lm3601x Single-LED Flash Driver 3 The LM3601X are ultra-small LED flash drivers that 7 - compatible : Can be one of the following 10 - reg : I2C slave address 11 - #address-cells : 1 12 - #size-cells : 0 15 - reg : 0 - Indicates a IR mode 16 1 - Indicates a Torch (white LED) mode 18 Required properties for flash LED child nodes: 19 See Documentation/devicetree/bindings/leds/common.txt [all …]
|
H A D | qcom,pm8058-led.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/leds/qcom,pm8058-led.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 13 The Qualcomm PM8058 contains an LED block for up to six LEDs:: three normal 14 LEDs, two "flash" LEDs and one "keypad backlight" LED. The names are quoted 16 flash or keypad backlight:: their names are more of a suggestion than a 17 hard-wired usecase. 19 Hardware-wise the different LEDs support slightly different output currents. [all …]
|
H A D | kinetic,ktd2692.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/kinetic,ktd2692.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: KTD2692 Flash LED Driver from Kinetic Technologies 10 - Markuss Broks <markuss.broks@gmail.com> 13 KTD2692 is the ideal power solution for high-power flash LEDs. 14 It uses ExpressWire single-wire programming for maximum flexibility. 17 enable/disable the IC, Movie(max 1/3 of Flash current) / Flash mode current, 18 Flash timeout, LVP(low voltage protection). [all …]
|
H A D | skyworks,aat1290.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/leds/skyworks,aat1290.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Skyworks Solutions, Inc. AAT1290 Current Regulator for Flash LEDs 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Krzysztof Kozlowski <krzk@kernel.org> 15 asserted high, enable flash strobe and movie mode (max 1/2 of flash current) 18 independent of the flash chip. The switch is controlled with pin control. 24 enset-gpios: [all …]
|
H A D | leds-sgm3140.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-sgm3140.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Luca Weiss <luca@z3ntu.xyz> 13 The SGM3140 is a current-regulated charge pump which can regulate two current 14 levels for Flash and Torch modes. 17 http://www.sg-micro.com/uploads/soft/20190626/1561535688.pdf 22 - ocs,ocp8110 23 - richtek,rt5033-led [all …]
|
H A D | leds-mt6360.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-mt6360.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Gene Chen <gene_chen@richtek.com> 15 Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, 16 and 4-channel RGB LED support Register/Flash/Breath Mode 20 const: mediatek,mt6360-led 22 "#address-cells": 25 "#size-cells": [all …]
|
H A D | maxim,max77693.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/leds/maxim,max77693.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Maxim MAX77693 MicroUSB and Companion Power Management IC LEDs 10 - Krzysztof Kozlowski <krzk@kernel.org> 16 There are two LED outputs available - FLED1 and FLED2. Each of them can 26 const: maxim,max77693-led 28 maxim,boost-mode: 34 See LEDS_BOOST_* in include/dt-bindings/leds/common.h. [all …]
|
H A D | leds-rt4505.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-rt4505.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 13 The RT4505 is a flash LED driver that can support up to 375mA and 1.5A for 14 torch and flash mode, respectively. 17 https://www.richtek.com/assets/product_file/RT4505/DS4505-02.pdf 33 - compatible 34 - reg [all …]
|
H A D | richtek,rt8515.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/richtek,rt8515.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 14 supports driving a white LED in flash or torch mode. The maximum 22 enf-gpios: 24 description: A connection to the 'ENF' (enable flash) pin. 26 ent-gpios: 30 richtek,rfs-ohms: [all …]
|
/linux/drivers/leds/trigger/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 This option enables trigger support for the leds class. 7 These triggers allow kernel events to drive the LEDs and can 15 This allows LEDs to be controlled by a programmable timer 18 For more details read Documentation/leds/leds-class.rst. 23 tristate "LED One-shot Trigger" 25 This allows LEDs to blink in one-shot pulses with parameters 39 This allows LEDs to be controlled by disk activity. 46 This allows LEDs to be controlled by MTD activity. 52 This allows LEDs to be controlled by a CPU load average. [all …]
|
/linux/Documentation/devicetree/bindings/media/i2c/ |
H A D | adp1653.txt | 1 * Analog Devices ADP1653 flash LED driver 5 - compatible: Must contain "adi,adp1653" 7 - reg: I2C slave address 9 - enable-gpios: Specifier of the GPIO connected to EN pin 11 There are two LED outputs available - flash and indicator. One LED is 12 represented by one child node, nodes need to be named "flash" and "indicator". 15 - led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 17 Required properties of the flash LED child node: 19 - flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 20 - flash-timeout-us : see Documentation/devicetree/bindings/leds/common.txt [all …]
|
/linux/Documentation/firmware-guide/acpi/dsd/ |
H A D | leds.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 Describing and referring to LEDs in ACPI 8 Individual LEDs are described by hierarchical data extension [5] nodes under the 10 tells the numerical ID of each individual LED output to which the LEDs are 11 connected. [leds] The hierarchical data nodes are named "led@X", where X is the 14 Referring to LEDs in Device tree is documented in [video-interfaces], in 15 "flash-leds" property documentation. In short, LEDs are directly referred to by 20 the same mechanism on ACPI is not possible. A mechanism to refer to non-device 21 ACPI nodes is documented in [data-node-ref]. 26 individual LEDs. The value of the "reg" property is a contract between the [all …]
|
/linux/include/linux/ |
H A D | led-class-flash.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * LED Flash class interface 11 #include <linux/leds.h> 17 * Supported led fault bits - must be kept in synch 34 /* set flash brightness */ 37 /* get flash brightness */ 40 /* set flash strobe state */ 42 /* get flash strobe state */ 44 /* set flash timeout */ 46 /* get the flash LED fault */ [all …]
|
/linux/arch/arm/boot/dts/gemini/ |
H A D | gemini-dlink-dir-685.dts | 2 * Device Tree file for D-Link DIR-685 Xtreme N Storage Router 5 /dts-v1/; 8 #include <dt-bindings/input/input.h> 11 model = "D-Link DIR-685 Xtreme N Storage Router"; 12 compatible = "dlink,dir-685", "cortina,gemini"; 13 #address-cells = <1>; 14 #size-cells = <1>; 17 /* 128 MB SDRAM in 2 x Hynix HY5DU121622DTP-D43 */ 24 stdout-path = "uart0:19200n8"; 28 compatible = "gpio-keys"; [all …]
|
/linux/Documentation/driver-api/gpio/ |
H A D | drivers-on-gpio.rst | 6 the right in-kernel and userspace APIs/ABIs for the job, and that these 10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO 13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger, 15 (and that LED may in turn use the leds-gpio as per above). 17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line 20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your 24 - gpio_mouse: drivers/input/mouse/gpio_mouse.c is used to provide a mouse with 29 - gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from 31 off/on, for an actual PWM waveform, see pwm-gpio below.) 33 - pwm-gpio: drivers/pwm/pwm-gpio.c is used to toggle a GPIO with a high [all …]
|
/linux/arch/arm/boot/dts/intel/socfpga/ |
H A D | socfpga_cyclone5_socrates.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 10 compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga"; 18 stdout-path = "serial0:115200n8"; 27 leds: gpio-leds { label 32 phy-mode = "rgmii"; 53 &leds { 54 compatible = "gpio-leds"; 59 linux,default-trigger = "heartbeat"; 80 flash: flash@0 { label 81 #address-cells = <1>; [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8916-gplus-fl8005a.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8916-pm8916.dtsi" 6 #include "msm8916-modem-qdsp6.dtsi" 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 15 chassis-type = "tablet"; 24 stdout-path = "serial0"; 28 compatible = "simple-battery"; [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | mediatek,mt6370.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 13 MT6370 is a highly-integrated smart power management IC, which includes a 14 single cell Li-Ion/Li-Polymer switching battery charger, a USB Type-C & 15 Power Delivery (PD) controller, dual flash LED current sources, a RGB LED 26 wakeup-source: true 31 interrupt-controller: true 33 "#interrupt-cells": [all …]
|