| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/ |
| D | leds-pwm.txt | 1 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 …]
|
| D | leds-pca9532.txt | 1 *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-5.10/drivers/leds/ |
| D | leds-pwm.c | 1 // 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 …]
|
| D | leds-pca9532.c | 1 // 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 …]
|
| D | Kconfig | 1 # 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 …]
|
| D | leds-is31fl32xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * http://www.issi.com/US/product-analog-fxled-driver.shtml 9 * http://www.si-en.com/product.asp?parentid=890 15 #include <linux/leds.h> 39 u8 channel; /* 1-based, max priv->cdef->channels */ 47 struct is31fl32xx_led_data leds[]; member 51 * struct is31fl32xx_chipdef - chip-specific attributes 54 * @pwm_update_reg : address of PWM Update register 57 * @pwm_register_base : address of first PWM register 58 * @pwm_registers_reversed: : true if PWM registers count down instead of up [all …]
|
| D | leds-lp3944.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-lp3944.c - driver for National Semiconductor LP3944 Funlight Chip 12 * This helper chip can drive up to 8 leds, with two programmable DIM modes; 16 * The DIM modes are used to set _blink_ patterns for leds, the pattern is 18 * - period: from 0s to 1.6s 19 * - duty cycle: percentage of the period the led is on, from 0 to 100 22 * leds, the camera flash light and the displays backlights. 28 #include <linux/leds.h> 30 #include <linux/leds-lp3944.h> 33 #define LP3944_REG_INPUT1 0x00 /* LEDs 0-7 InputRegister (Read Only) */ [all …]
|
| D | leds-pca955x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2007-2008 Extreme Engineering Solutions, Inc. 5 * Author: Nate Case <ncase@xes-inc.com> 11 * Device Description 7-bit slave address 12 * ------ ----------- ------------------- 13 * PCA9550 2-bit driver 0x60 .. 0x61 14 * PCA9551 8-bit driver 0x60 .. 0x67 15 * PCA9552 16-bit driver 0x60 .. 0x67 16 * PCA9553/01 4-bit driver 0x62 17 * PCA9553/02 4-bit driver 0x63 [all …]
|
| /kernel/linux/linux-5.10/Documentation/ABI/testing/ |
| D | sysfs-class-led-driver-lm3533 | 1 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-5.10/drivers/mfd/ |
| D | lp3943.c | 1 // 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/ |
| D | max77693.txt | 1 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 …]
|
| D | ti-lmu.txt | 6 ------ --------------------------------- 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/pwm/ |
| D | pwm-lp3943.txt | 1 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 …]
|
| D | atmel-pwm.txt | 1 Atmel PWM controller 4 - compatible: should be one of: 5 - "atmel,at91sam9rl-pwm" 6 - "atmel,sama5d3-pwm" 7 - "atmel,sama5d2-pwm" 8 - "microchip,sam9x60-pwm" 9 - reg: physical base address and length of the controller's registers 10 - #pwm-cells: Should be 3. See pwm.yaml in this directory for a 15 pwm0: pwm@f8034000 { 16 compatible = "atmel,at91sam9rl-pwm"; [all …]
|
| D | nxp,pca9685-pwm.txt | 1 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 …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | bcm53016-meraki-mr32.dts | 1 // 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 …]
|
| D | exynos54xx-odroidxu-leds.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <dt-bindings/gpio/gpio.h> 15 compatible = "pwm-leds"; 19 pwms = <&pwm 1 2000000 0>; 20 pwm-names = "pwm1"; 25 max-brightness = <127>; 26 linux,default-trigger = "mmc0"; 31 pwms = <&pwm 2 2000000 0>; 32 pwm-names = "pwm2"; 33 max-brightness = <255>; [all …]
|
| D | berlin2cd-google-chromecast.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 19 stdout-path = "serial0:115200n8"; 26 * We're using "linux,usable-memory" instead of "reg" here 34 linux,usable-memory = <0x00000000 0x20000000>; /* 512 MB */ 37 leds { 38 compatible = "pwm-leds"; 39 pinctrl-0 = <&ledpwm_pmux>; 40 pinctrl-names = "default"; [all …]
|
| D | exynos4412-odroidu3.dts | 1 // 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 "exynos4412-odroid-common.dtsi" 13 #include "exynos4412-prime.dtsi" 16 model = "Hardkernel ODROID-U3 board based on Exynos4412"; 17 compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4"; 24 leds { 25 compatible = "gpio-leds"; [all …]
|
| D | at91-kizboxmini-common.dtsi | 1 // 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"; 39 #address-cells = <1>; 40 #size-cells = <0>; 46 wakeup-source; [all …]
|
| D | armada-388-helios4.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 10 /dts-v1/; 11 #include "armada-388.dtsi" 12 #include "armada-38x-solidrun-microsom.dtsi" 25 /* So that mvebu u-boot can update the MAC addresses */ 30 stdout-path = "serial0:115200n8"; 33 reg_12v: regulator-12v { 34 compatible = "regulator-fixed"; 35 regulator-name = "power_brick_12V"; 36 regulator-min-microvolt = <12000000>; [all …]
|
| /kernel/linux/linux-5.10/Documentation/driver-api/ |
| D | pwm.rst | 2 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 …]
|
| /kernel/linux/linux-5.10/drivers/platform/chrome/wilco_ec/ |
| D | keyboard_leds.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/backlight/ |
| D | sky81452-backlight.txt | 1 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 …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | leds-pca9532.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * pca9532.h - platform data structure for pca9532 led controller 13 #include <linux/leds.h> 15 #include <dt-bindings/leds/leds-pca9532.h> 37 struct pca9532_led leds[16]; member 38 u8 pwm[2]; member
|