Home
last modified time | relevance | path

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

123

/linux/drivers/leds/
H A Dleds-el15203000.c1 // SPDX-License-Identifier: GPL-2.0
13 * +-----+---------+
14 * | LED | COMMAND |
15 * +-----+---------+
17 * +-----+---------+
21 * +----------+--------------+-------------------------------------------+
23 * +----------+--------------+-------------------------------------------+
25 * +----------+--------------+-------------------------------------------+
27 * +----------+--------------+-------------------------------------------+
29 * +----------+--------------+-------------------------------------------+
[all …]
H A Dleds-cht-wcove.c1 // SPDX-License-Identifier: GPL-2.0
29 #define CHT_WC_LED1_SWCTL BIT(0) /* HW or SW control of charging led */
33 #define CHT_WC_LED_I_MA2_5 (2 << 2) /* LED current limit */
34 #define CHT_WC_LED_I_MASK GENMASK(3, 2) /* LED current limit mask */
55 /* Mask + values for turning the LED on/off */
108 struct cht_wc_led *led = container_of(cdev, struct cht_wc_led, cdev); in cht_wc_leds_brightness_set() local
111 mutex_lock(&led->mutex); in cht_wc_leds_brightness_set()
114 ret = regmap_update_bits(led->regmap, led->regs->ctrl, in cht_wc_leds_brightness_set()
115 led->regs->on_off_mask, led->regs->off_val); in cht_wc_leds_brightness_set()
117 dev_err(cdev->dev, "Failed to turn off: %d\n", ret); in cht_wc_leds_brightness_set()
[all …]
H A Dleds-sc27xx-bltc.c1 // SPDX-License-Identifier: GPL-2.0
84 return leds->priv->base + SC27XX_LEDS_OFFSET * leds->line; in sc27xx_led_get_offset()
90 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_enable()
91 u8 ctrl_shift = SC27XX_CTRL_SHIFT * leds->line; in sc27xx_led_enable()
92 struct regmap *regmap = leds->priv->regmap; in sc27xx_led_enable()
109 struct regmap *regmap = leds->priv->regmap; in sc27xx_led_disable()
110 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_disable()
111 u8 ctrl_shift = SC27XX_CTRL_SHIFT * leds->line; in sc27xx_led_disable()
122 mutex_lock(&leds->priv->lock); in sc27xx_led_set()
129 mutex_unlock(&leds->priv->lock); in sc27xx_led_set()
[all …]
H A Dleds-spi-byte.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2019 Christian Mauderer <oss@c-mauderer.de>
6 * - one LED is controlled by a single byte on MOSI
7 * - the value of the byte gives the brightness between two values (lowest to
9 * - no return value is necessary (no MISO signal)
15 * - "ubnt,acb-spi-led": Microcontroller (SONiX 8F26E611LA) based device used
19 * * Mode: 00 -> set brightness between 0x00 (min) and 0x3F (max)
20 * * Mode: 01 -> pulsing pattern (min -> max -> min) with an interval. From
22 * slightly different pattern starting from 0x10 (longer gap between the
24 * * Mode: 10 -> same as 01 but with only a ramp from min to max. Again a
[all …]
H A Dleds-lm3533.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * leds-lm3533.c -- LM3533 LED driver
5 * Copyright (C) 2011-2012 Texas Instruments
59 static inline int lm3533_led_get_ctrlbank_id(struct lm3533_led *led) in lm3533_led_get_ctrlbank_id() argument
61 return led->id + 2; in lm3533_led_get_ctrlbank_id()
64 static inline u8 lm3533_led_get_lv_reg(struct lm3533_led *led, u8 base) in lm3533_led_get_lv_reg() argument
66 return base + led->id; in lm3533_led_get_lv_reg()
69 static inline u8 lm3533_led_get_pattern(struct lm3533_led *led) in lm3533_led_get_pattern() argument
71 return led->id; in lm3533_led_get_pattern()
74 static inline u8 lm3533_led_get_pattern_reg(struct lm3533_led *led, in lm3533_led_get_pattern_reg() argument
[all …]
H A Dleds-lp55xx-common.h1 /* SPDX-License-Identifier: GPL-2.0-only */
9 * Derived from leds-lp5521.c, leds-lp5523.c
15 #include <linux/led-class-multicolor.h>
122 * @reg_led_pwm_base : Chip specific base reg address for LED PWM conf
123 * @reg_led_current_base : Chip specific base reg address for LED current conf
125 * @reg_led_ctrl_base : Chip specific base reg address for LED ctrl base
132 * @set_led_current : LED current set function
134 * @run_engine : Run internal engine for pattern
154 /* set LED brightness */
155 int (*brightness_fn)(struct lp55xx_led *led);
[all …]
/linux/Documentation/leds/
H A Dleds-mt6370-rgb.rst1 .. SPDX-License-Identifier: GPL-2.0
4 The device for Mediatek MT6370 RGB LED
8 -----------
10 The MT6370 integrates a four-channel RGB LED driver, designed to provide a
11 variety of lighting effect for mobile device applications. The RGB LED devices
12 includes a smart LED string controller and it can drive 3 channels of LEDs with
13 a sink current up to 24mA and a CHG_VIN power good indicator LED with sink
15 PWM Dimming mode, breath pattern mode, and constant current mode. The device
16 can increase or decrease the brightness of the RGB LED via an I2C interface.
18 The breath pattern for a channel can be programmed using the "pattern" trigger,
[all …]
H A Dleds-qcom-lpg.rst1 .. SPDX-License-Identifier: GPL-2.0
8 -----------
11 number of PWM channels, a programmable pattern lookup table and a RGB LED
23 deeper idle states the LPG provides pattern support. This consists of a shared
25 range within the table to use, the rate and if the pattern should repeat.
27 The pattern for a channel can be programmed using the "pattern" trigger, using
30 /sys/class/leds/<led>/hw_pattern
31 --------------------------------
33 Specify a hardware pattern for a Qualcomm LPG LED.
35 The pattern is a series of brightness and hold-time pairs, with the hold-time
[all …]
H A Dleds-sc27xx.rst1 .. SPDX-License-Identifier: GPL-2.0
7 /sys/class/leds/<led>/hw_pattern
8 --------------------------------
10 Specify a hardware pattern for the SC27XX LED. For the SC27XX
11 LED controller, it only supports 4 stages to make a single
12 hardware pattern, which is used to configure the rise time,
15 For the breathing mode, the SC27XX LED only expects one brightness
16 for the high stage. To be compatible with the hardware pattern
20 - Min stage duration: 125 ms
21 - Max stage duration: 31875 ms
[all …]
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 -----------
21 In Flash Mode, the LED current source(LED) provides 16 target current levels
50 In Torch Mode, the current source(LED) is programmed via the CURRENT CONTROL
77 Indicator pattern can be set through /sys/class/leds/indicator/pattern file,
78 and 4 patterns are pre-defined in indicator_pattern array.
80 According to N-lank, Pulse time and N Period values, different pattern wiill
84 Please refer datasheet for more detail about N-Blank, Pulse time and N Period.
[all …]
H A Dleds-cht-wcove.rst1 .. SPDX-License-Identifier: GPL-2.0
7 /sys/class/leds/<led>/hw_pattern
8 --------------------------------
10 Specify a hardware pattern for the Whiskey Cove PMIC LEDs.
12 The only supported pattern is hardware breathing mode::
18 Max-| ---
23 Min-|- ---
25 0------2------4--> time (sec)
31 The set pattern only controls the timing. For max brightness the last
35 This is just like how blinking works in the LED subsystem,
H A Dleds-lp3944.rst5 * National Semiconductor LP3944 Fun-light Chip
21 -----------
24 is used as a led controller.
26 The DIM modes are used to set _blink_ patterns for leds, the pattern is
29 - period:
31 - duty cycle:
32 percentage of the period the led is on, from 0 to 100
34 Setting a led in DIM0 or DIM1 mode makes it blink according to the pattern.
42 -----
47 according to include/linux/leds-lp3944.h, set the i2c board info::
H A Dleds-lp5562.rst5 * TI LP5562 LED Driver
13 LEDs can be controlled directly via the led class control interface.
16 LP5562 has the internal program memory for running various LED patterns.
17 For the details, please refer to 'firmware' section in leds-lp55xx.txt
28 This attribute is used for programming LED data with the firmware interface.
32 LED Map
49 For example, run blinking green channel pattern::
58 To run a blinking white pattern::
70 Please refer to 'leds-lp55xx.txt"
75 Like LP5521 and LP5523/55231, LP5562 provides LED current settings.
/linux/Documentation/devicetree/bindings/leds/
H A Dleds-el15203000.txt1 Crane Merchandising System - EL15203000 LED driver
2 --------------------------------------------------
4 This LED Board (aka RED LEDs board) is widely used in
9 Vending area LED encoded with symbol 'V' (hex code 0x56).
10 Doesn't have any hardware blinking pattern.
12 Screen light tube LED which surrounds vending machine screen and
13 encoded with symbol 'S' (hex code 0x53). Supports blinking breathing pattern.
15 Water Pipe LED encoded with symbol 'P' (hex code 0x50) and
16 actually consists of 5 LEDs that exposed by protocol like one LED.
18 - cascade pattern
[all …]
H A Dleds-trigger-pattern.txt1 * Pattern format for LED pattern trigger
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
6 new value, and writing malformed pattern deactivates any active one.
13 The gradual dimming format of the software pattern values should be:
17 echo 0 1000 255 2000 > pattern
19 It will make the LED go gradually from zero-intensity to max (255) intensity in
22 LED brightness
24 255-| / \ / \ /
28 0-| / \/ \/
[all …]
H A Dregulator-led.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/regulator-led.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linusw@kernel.org>
20 - $ref: common.yaml#
24 pattern: '^led.*$'
27 const: regulator-led
29 vled-supply:
31 The regulator controlling the current to the LED.
[all …]
H A Dregister-bit-led.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/register-bit-led.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linusw@kernel.org>
14 bits in a certain register can turn on/off a single LED. The register bit LEDs
20 - $ref: /schemas/leds/common.yaml#
25 The unit-address is in the form of @<reg addr>,<bit offset>
26 pattern: '^led@[0-9a-f]+,[0-9a-f]{1,2}$'
29 const: register-bit-led
[all …]
/linux/drivers/leds/rgb/
H A Dleds-mt6370-rgb.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/led-class-multicolor.h>
109 #define MT6370_CHEN_BIT(id) BIT(MT6370_LED_ISNK4 - id)
112 #define MT6370_PWM_DUTY (BIT(5) - 1)
113 #define MT6372_PWM_DUTY (BIT(8) - 1)
117 * If the color of the LED in DT is set to
118 * - 'LED_COLOR_ID_RGB'
119 * - 'LED_COLOR_ID_MULTI'
122 * If so, this LED will choose 'struct led_classdev_mc mc' to use.
124 * 'MT6370_LED_ISNK1' ~ 'MT6370_LED_ISNK4', then this LED will choose
[all …]
/linux/include/linux/mfd/
H A Dmax8997.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * max8997.h - Driver for the Maxim 8997/8966
5 * Copyright (C) 2009-2010 Samsung Electronics
120 * @internal_mode_pattern: internal mode pattern for internal mode
121 * [0 - 3]: valid pattern number
123 * for the internal mode pattern
124 * [0 - 15]: available cycles
125 * @pattern_signal_period: period of the waveform for the internal mode pattern
126 * [0 - 255]: available period
150 * The number of LED devices for MAX8997 is two
[all …]
/linux/drivers/leds/trigger/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 bool "LED Trigger support"
13 tristate "LED Timer Trigger"
16 via sysfs. Some LED hardware can be programmed to start
17 blinking the LED without any further software interaction.
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
28 or on dense events, where this blinks the LED at constant rate if
36 bool "LED Disk Trigger"
[all …]
H A Dledtrig-timer.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Kernel Timer Trigger
5 * Copyright 2005-2006 Openedhand Ltd.
23 return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); in led_delay_on_show()
37 led_blink_set(led_cdev, &state, &led_cdev->blink_delay_off); in led_delay_on_store()
38 led_cdev->blink_delay_on = state; in led_delay_on_store()
48 return sprintf(buf, "%lu\n", led_cdev->blink_delay_off); in led_delay_off_show()
62 led_blink_set(led_cdev, &led_cdev->blink_delay_on, &state); in led_delay_off_store()
63 led_cdev->blink_delay_off = state; in led_delay_off_store()
80 u32 *pattern; in pattern_init() local
[all …]
H A Dledtrig-oneshot.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * One-shot LED Trigger
7 * Based on ledtrig-timer.c by Richard Purdie <rpurdie@openedhand.com>
32 &led_cdev->blink_delay_on, &led_cdev->blink_delay_off, in led_shot()
33 oneshot_data->invert); in led_shot()
43 return sprintf(buf, "%u\n", oneshot_data->invert); in led_invert_show()
58 oneshot_data->invert = !!state; in led_invert_store()
60 if (oneshot_data->invert) in led_invert_store()
73 return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); in led_delay_on_show()
87 led_cdev->blink_delay_on = state; in led_delay_on_store()
[all …]
H A Dledtrig-pattern.c1 // SPDX-License-Identifier: GPL-2.0
4 * LED pattern trigger
20 * When doing gradual dimming, the led brightness will be updated
26 PATTERN_TYPE_SW, /* Use standard timer for software pattern */
27 PATTERN_TYPE_HR, /* Use hrtimer for software pattern */
28 PATTERN_TYPE_HW, /* Hardware pattern */
49 data->curr = data->next; in pattern_trig_update_patterns()
50 if (!data->is_indefinite && data->curr == data->patterns) in pattern_trig_update_patterns()
51 data->repeat--; in pattern_trig_update_patterns()
53 if (data->next == data->patterns + data->npatterns - 1) in pattern_trig_update_patterns()
[all …]
/linux/include/linux/platform_data/
H A Dleds-lp55xx.h1 /* SPDX-License-Identifier: GPL-2.0-only */
9 * Derived from leds-lp5521.h, leds-lp5523.h
16 #include <linux/led-class-multicolor.h>
29 u8 led_current; /* mA x10, 0 if led is not connected */
55 * @led_config : Configurable led class device
56 * @num_channels : Number of LED channels
62 * @patterns : Predefined pattern data for RGB channels
68 /* LED channel configuration */
82 /* Predefined pattern data */
/linux/Documentation/devicetree/bindings/ata/
H A Dsata_highbank.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
15 - Andre Przywara <andre.przywara@arm.com>
19 const: calxeda,hb-ahci
27 dma-coherent: true
29 calxeda,pre-clocks:
33 sending an SGPIO pattern.
35 calxeda,post-clocks:
39 sending an SGPIO pattern.
[all …]

123