Home
last modified time | relevance | path

Searched +full:flash +full:- +full:led (Results 1 – 25 of 494) sorted by relevance

12345678910>>...20

/linux/Documentation/ABI/testing/
H A Dsysfs-class-led-flash1 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/Documentation/devicetree/bindings/leds/
H A Dqcom,spmi-flash-led.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/qcom,spmi-flash-led.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Flash LED device inside Qualcomm Technologies, Inc. PMICs
10 - Fenglin Wu <quic_fenglinw@quicinc.com>
13 Flash LED controller is present inside some Qualcomm Technologies, Inc. PMICs.
14 The flash LED module can have different number of LED channels supported
24 - enum:
25 - qcom,pm6150l-flash-led
[all …]
H A Dcommon.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
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.
18 Many LED devices expose more than one current output that can be connected
19 to one or more discrete LED component. Since the arrangement of connections
[all …]
H A Dleds-mt6360.yaml1 # 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#
7 title: LED driver for MT6360 PMIC from MediaTek Integrated.
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":
[all …]
H A Dkinetic,ktd2692.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
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.
16 The ExpressWire interface through CTRL pin can control LED on/off and
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 Dskyworks,aat1290.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
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:
28 flen-gpios:
[all …]
H A Dams,as3645a.txt3 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 Drichtek,rt8515.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Richtek RT8515 1.5A dual channel LED driver
10 - Linus Walleij <linus.walleij@linaro.org>
13 The Richtek RT8515 is a dual channel (two mode) LED driver that
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:
[all …]
H A Dleds-lm3601x.txt1 * 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:
20 - flash-max-microamp : Range from 11mA - 1.5A
[all …]
H A Dmaxim,max77693.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Krzysztof Kozlowski <krzk@kernel.org>
16 There are two LED outputs available - FLED1 and FLED2. Each of them can
17 control a separate LED or they can be connected together to double the
18 maximum current for a single connected LED. One LED is represented by one
26 const: maxim,max77693-led
28 maxim,boost-mode:
34 See LEDS_BOOST_* in include/dt-bindings/leds/common.h.
[all …]
/linux/drivers/leds/flash/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
6 tristate "LED support for 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
35 tristate "LED support for LM3601x Chips"
40 of flash, torch and indicator classes.
43 tristate "LED support for MAX77693 Flash"
[all …]
H A Dleds-mt6360.c1 // 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)
78 struct led_classdev_flash flash; member
101 struct mt6360_led *led = container_of(mccdev, struct mt6360_led, mc); in mt6360_mc_brightness_set() local
102 struct mt6360_priv *priv = led->priv; in mt6360_mc_brightness_set()
[all …]
H A Dleds-mt6370-flash.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/led-class-flash.h>
22 #include <media/v4l2-flash-led-class.h>
43 #define MT6370_FLCSEN_MASK(_id) BIT(MT6370_LED_FLASH2 - (_id))
71 struct led_classdev_flash flash; member
89 struct mt6370_led *led = to_mt6370_led(lcdev, flash.led_cdev); in mt6370_torch_brightness_set() local
90 struct mt6370_priv *priv = led->priv; in mt6370_torch_brightness_set()
91 u32 led_enable_mask = led->led_no == MT6370_LED_JOINT ? MT6370_FLCSEN_MASK_ALL : in mt6370_torch_brightness_set()
92 MT6370_FLCSEN_MASK(led->led_no); in mt6370_torch_brightness_set()
98 mutex_lock(&priv->lock); in mt6370_torch_brightness_set()
[all …]
H A Dleds-aat1290.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Flash class driver for the AAT1290
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>
50 /* maximum LED current in movie mode */
52 /* maximum LED current in flash mode */
54 /* maximum flash timeout */
58 /* max LED brightness level */
68 /* corresponding LED Flash class device */
[all …]
H A Dleds-qcom-flash.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/led-class-flash.h>
14 #include <media/v4l2-flash-led-class.h>
163 struct led_classdev_flash flash; member
175 static int set_flash_module_en(struct qcom_flash_led *led, bool en) in set_flash_module_en() argument
177 struct qcom_flash_data *flash_data = led->flash_data; in set_flash_module_en()
181 for (i = 0; i < led->chan_count; i++) in set_flash_module_en()
182 led_mask |= BIT(led->chan_id[i]); in set_flash_module_en()
184 mutex_lock(&flash_data->lock); in set_flash_module_en()
186 flash_data->chan_en_bits |= led_mask; in set_flash_module_en()
[all …]
H A Dleds-max77693.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Flash class driver for the flash cell of max77693 mfd.
11 #include <linux/led-class-flash.h>
13 #include <linux/mfd/max77693-common.h>
14 #include <linux/mfd/max77693-private.h>
20 #include <media/v4l2-flash-led-class.h>
41 FLASH, enumerator
59 /* corresponding LED Flash class device */
61 /* V4L2 Flash device */
66 /* flash timeout cache */
[all …]
H A Dleds-sy7802.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Silergy SY7802 flash LED driver with an I2C interface
11 #include <linux/led-class-flash.h>
89 struct led_classdev_flash flash; member
111 struct sy7802_led *led = container_of(lcdev, struct sy7802_led, flash.led_cdev); in sy7802_torch_brightness_set() local
112 struct sy7802 *chip = led->chip; in sy7802_torch_brightness_set()
120 mutex_lock(&chip->mutex); in sy7802_torch_brightness_set()
122 if (chip->fled_strobe_used) { in sy7802_torch_brightness_set()
123 dev_warn(chip->dev, "Cannot set torch brightness whilst strobe is enabled\n"); in sy7802_torch_brightness_set()
124 ret = -EBUSY; in sy7802_torch_brightness_set()
[all …]
H A Dleds-rt8515.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * LED driver for Richtek RT8515 flash/torch white LEDs
10 * from the RT8515 to the LED, with two resistors connected
14 * RFS (resistance flash setting?) is 20 kOhm
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()
[all …]
H A Dleds-ktd2692.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver : leds-ktd2692.c
12 #include <linux/leds-expresswire.h>
13 #include <linux/led-class-flash.h>
25 /* Value related the flash mode */
30 /* Macro for getting offset of flash timeout */
44 /* Movie / Flash Mode Control */
52 /* maximum LED current in movie mode */
54 /* maximum LED current in flash mode */
56 /* maximum flash timeout */
[all …]
H A Dleds-lm3601x.c1 // SPDX-License-Identifier: GPL-2.0
2 // Flash and torch driver for Texas Instruments LM3601X LED
3 // Flash driver chip family
4 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
9 #include <linux/led-class-flash.h>
73 * struct lm3601x_led - private lm3601x LED data
74 * @fled_cdev: flash LED class device pointer
78 * @flash_timeout: the timeout for the flash
81 * @flash_current_max: maximum current for the flash
82 * @max_flash_timeout: maximum timeout for the flash
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-flash.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _flash-controls:
6 Flash Control Reference
9 The V4L2 flash controls are intended to provide generic access to flash
10 controller devices. Flash controller devices are typically used in
13 The interface can support both LED and xenon flash devices. As of
14 writing this, there is no xenon flash driver using this interface.
17 .. _flash-controls-use-cases:
23 Unsynchronised LED flash (software strobe)
24 ------------------------------------------
[all …]
/linux/Documentation/leds/
H A Dleds-class-flash.rst2 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
13 registered in the LED subsystem with led_classdev_flash_register function.
15 Following sysfs attributes are exposed for controlling flash LED devices:
16 (see Documentation/ABI/testing/sysfs-class-led-flash)
[all …]
/linux/include/linux/
H A Dled-class-flash.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * LED Flash class interface
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 */
51 * Current value of a flash setting along
[all …]
/linux/include/media/
H A Dv4l2-flash-led-class.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * V4L2 flash LED sub-device registration helpers.
12 #include <media/v4l2-ctrls.h>
13 #include <media/v4l2-subdev.h>
21 * struct v4l2_flash_ctrl_data - flash control initialization data, filled
22 * basing on the features declared by the LED flash
25 * @cid: contains v4l2 flash control id if the config
34 * struct v4l2_flash_ops - V4L2 flash operations
36 * @external_strobe_set: Setup strobing the flash by hardware pin state
53 * struct v4l2_flash_config - V4L2 Flash sub-device initialization data
[all …]
/linux/Documentation/devicetree/bindings/media/i2c/
H A Dadp1653.txt1 * 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".
14 Required properties of the LED child node:
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
[all …]

12345678910>>...20