Home
last modified time | relevance | path

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

12345678910>>...41

/linux/drivers/media/i2c/
H A Dlm3646.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * General device driver for TI lm3646, Dual FLASH LED Driver
9 * Ldd-Mlp <ldd-mlp@list.ti.com>
19 #include <media/v4l2-ctrls.h>
20 #include <media/v4l2-device.h>
61 * @led_mode: V4L2 LED mode
64 * @mode_reg : mode register value
78 container_of(_ctrl->handler, struct lm3646_flash, ctrls_led)
80 /* enable mode control */
81 static int lm3646_mode_ctrl(struct lm3646_flash *flash, in lm3646_mode_ctrl() argument
[all …]
H A Dlm3560.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * General device driver for TI lm3559, lm3560, FLASH LED Driver
9 * Ldd-Mlp <ldd-mlp@list.ti.com>
20 #include <media/v4l2-ctrls.h>
21 #include <media/v4l2-device.h>
49 * @led_mode: V4L2 LED mode
65 container_of(_ctrl->handler, struct lm3560_flash, ctrls_led[_no])
67 /* enable mode control */
68 static int lm3560_mode_ctrl(struct lm3560_flash *flash) in lm3560_mode_ctrl() argument
70 int rval = -EINVAL; in lm3560_mode_ctrl()
[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/driver-api/mtd/
H A Dspi-nor.rst5 How to propose a new flash addition
6 -----------------------------------
9 Serial Flash Discoverable Parameter (SFDP) standard. SFDP describes
10 the functional and feature capabilities of serial flash devices in a
11 standard set of internal read-only parameter tables.
14 flash's parameters and settings. If the flash defines the SFDP tables
15 it's likely that you won't need a flash entry at all, and instead
16 rely on the generic flash driver which probes the flash solely based
17 on its SFDP data. All one has to do is to specify the "jedec,spi-nor"
20 There are cases however where you need to define an explicit flash
[all …]
/linux/drivers/spi/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 dynamic device discovery; some are even write-only or read-only.
16 eeprom and flash memory, codecs and various other controller
17 chips, analog to digital (and d-to-a) converters, and more.
44 If your system has an master-capable SPI controller (which
56 by providing a high-level interface to send memory-like commands.
61 tristate "Airoha SPI NAND Flash Interface"
66 This enables support for SPI-NAND mode on the Airoha NAND
67 Flash Interface found on Airoha ARM SoCs. This controller
68 is implemented as a SPI-MEM controller.
[all …]
/linux/drivers/mtd/devices/
H A Dspear_smi.c2 * SMI (Serial Memory Controller) device driver for Serial NOR Flash on
60 #define SW_MODE (0x1 << 28) /* enables SW Mode */
61 #define WB_MODE (0x1 << 29) /* Write Burst Mode */
62 #define FAST_MODE (0x1 << 15) /* Fast Mode */
90 /* flash opcodes */
93 /* Flash Device Ids maintenance section */
95 /* data structure to maintain flash ids from different vendors */
157 * struct spear_smi - Structure for SMI Device
165 * @cmd_complete: queue to wait for command completion of NOR-flash.
167 * @flash: separate structure for each Serial NOR-flash attached to SMI.
[all …]
H A Ddocg3.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Handles the M-Systems DiskOnChip G3 chip
14 * Flash memory areas :
15 * - 0x0000 .. 0x07ff : IPL
16 * - 0x0800 .. 0x0fff : Data area
17 * - 0x1000 .. 0x17ff : Registers
18 * - 0x1800 .. 0x1fff : Unknown
82 * Flash registers
123 * Flash sequences
138 * Flash commands
[all …]
/linux/Documentation/leds/
H A Dleds-lm3556.rst6 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 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
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/drivers/leds/flash/
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
105 ((min_t(u32, AS_PEAK_mA_MAX, a) - 1250) / 250)
143 enum as_mode mode; member
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
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
49 multifunction device. It has build in control for two leds in 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-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>
20 /* Value related the movie mode */
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 */
[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 */
68 /* corresponding LED Flash class device */
70 /* V4L2 Flash device */
[all …]
/linux/Documentation/devicetree/bindings/leds/
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>
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
15 current for each mode is defined in hardware using two resistors
22 enf-gpios:
24 description: A connection to the 'ENF' (enable flash) pin.
26 ent-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-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 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.
25 led-sources:
30 $ref: /schemas/types.yaml#/definitions/uint32-array
[all …]
/linux/Documentation/devicetree/bindings/mtd/
H A Ddavinci-nand.txt7 Davinci DM646x - https://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf
8 Kestone - https://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf
12 - compatible: "ti,davinci-nand"
13 "ti,keystone-nand"
15 - reg: Contains 2 offset/length values:
16 - offset and length for the access window.
17 - offset and length for accessing the AEMIF
20 - ti,davinci-chipselect: number of chipselect. Indicates on the
23 Can be in the range [0-3].
27 - ti,davinci-mask-ale: mask for ALE. Needed for executing address
[all …]
H A Dnxp-spifi.txt1 * NXP SPI Flash Interface (SPIFI)
3 NXP SPIFI is a specialized SPI interface for serial Flash devices.
4 It supports one Flash device with 1-, 2- and 4-bits width in SPI
5 mode 0 or 3. The controller operates in either command or memory
6 mode. In memory mode the Flash is accessible from the CPU as
10 - compatible : Should be "nxp,lpc1773-spifi"
11 - reg : the first contains the register location and length,
13 - reg-names: Should contain the reg names "spifi" and "flash"
14 - interrupts : Should contain the interrupt for the device
15 - clocks : The clocks needed by the SPIFI controller
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-led-flash6 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.
18 Maximum brightness level for this LED in the flash strobe mode,
26 Hardware timeout for flash, in microseconds. The flash strobe
28 of the strobe. The file is created only for the flash LED
29 devices that support setting flash timeout.
36 Maximum flash timeout for this LED, in microseconds.
43 Flash strobe state. When written with 1 it triggers flash strobe
44 and when written with 0 it turns the flash off.
[all …]
/linux/drivers/mtd/spi-nor/
H A Dcore.h1 /* SPDX-License-Identifier: GPL-2.0 */
21 /* Standard SPI NOR flash operations. */
203 * struct spi_nor_erase_type - Structure to describe a SPI NOR erase type
210 * @idx: Erase Type index as sorted in the Basic Flash Parameter
224 * struct spi_nor_erase_command - Used for non-uniform erases
227 * are run-length encoded.
242 * struct spi_nor_erase_region - Structure to describe a SPI NOR erase region
261 * struct spi_nor_erase_map - Structure to describe the SPI NOR erase map
265 * @uniform_region: a pre-allocated erase region for SPI NOR with a uniform
281 * struct spi_nor_locking_ops - SPI NOR locking methods
[all …]
/linux/Documentation/arch/powerpc/
H A Dcxlflash.rst2 Coherent Accelerator (CXL) Flash
12 purpose co-processors which can read or write an application's
14 an adapter running in CAPI mode does not require the data buffers to
26 kernel/device driver stack. The CXL Flash Adapter Driver enables a
27 user space application direct access to Flash storage.
29 The CXL Flash Adapter Driver is a kernel module that sits in the
31 protocol drivers) for the IBM CXL Flash Adapter. This driver is
34 communicates directly the Flash Accelerator Functional Unit (AFU)
40 - Any flash device (LUN) can be configured to be accessed as a
41 regular disk device (i.e.: /dev/sdc). This is the default mode.
[all …]
/linux/drivers/staging/greybus/
H A Dlight.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/led-class-flash.h>
15 #include <media/v4l2-flash-led-class.h>
26 u32 mode; member
69 return channel->light->glights->connection; in get_conn_from_channel()
74 return light->glights->connection; in get_conn_from_light()
79 return !!(channel->mode & (GB_CHANNEL_MODE_FLASH | GB_CHANNEL_MODE_TORCH in is_channel_flash()
92 return &channel->fled.led_cdev; in get_channel_cdev()
96 u32 mode) in get_channel_from_mode() argument
101 for (i = 0; i < light->channels_count; i++) { in get_channel_from_mode()
[all …]
/linux/drivers/scsi/aic94xx/
H A Daic94xx_sds.c1 // SPDX-License-Identifier: GPL-2.0-only
18 /* ---------- OCM stuff ---------- */
108 * asd_read_ocm_seg - read an on chip memory (OCM) segment
120 if (unlikely(asd_ha->iospace)) in asd_read_ocm_seg()
123 for ( ; size > 0; size--, offs++, p++) in asd_read_ocm_seg()
138 if (dir->sig[0] != 'M' || dir->sig[1] != 'O') { in asd_read_ocm_dir()
140 dir->sig[0], dir->sig[1]); in asd_read_ocm_dir()
141 return -ENOENT; in asd_read_ocm_dir()
143 if (dir->major != 0) { in asd_read_ocm_dir()
145 dir->major); in asd_read_ocm_dir()
[all …]

12345678910>>...41