Home
last modified time | relevance | path

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

12345678

/linux/Documentation/ABI/testing/
H A 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 …]
/linux/drivers/leds/
H A 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>
54 u16 pwm; member
64 unsigned int pwm; member
76 struct cht_wc_led leds[CHT_WC_LED_COUNT]; member
85 .pwm = CHT_WC_LED1_PWM,
93 .pwm = CHT_WC_LED2_PWM,
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()
[all …]
/linux/Documentation/devicetree/bindings/pwm/
H A 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 …]
H A Dnxp,pca9685-pwm.txt1 NXP PCA9685 16-channel 12-bit PWM LED controller
5 - compatible: "nxp,pca9685-pwm"
6 - #pwm-cells: Should be 2. See pwm.yaml in this directory for a description of
8 The index 16 is the ALLCALL channel, that sets all PWM channels at the same
12 - invert (bool): boolean to enable inverted logic
13 - open-drain (bool): boolean to configure outputs with open-drain structure;
14 if omitted use totem-pole structure
18 For LEDs that are directly connected to the PCA, the following setting is
22 compatible = "nxp,pca9685-pwm";
23 #pwm-cells = <2>;
[all …]
/linux/arch/arm/boot/dts/samsung/
H A 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 …]
H A Dexynos5422-odroidxu4.dts1 // SPDX-License-Identifier: GPL-2.0
7 * Copyright (c) 2013-2015 Samsung Electronics Co., Ltd.
11 /dts-v1/;
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/sound/samsung-i2s.h>
14 #include "exynos5422-odroidxu3-common.dtsi"
18 compatible = "hardkernel,odroid-xu4", "samsung,exynos5800", \
21 led-controller {
22 compatible = "pwm-leds";
24 led-1 {
[all …]
H A Dexynos4412-odroidu3.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Hardkernel's Exynos4412 based ODROID-U3 board device tree source
7 * Device tree source file for Hardkernel's ODROID-U3 board which is based
11 /dts-v1/;
12 #include <dt-bindings/leds/common.h>
13 #include "exynos4412-odroid-common.dtsi"
14 #include "exynos4412-prime.dtsi"
17 model = "Hardkernel ODROID-U3 board based on Exynos4412";
18 compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4";
29 vbus_otg_reg: regulator-1 {
[all …]
H A Dexynos4412-itop-elite.dts1 // SPDX-License-Identifier: GPL-2.0
13 /dts-v1/;
14 #include <dt-bindings/leds/common.h>
15 #include <dt-bindings/pwm/pwm.h>
16 #include <dt-bindings/sound/samsung-i2s.h>
17 #include "exynos4412-itop-scp-core.dtsi"
21 compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4";
29 stdout-path = "serial2:115200n8";
32 leds {
33 compatible = "gpio-leds";
[all …]
/linux/arch/arm/boot/dts/broadcom/
H A 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 …]
/linux/Documentation/driver-api/gpio/
H A Ddrivers-on-gpio.rst6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
24 - gpio_mouse: drivers/input/mouse/gpio_mouse.c is used to provide a mouse with
29 - gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from
31 off/on, for an actual PWM waveform, see pwm-gpio below.)
33 - pwm-gpio: drivers/pwm/pwm-gpio.c is used to toggle a GPIO with a high
[all …]
/linux/Documentation/leds/
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
15 individual LEDs, grouped together as RGB LEDs or otherwise be accessed as PWM
16 channels. The output of each PWM channel is routed to other hardware
19 The each PWM channel can operate with a period between 27us and 384 seconds and
30 /sys/class/leds/<led>/hw_pattern
31 --------------------------------
35 The pattern is a series of brightness and hold-time pairs, with the hold-time
39 transitions expected by the leds-trigger-pattern format, each entry in the
[all …]
/linux/arch/arm/boot/dts/rockchip/
H A Drv1109-relfor-saib.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/input/input.h>
16 gpio-keys {
17 compatible = "gpio-keys";
23 linux,input-type = <1>;
27 ir_receiver: ir-receiver {
28 compatible = "gpio-ir-receiver";
30 pinctrl-names = "default";
[all …]
H A Drk3128-xpi-3128.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
10 model = "Geniatech XPI-3128";
11 compatible = "geniatech,xpi-3128", "rockchip,rk3128";
25 stdout-path = &uart1;
28 adc-keys {
29 compatible = "adc-keys";
30 io-channels = <&saradc 1>;
[all …]
/linux/drivers/platform/chrome/wilco_ec/
H A Dkeyboard_leds.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/leds.h>
14 #include <linux/platform_data/wilco-ec.h>
33 * struct wilco_keyboard_leds_msg - Message to/from EC for keyboard LED control.
40 * @percent: Brightness in 0-100. Only meaningful in PWM mode.
71 dev_err(ec->dev, in send_kbbl_msg()
72 "Failed sending keyboard LEDs command: %d\n", ret); in send_kbbl_msg()
96 dev_err(ec->dev, in set_kbbl()
97 "EC reported failure sending keyboard LEDs command: %d\n", in set_kbbl()
99 return -EIO; in set_kbbl()
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dti-lmu.txt6 ------ ---------------------------------
14 - compatible: Should be one of:
20 - reg: I2C slave address.
28 - enable-gpios: A GPIO specifier for hardware enable pin.
29 - ramp-up-us: Current ramping from one brightness level to
31 Range from 2048 us - 117.44 s
32 - ramp-down-us: Current ramping from one brightness level to
34 Range from 2048 us - 117.44 s
35 - ti,brightness-resolution - This determines whether to use 8 bit brightness
47 - backlight: All LMU devices have backlight child nodes.
[all …]
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt7986a-bananapi-bpi-r3-mini.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 * Authors: Frank Wunderlich <frank-w@public-files.de>
9 /dts-v1/;
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/leds/common.h>
14 #include <dt-bindings/pinctrl/mt65xx.h>
19 model = "Bananapi BPI-R3 Mini";
20 chassis-type = "embedded";
21 compatible = "bananapi,bpi-r3mini", "mediatek,mt7986a";
[all …]
/linux/Documentation/driver-api/
H A Dpwm.rst2 Pulse Width Modulation (PWM) interface
5 This provides an overview about the Linux PWM interface
7 PWMs are commonly used for controlling LEDs, fans or vibrators in
9 the Linux PWM API (although they could). However, PWMs are often
11 up to the board designer to connect them to LEDs or fans. To provide
12 this kind of flexibility the generic PWM API exists.
15 ----------------
17 Users of the legacy PWM API use unique IDs to refer to PWM devices.
19 Instead of referring to a PWM device via its unique ID, board setup code
20 should instead register a static mapping that can be used to match PWM
[all …]
/linux/arch/riscv/boot/dts/sifive/
H A Dhifive-unmatched-a00.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 #include "fu740-c000.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pwm/pwm.h>
15 compatible = "sifive,hifive-unmatched-a00", "sifive,fu740-c000",
19 stdout-path = "serial0";
23 timebase-frequency = <RTCCLK_FREQ>;
32 #clock-cells = <0>;
[all …]
H A Dhifive-unleashed-a00.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /* Copyright (c) 2018-2019 SiFive, Inc */
4 #include "fu540-c000.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/pwm/pwm.h>
14 compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000",
18 stdout-path = "serial0";
22 timebase-frequency = <RTCCLK_FREQ>;
31 #clock-cells = <0>;
[all …]
/linux/arch/arm/boot/dts/microchip/
H A Dat91-kizboxmini-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board
5 * Copyright (C) 2014-2018 Overkiz SAS
16 stdout-path = &dbgu;
25 clock-frequency = <12000000>;
29 clock-frequency = <32768>;
38 compatible = "gpio-keys";
40 key-prog {
44 wakeup-source;
47 key-reset {
[all …]
/linux/Documentation/devicetree/bindings/leds/irled/
H A Dpwm-ir-tx.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/leds/irled/pwm-ir-tx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: IR LED connected through PWM pin
10 - Sean Young <sean@mess.org>
13 IR LED connected through PWM pin which is used as remote controller
19 - const: pwm-ir-tx
20 - const: nokia,n900-ir
27 - compatible
[all …]
/linux/Documentation/devicetree/bindings/leds/backlight/
H A Dpwm-backlight.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/leds/backlight/pwm-backlight.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: pwm-backlight
10 - Lee Jones <lee@kernel.org>
11 - Daniel Thompson <daniel.thompson@linaro.org>
12 - Jingoo Han <jingoohan1@gmail.com>
15 - $ref: common.yaml#
19 const: pwm-backlight
[all …]
H A Dsky81452-backlight.txt1 SKY81452-backlight bindings
4 - compatible : Must be "skyworks,sky81452-backlight"
7 - name : Name of backlight device. Default is 'lcd-backlight'.
8 - gpios : GPIO to use to EN pin.
10 - led-sources : List of enabled channels from 0 to 5.
11 See Documentation/devicetree/bindings/leds/common.txt
12 - skyworks,ignore-pwm : Ignore both PWM input
13 - skyworks,dpwm-mode : Enable DPWM dimming mode, otherwise Analog dimming.
14 - skyworks,phase-shift : Enable phase shift mode
15 - skyworks,short-detection-threshold-volt
[all …]
/linux/arch/riscv/boot/dts/allwinner/
H A Dsun20i-d1-dongshan-nezha-stu.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/leds/common.h>
7 /dts-v1/;
9 #include "sun20i-d1.dtsi"
10 #include "sun20i-common-regulators.dtsi"
14 compatible = "100ask,dongshan-nezha-stu", "allwinner,sun20i-d1";
22 stdout-path = "serial0:115200n8";
25 leds {
26 compatible = "gpio-leds";
[all …]
/linux/arch/arm/boot/dts/st/
H A Dstm32mp153c-lxa-fairytux2.dtsi1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause)
3 * Copyright (C) 2020 STMicroelectronics - All Rights Reserved
10 #include "stm32mp15xx-osd32.dtsi"
11 #include "stm32mp15xxac-pinctrl.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/leds/common.h>
16 #include <dt-bindings/pwm/pwm.h>
31 stdout-path = &uart4;
35 compatible = "pwm-backlight";
[all …]

12345678