Home
last modified time | relevance | path

Searched +full:leds +full:- +full:group +full:- +full:multicolor (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/Documentation/leds/
Dleds-class-multicolor.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Multicolor LED handling under Linux
9 The multicolor class groups monochrome LEDs and allows controlling two
14 Multicolor Class Control
16 The multicolor class presents files that groups the colors as indexes in an
18 led_class framework. The led_class framework is documented in led-class.rst
34 root:/sys/class/leds/multicolor:status# ls -lR
35 -rw-r--r-- 1 root root 4096 Oct 19 16:16 brightness
36 -r--r--r-- 1 root root 4096 Oct 19 16:16 max_brightness
37 -r--r--r-- 1 root root 4096 Oct 19 16:16 multi_index
[all …]
Dleds-blinkm.rst2 Leds BlinkM driver
5 The leds-blinkm driver supports the devices of the BlinkM family.
7 They are RGB-LED modules driven by a (AT)tiny microcontroller and
10 daisy-chain up to 127 BlinkMs on an I2C bus.
16 The interface this driver provides is 3-fold:
18 a) LED multicolor class interface for use with triggers
23 blinkm-<i2c-bus-nr>-<i2c-device-nr>:rgb:indicator
25 $ ls -h /sys/class/leds/blinkm-1-9:rgb:indicator
45 blinkm-<i2c-bus-nr>-<i2c-device-nr>-<color>
47 $ ls -h /sys/class/leds/blinkm-6-*
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/leds/
Dleds-group-multicolor.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-group-multicolor.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Multi-color LED built with monochromatic LEDs
10 - Jean-Jacques Hiblot <jjhiblot@traphandler.com>
13 This driver combines several monochromatic LEDs into one multi-color
14 LED using the multicolor LED class.
18 const: leds-group-multicolor
20 leds:
[all …]
Dleds-lp50xx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-lp50xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Andrew Davis <afd@ti.com>
13 The LP50XX is multi-channel, I2C RGB LED Drivers that can group RGB LEDs into
14 a LED group or control them individually.
27 - ti,lp5009
28 - ti,lp5012
29 - ti,lp5018
[all …]
/linux-6.12.1/drivers/leds/rgb/
Dleds-group-multicolor.c1 // SPDX-License-Identifier: GPL-2.0
3 * Multi-color LED built with monochromatic LED devices
5 * This driver groups several monochromatic LED devices in a single multicolor LED device.
7 * Compared to handling this grouping in user-space, the benefits are:
8 * - The state of the monochromatic LED relative to each other is always consistent.
9 * - The sysfs interface of the LEDs can be used for the group as a whole.
11 * Copyright 2023 Jean-Jacques Hiblot <jjhiblot@traphandler.com>
15 #include <linux/leds.h>
16 #include <linux/led-class-multicolor.h>
32 const unsigned int group_max_brightness = mc_cdev->led_cdev.max_brightness; in leds_gmc_set()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0
6 tristate "LEDs group multi-color support"
9 This option enables support for monochrome LEDs that are grouped
10 into multicolor LEDs which is useful in the case where LEDs of
11 different colors are physically grouped in a single multi-color LED
12 and driven by a controller that doesn't have multi-color support.
15 will be called leds-group-multicolor.
27 will be called leds-ktd202x.
38 will be called leds-ncp5623.
41 tristate "PWM driven multi-color LED Support"
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
3 obj-$(CONFIG_LEDS_GROUP_MULTICOLOR) += leds-group-multicolor.o
4 obj-$(CONFIG_LEDS_KTD202X) += leds-ktd202x.o
5 obj-$(CONFIG_LEDS_NCP5623) += leds-ncp5623.o
6 obj-$(CONFIG_LEDS_PWM_MULTICOLOR) += leds-pwm-multicolor.o
7 obj-$(CONFIG_LEDS_QCOM_LPG) += leds-qcom-lpg.o
8 obj-$(CONFIG_LEDS_MT6370_RGB) += leds-mt6370-rgb.o
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-class-led1 What: /sys/class/leds/<led>/brightness
8 Most LEDs don't have hardware brightness support, so will
9 just be turned on for non-zero brightness settings.
13 For multicolor LEDs, writing to this file will update all
14 LEDs within the group to a calculated percentage of what
23 Documentation/leds/leds-class-multicolor.rst.
26 /sys/class/leds/<led>/max_brightness.
30 Writing non-zero to this file while trigger is active changes the
35 What: /sys/class/leds/<led>/max_brightness
45 What: /sys/class/leds/<led>/brightness_hw_changed
[all …]
/linux-6.12.1/drivers/leds/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
19 LEDs from both userspace and optionally, by kernel events (triggers).
26 This option enables the LED sysfs class in /sys/class/leds. You'll
27 need this to do anything useful with LEDs. If unsure, say Y.
33 This option enables the flash LED sysfs class in /sys/class/leds.
34 It wraps LED Class and adds flash LEDs specific sysfs attributes
40 tristate "LED Multicolor Class Support"
43 This option enables the multicolor LED sysfs class in /sys/class/leds.
44 It wraps LED class and adds multicolor LED specific sysfs attributes
46 for multicolor LEDs that are grouped together. This class is not
[all …]
Dleds-blinkm.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * leds-blinkm.c
4 * (c) Jan-Simon Möller (dl9pf@gmx.de)
17 #include <linux/leds.h>
19 #include <linux/led-class-multicolor.h>
24 /* Addresses to scan - BlinkM is on 0x09 by default*/
30 /* Contains structs for both the color-separated sysfs classes, and the new multicolor class */
34 /* used when multicolor support is disabled */
69 u8 fade_speed; /* fade speed 1 - 255 */
70 s8 time_adjust; /* time adjust -128 - 127 */
[all …]
/linux-6.12.1/arch/arm64/boot/dts/allwinner/
Dsun50i-a64-pinephone.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include "sun50i-a64.dtsi"
7 #include "sun50i-a64-cpu-opp.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/pwm/pwm.h>
15 chassis-type = "handset";
23 compatible = "pwm-backlight";
25 enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */
[all …]
/linux-6.12.1/arch/arm64/boot/dts/rockchip/
Drk3566-lckfb-tspi.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/soc/rockchip,vop2.h>
10 #include <dt-bindings/soc/rockchip,boot-mode.h>
15 compatible = "lckfb,tspi-rk3566", "rockchip,rk3566";
24 stdout-path = "serial2:1500000n8";
[all …]
Drk3399-pinephone-pro.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 * https://files.pine64.org/doc/PinePhonePro/PinephonePro-Schematic-V1.0-20211127.pdf
12 /dts-v1/;
13 #include <dt-bindings/input/gpio-keys.h>
14 #include <dt-bindings/input/linux-event-codes.h>
15 #include <dt-bindings/leds/common.h>
20 compatible = "pine64,pinephone-pro", "rockchip,rk3399";
21 chassis-type = "handset";
30 stdout-path = "serial2:115200n8";
33 adc-keys {
[all …]
Drk3326-gameforce-chi.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
16 chassis-type = "handset";
24 stdout-path = "serial2:115200n8";
27 adc_joystick: adc-joystick {
28 compatible = "adc-joystick";
[all …]