Home
last modified time | relevance | path

Searched +full:flash +full:- +full:timeout +full:- +full:us (Results 1 – 25 of 121) sorted by relevance

12345

/linux/Documentation/devicetree/bindings/leds/
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 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.
17 enable/disable the IC, Movie(max 1/3 of Flash current) / Flash mode current,
18 Flash timeout, LVP(low voltage protection).
21 LED current will be ramped up to the flash-mode current level.
[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#
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 Dti,tps61310.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Texas Instruments TPS6131X flash LED driver
10 - Matthias Fend <matthias.fend@emfend.at>
13 The TPS61310/TPS61311 is a flash LED driver with I2C interface.
15 The TPS6131x provides three constant-current sinks, capable of sinking
16 up to 2 x 400mA (LED1 and LED3) and 800mA (LED2) in flash mode.
19 flash timer, control logic, safety timer and the operating mode, they cannot
29 - items:
[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 Drichtek,rt8515.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
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:
34 resistors limits the maximum flash current. This must be set
[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
26 const: maxim,max77693-led
28 maxim,boost-mode:
34 See LEDS_BOOST_* in include/dt-bindings/leds/common.h.
38 maxim,boost-mvout:
41 Valid values: 3300 - 5500, step by 25 (rounded down)
[all …]
H A Dleds-sgm3140.yaml1 # 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 Dleds-rt4505.yaml1 # 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 …]
/linux/drivers/leds/flash/
H A Dleds-sgm3140.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/led-class-flash.h>
10 #include <media/v4l2-flash-led-class.h>
27 /* current timeout in us */
28 u32 timeout; member
29 /* maximum timeout in us */
43 if (priv->enabled == state) in sgm3140_strobe_set()
47 ret = regulator_enable(priv->vin_regulator); in sgm3140_strobe_set()
49 dev_err(fled_cdev->led_cdev.dev, in sgm3140_strobe_set()
53 gpiod_set_value_cansleep(priv->flash_gpio, 1); in sgm3140_strobe_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
14 * RFS (resistance flash setting?) is 20 kOhm
17 * Some sleuthing finds us the RT9387A which we have a datasheet for:
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 */
31 #define GET_TIMEOUT_OFFSET(timeout, step) ((timeout) / (step)) argument
44 /* Movie / Flash Mode Control */
54 /* maximum LED current in flash mode */
56 /* maximum flash timeout */
[all …]
H A Dleds-rt4505.c1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <linux/led-class-flash.h>
11 #include <media/v4l2-flash-led-class.h>
48 struct led_classdev_flash flash; member
56 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_set()
60 mutex_lock(&priv->lock); in rt4505_torch_brightness_set()
63 ret = regmap_update_bits(priv->regmap, in rt4505_torch_brightness_set()
65 (level - 1) << RT4505_ITORCH_SHIFT); in rt4505_torch_brightness_set()
72 ret = regmap_update_bits(priv->regmap, RT4505_REG_ENABLE, in rt4505_torch_brightness_set()
76 mutex_unlock(&priv->lock); in rt4505_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>
52 /* maximum LED current in flash mode */
54 /* maximum flash timeout */
68 /* corresponding LED Flash class device */
70 /* V4L2 Flash device */
99 gpiod_direction_output(led->gpio_fl_en, 0); in aat1290_as2cwire_write()
[all …]
H A Dleds-as3645a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/leds/leds-as3645a.c - AS3645A and LM3555 flash controllers driver
5 * Copyright (C) 2008-2011 Nokia Corporation
16 #include <linux/led-class-flash.h>
23 #include <media/v4l2-flash-led-class.h>
25 #define AS_TIMER_US_TO_CODE(t) (((t) / 1000 - 100) / 50)
30 /* Read-only Design info register: Reset state: xxxx 0001 */
35 /* Read-only Version control register: Reset state: 0000 0000
86 #define AS_FLASH_TIMEOUT_MIN 100000 /* us */
105 ((min_t(u32, AS_PEAK_mA_MAX, a) - 1250) / 250)
[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 …]
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-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
102 struct mt6360_priv *priv = led->priv; in mt6360_mc_brightness_set()
106 mutex_lock(&priv->lock); 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()
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-tps6131x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Texas Instruments TPS61310/TPS61311 flash LED driver with I2C interface
10 #include <linux/led-class-flash.h>
14 #include <media/v4l2-flash-led-class.h>
217 diff = abs(tps6131x_timer_configs[i].time_us - timeout_us); in tps6131x_find_closest_timer_config()
233 if (tps6131x->reset_gpio) { in tps6131x_reset_chip()
234 gpiod_set_value_cansleep(tps6131x->reset_gpio, 1); in tps6131x_reset_chip()
236 gpiod_set_value_cansleep(tps6131x->reset_gpio, 0); in tps6131x_reset_chip()
239 ret = regmap_update_bits(tps6131x->regmap, TPS6131X_REG_0, TPS6131X_REG_0_RESET, in tps6131x_reset_chip()
246 ret = regmap_update_bits(tps6131x->regmap, TPS6131X_REG_0, TPS6131X_REG_0_RESET, 0); in tps6131x_reset_chip()
[all …]
/linux/drivers/misc/c2port/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
63 struct c2port_ops *ops = dev->ops; in c2port_reset()
66 * 20us. in c2port_reset()
69 ops->c2ck_set(dev, 0); in c2port_reset()
71 ops->c2ck_set(dev, 1); in c2port_reset()
79 struct c2port_ops *ops = dev->ops; in c2port_strobe_ck()
81 /* During hi-low-hi transition we disable local IRQs to avoid in c2port_strobe_ck()
83 * shorter than 5us, otherwise the microcontroller may consider in c2port_strobe_ck()
87 ops->c2ck_set(dev, 0); in c2port_strobe_ck()
89 ops->c2ck_set(dev, 1); in c2port_strobe_ck()
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dmediatek,mt6370.yaml1 # 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 …]
H A Dmediatek,mt6360.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Gene Chen <gene_chen@richtek.com>
25 wakeup-source: true
30 interrupt-names:
33 interrupt-controller: true
35 "#interrupt-cells":
41 $ref: /schemas/regulator/mt6360-regulator.yaml#
47 $ref: /schemas/usb/mediatek,mt6360-tcpc.yaml#
[all …]
/linux/arch/arm/boot/dts/samsung/
H A Dexynos4412-galaxy-s3.dtsi1 // SPDX-License-Identifier: GPL-2.0
9 /dts-v1/;
10 #include <dt-bindings/leds/common.h>
11 #include "exynos4412-midas.dtsi"
19 led-controller {
21 flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>;
22 enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;
24 pinctrl-names = "default", "host", "isp";
25 pinctrl-0 = <&camera_flash_host>;
26 pinctrl-1 = <&camera_flash_host>;
[all …]
/linux/drivers/mtd/devices/
H A Dbcm47xxsflash.c1 // SPDX-License-Identifier: GPL-2.0-only
14 MODULE_DESCRIPTION("Serial flash driver for BCMA bus");
26 b47s->cc_write(b47s, BCMA_CC_FLASHCTL, BCMA_CC_FLASHCTL_START | opcode); in bcm47xxsflash_cmd()
28 if (!(b47s->cc_read(b47s, BCMA_CC_FLASHCTL) & in bcm47xxsflash_cmd()
33 pr_err("Control command failed (timeout)!\n"); in bcm47xxsflash_cmd()
36 static int bcm47xxsflash_poll(struct bcm47xxsflash *b47s, int timeout) in bcm47xxsflash_poll() argument
38 unsigned long deadline = jiffies + timeout; in bcm47xxsflash_poll()
41 switch (b47s->type) { in bcm47xxsflash_poll()
44 if (!(b47s->cc_read(b47s, BCMA_CC_FLASHDATA) & in bcm47xxsflash_poll()
50 if (b47s->cc_read(b47s, BCMA_CC_FLASHDATA) & in bcm47xxsflash_poll()
[all …]

12345