Home
last modified time | relevance | path

Searched +full:pwm +full:- +full:leds (Results 1 – 25 of 584) sorted by relevance

12345678910>>...24

/kernel/linux/linux-6.6/drivers/leds/rgb/
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.
18 tristate "PWM driven multi-color LED Support"
19 depends on PWM
21 This option enables support for PWM driven monochrome LEDs that are
[all …]
Dleds-pwm-multicolor.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * PWM-based multi-color LED control
5 * Copyright 2022 Sven Schwermer <sven.schwermer@disruptive-technologies.com>
10 #include <linux/led-class-multicolor.h>
11 #include <linux/leds.h>
17 #include <linux/pwm.h>
20 struct pwm_device *pwm; member
28 struct pwm_led leds[]; member
42 mutex_lock(&priv->lock); in led_pwm_mc_set()
44 for (i = 0; i < mc_cdev->num_colors; i++) { in led_pwm_mc_set()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-pwm.txt1 LED connected to PWM
4 - compatible : should be "pwm-leds".
6 Each LED is represented as a sub-node of the pwm-leds device. Each
9 LED sub-node properties:
10 - pwms : PWM property to point to the PWM device (phandle)/port (id) and to
12 - pwm-names : (optional) Name to be used by the PWM subsystem for the PWM device
13 For the pwms and pwm-names property please refer to:
14 Documentation/devicetree/bindings/pwm/pwm.txt
15 - max-brightness : Maximum brightness possible for the LED
16 - active-low : (optional) For PWMs where the LED is wired to supply
[all …]
Dleds-pca9532.txt1 *NXP - pca9532 PWM LED Driver
3 The PCA9532 family is SMBus I/O expander optimized for dimming LEDs.
4 The PWM support 256 steps.
7 - compatible:
12 - reg - I2C slave address
14 Each led is represented as a sub-node of the nxp,pca9530.
16 Optional sub-node properties:
17 - label: see Documentation/devicetree/bindings/leds/common.txt
18 - type: Output configuration, see dt-bindings/leds/leds-pca9532.h (default NONE)
19 - linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt
[all …]
/kernel/linux/linux-6.6/drivers/leds/
Dleds-pwm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/drivers/leds-pwm.c
5 * simple PWM based LED control
9 * based on leds-gpio.c by Raphael Assenat <raph@8d.com>
16 #include <linux/leds.h>
18 #include <linux/pwm.h>
20 #include "leds.h"
31 struct pwm_device *pwm; member
38 struct led_pwm_data leds[]; member
46 unsigned int max = led_dat->cdev.max_brightness; in led_pwm_set()
[all …]
Dleds-pca9532.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * pca9532.c - 16-bit Led dimmer
14 #include <linux/leds.h>
18 #include <linux/leds-pca9532.h>
40 struct pca9532_led leds[16]; member
48 u8 pwm[2]; member
101 .name = "leds-pca953x",
109 /* We have two pwm/blinkers, but 16 possible leds to drive. Additionally,
110 * the clever Thecus people are using one pwm to drive the beeper. So,
111 * as a compromise we average one pwm to the values requested by all
[all …]
Dleds-cht-wcove.c1 // SPDX-License-Identifier: GPL-2.0
3 * Driver for LEDs connected to the Intel Cherry Trail Whiskey Cove PMIC
14 #include <linux/leds.h>
55 u16 pwm; member
65 unsigned int pwm; member
77 struct cht_wc_led leds[CHT_WC_LED_COUNT]; member
86 .pwm = CHT_WC_LED1_PWM,
94 .pwm = CHT_WC_LED2_PWM,
112 mutex_lock(&led->mutex); in cht_wc_leds_brightness_set()
115 ret = regmap_update_bits(led->regmap, led->regs->ctrl, in cht_wc_leds_brightness_set()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 LEDs from both userspace and optionally, by kernel events (triggers).
20 This option enables the LED sysfs class in /sys/class/leds. You'll
21 need this to do anything useful with LEDs. If unsure, say Y.
27 This option enables the flash LED sysfs class in /sys/class/leds.
28 It wraps LED Class and adds flash LEDs specific sysfs attributes
37 This option enables the multicolor LED sysfs class in /sys/class/leds.
40 for multicolor LEDs that are grouped together. This class is not
41 intended for single color LEDs. It can be built as a module.
48 for LED sysfs class devices under /sys/class/leds.
[all …]
/kernel/linux/linux-5.10/drivers/leds/
Dleds-pwm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/drivers/leds-pwm.c
5 * simple PWM based LED control
9 * based on leds-gpio.c by Raphael Assenat <raph@8d.com>
16 #include <linux/leds.h>
18 #include <linux/pwm.h>
29 struct pwm_device *pwm; member
36 struct led_pwm_data leds[]; member
44 unsigned int max = led_dat->cdev.max_brightness; in led_pwm_set()
45 unsigned long long duty = led_dat->pwmstate.period; in led_pwm_set()
[all …]
Dleds-pca9532.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * pca9532.c - 16-bit Led dimmer
14 #include <linux/leds.h>
18 #include <linux/leds-pca9532.h>
41 struct pca9532_led leds[16]; member
49 u8 pwm[2]; member
103 .name = "leds-pca953x",
111 /* We have two pwm/blinkers, but 16 possible leds to drive. Additionally,
112 * the clever Thecus people are using one pwm to drive the beeper. So,
113 * as a compromise we average one pwm to the values requested by all
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 LEDs from both userspace and optionally, by kernel events (triggers).
20 This option enables the LED sysfs class in /sys/class/leds. You'll
21 need this to do anything useful with LEDs. If unsure, say N.
27 This option enables the flash LED sysfs class in /sys/class/leds.
28 It wraps LED Class and adds flash LEDs specific sysfs attributes
37 This option enables the multicolor LED sysfs class in /sys/class/leds.
40 for multicolor LEDs that are grouped together. This class is not
41 intended for single color LEDs. It can be built as a module.
48 for LED sysfs class devices under /sys/class/leds.
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/
Dleds-pwm-multicolor.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-pwm-multicolor.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Multi-color LEDs connected to PWM
10 - Sven Schwermer <sven.schwermer@disruptive-technologies.com>
13 This driver combines several monochrome PWM LEDs into one multi-color
18 const: pwm-leds-multicolor
20 multi-led:
22 $ref: leds-class-multicolor.yaml#
[all …]
Dleds-pwm.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-pwm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: LEDs connected to PWM
10 - Pavel Machek <pavel@ucw.cz>
13 Each LED is represented as a sub-node of the pwm-leds device. Each
18 const: pwm-leds
21 "^led(-[0-9a-f]+)?$":
30 pwm-names: true
[all …]
Dleds-qcom-lpg.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-qcom-lpg.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
20 - enum:
21 - qcom,pm660l-lpg
22 - qcom,pm8150b-lpg
23 - qcom,pm8150l-lpg
24 - qcom,pm8350c-pwm
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-led-driver-lm35331 What: /sys/class/leds/<led>/als_channel
7 ALS-current-control mode (1, 2), where:
14 What: /sys/class/leds/<led>/als_en
19 Enable ALS-current-control mode (0, 1).
21 What: /sys/class/leds/<led>/falltime
22 What: /sys/class/leds/<led>/risetime
40 What: /sys/class/leds/<led>/id
47 What: /sys/class/leds/<led>/linear
52 Set the brightness-mapping mode (0, 1), where:
59 What: /sys/class/leds/<led>/pwm
[all …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-class-led-driver-lm35331 What: /sys/class/leds/<led>/als_channel
7 ALS-current-control mode (1, 2), where:
14 What: /sys/class/leds/<led>/als_en
19 Enable ALS-current-control mode (0, 1).
21 What: /sys/class/leds/<led>/falltime
22 What: /sys/class/leds/<led>/risetime
40 What: /sys/class/leds/<led>/id
47 What: /sys/class/leds/<led>/linear
52 Set the brightness-mapping mode (0, 1), where:
59 What: /sys/class/leds/<led>/pwm
[all …]
/kernel/linux/linux-6.6/drivers/mfd/
Dlp3943.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * It can be used for a GPIO expander and PWM generators.
16 * LP3943 MFD ---- GPIO expander leds-gpio eg) HW enable pin
18 * --- PWM generator leds-pwm eg) PWM input
20 * Internal two PWM channels are used for LED dimming effect.
23 * LEDs can be controlled with legacy leds-gpio(static brightness) or
24 * leds-pwm drivers(dynamic brightness control).
25 * Alternatively, it can be used for generic GPIO and PWM controller.
27 * A PWM is input pin of a backlight device.
64 .name = "lp3943-pwm",
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Dlp3943.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * It can be used for a GPIO expander and PWM generators.
16 * LP3943 MFD ---- GPIO expander leds-gpio eg) HW enable pin
18 * --- PWM generator leds-pwm eg) PWM input
20 * Internal two PWM channels are used for LED dimming effect.
23 * LEDs can be controlled with legacy leds-gpio(static brightness) or
24 * leds-pwm drivers(dynamic brightness control).
25 * Alternatively, it can be used for generic GPIO and PWM controller.
27 * A PWM is input pin of a backlight device.
64 .name = "lp3943-pwm",
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dmax77693.txt1 Maxim MAX77693 multi-function device
4 - PMIC,
5 - CHARGER,
6 - LED,
7 - MUIC,
8 - HAPTIC
14 - compatible : Must be "maxim,max77693".
15 - reg : Specifies the i2c slave address of PMIC block.
16 - interrupts : This i2c device has an IRQ line connected to the main SoC.
19 - regulators : The regulators of max77693 have to be instantiated under subnode
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/pwm/
Dpwm-lp3943.txt1 TI/National Semiconductor LP3943 PWM controller
4 - compatible: "ti,lp3943-pwm"
5 - #pwm-cells: Should be 2. See pwm.yaml in this directory for a
9 - ti,pwm0 or ti,pwm1: Output pin number(s) for PWM channel 0 or 1.
17 PWM 0 is for RGB LED brightness control
18 PWM 1 is for brightness control of LP8557 backlight device
26 * PWM 0 : output 8, 9 and 10
27 * PWM 1 : output 15
29 pwm3943: pwm {
30 compatible = "ti,lp3943-pwm";
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pwm/
Dpwm-lp3943.txt1 TI/National Semiconductor LP3943 PWM controller
4 - compatible: "ti,lp3943-pwm"
5 - #pwm-cells: Should be 2. See pwm.yaml in this directory for a
9 - ti,pwm0 or ti,pwm1: Output pin number(s) for PWM channel 0 or 1.
17 PWM 0 is for RGB LED brightness control
18 PWM 1 is for brightness control of LP8557 backlight device
26 * PWM 0 : output 8, 9 and 10
27 * PWM 1 : output 15
29 pwm3943: pwm {
30 compatible = "ti,lp3943-pwm";
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/samsung/
Dexynos54xx-odroidxu-leds.dtsi1 // SPDX-License-Identifier: GPL-2.0
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/leds/common.h>
15 led-controller-1 {
16 compatible = "pwm-leds";
18 led-1 {
22 pwms = <&pwm 1 2000000 0>;
23 pwm-names = "pwm1";
28 max-brightness = <127>;
29 linux,default-trigger = "mmc0";
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/broadcom/
Dbcm958625-meraki-mx6x-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
8 #include "bcm-nsp.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
14 pwm-leds {
15 compatible = "pwm-leds";
17 led-1 {
20 pwms = <&pwm 1 50000>;
[all …]
Dbcm53016-meraki-mr32.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 * Copyright (C) 2018-2020 Christian Lamparter <chunkeey@gmail.com>
9 /dts-v1/;
12 #include "bcm5301x-nand-cs0-bch8.dtsi"
13 #include <dt-bindings/leds/common.h>
32 leds {
33 compatible = "gpio-leds";
39 panic-indicator;
49 compatible = "gpio-keys";
51 button-restart {
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dbcm53016-meraki-mr32.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 * Copyright (C) 2018-2020 Christian Lamparter <chunkeey@gmail.com>
9 /dts-v1/;
12 #include "bcm5301x-nand-cs0-bch8.dtsi"
13 #include <dt-bindings/leds/common.h>
32 leds {
33 compatible = "gpio-leds";
39 panic-indicator;
49 compatible = "gpio-keys";
50 #address-cells = <1>;
[all …]

12345678910>>...24