/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-bcm6328.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-bcm6328.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Álvaro Fernández Rojas <noltari@gmail.com> 17 as spi-gpio. See 21 exporting the 74x164 as spi-gpio prevents those LEDs to be hardware 24 BCM6328 LED controller has a HWDIS register, which controls whether a LED 27 is usually 1:1 for hardware to LED signals, but through the activity/link 29 explained later in brcm,link-signal-sources). Even if a LED is hardware [all …]
|
H A D | silergy,sy7802.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Silergy SY7802 1800mA Boost Charge Pump LED Driver 10 - André Apitzsch <git@apitzsch.eu> 13 The SY7802 is a current-regulated charge pump which can regulate two current 16 The SY7802 is a high-current synchronous boost converter with 2-channel 17 high side current sources. Each channel is able to deliver 900mA current. 22 - silergy,sy7802 27 enable-gpios: [all …]
|
H A D | leds-lm3697.txt | 1 * Texas Instruments - LM3697 Highly Efficient White LED Driver 3 The LM3697 11-bit LED driver provides high- 5 LED strings while delivering up to 90% efficiency. 10 - compatible: 12 - reg : I2C slave address 13 - #address-cells : 1 14 - #size-cells : 0 17 - enable-gpios : GPIO pin to enable/disable the device 18 - vled-supply : LED supply 21 - reg : 0 - LED is Controlled by bank A [all …]
|
H A D | maxim,max77693.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 16 There are two LED outputs available - FLED1 and FLED2. Each of them can 17 control a separate LED or they can be connected together to double the 18 maximum current for a single connected LED. One LED is represented by one 26 const: maxim,max77693-led 28 maxim,boost-mode: 33 case both current sources are used. [all …]
|
H A D | ti,tps61310.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments TPS6131X flash LED driver 10 - Matthias Fend <matthias.fend@emfend.at> 13 The TPS61310/TPS61311 is a flash LED driver with I2C interface. 15 The TPS6131x provides three constant-current sinks, capable of sinking 20 be used completely independently of each other. Therefore, only one LED is 29 - items: 30 - enum: [all …]
|
H A D | leds-lm3532.txt | 1 * Texas Instruments - lm3532 White LED driver with ambient light sensing 4 The LM3532 provides the 3 high-voltage, low-side current sinks. The device is 5 programmable over an I2C-compatible interface and has independent 7 method allows for different LED currents in each current sink thus allowing 11 each with 32 internal voltage setting resistors, 8-bit logarithmic and linear 16 - compatible : "ti,lm3532" 17 - reg : I2C slave address 18 - #address-cells : 1 19 - #size-cells : 0 22 - enable-gpios : gpio pin to enable (active high)/disable the device. [all …]
|
H A D | leds-lm36274.txt | 1 * Texas Instruments LM36274 4-Channel LCD Backlight Driver w/Integrated Bias 3 The LM36274 is an integrated four-channel WLED driver and LCD bias supply. 4 The backlight boost provides the power to bias four parallel LED strings with 5 up to 29V total output voltage. The 11-bit LED current is programmable via 9 Documentation/devicetree/bindings/mfd/ti-lmu.txt 12 Documentation/devicetree/bindings/regulator/lm363x-regulator.txt 15 - compatible: 16 "ti,lm36274-backlight" 17 - reg : 0 18 - #address-cells : 1 [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | ti-lmu.txt | 6 ------ --------------------------------- 9 LM3633 Backlight, LED and fault monitor 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 [all …]
|
H A D | mediatek,mt6370.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 13 MT6370 is a highly-integrated smart power management IC, which includes a 14 single cell Li-Ion/Li-Polymer switching battery charger, a USB Type-C & 15 Power Delivery (PD) controller, dual flash LED current sources, a RGB LED 26 wakeup-source: true 31 interrupt-controller: true 33 "#interrupt-cells": [all …]
|
/linux/drivers/leds/flash/ |
H A D | leds-sy7802.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Silergy SY7802 flash LED driver with an I2C interface 11 #include <linux/led-class-flash.h> 111 struct sy7802_led *led = container_of(lcdev, struct sy7802_led, flash.led_cdev); in sy7802_torch_brightness_set() local 112 struct sy7802 *chip = led->chip; in sy7802_torch_brightness_set() 120 mutex_lock(&chip->mutex); in sy7802_torch_brightness_set() 122 if (chip->fled_strobe_used) { in sy7802_torch_brightness_set() 123 dev_warn(chip->dev, "Cannot set torch brightness whilst strobe is enabled\n"); in sy7802_torch_brightness_set() 124 ret = -EBUSY; in sy7802_torch_brightness_set() 129 fled_torch_used_tmp = chip->fled_torch_used | BIT(led->led_id); in sy7802_torch_brightness_set() [all …]
|
H A D | leds-mt6370-flash.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/led-class-flash.h> 22 #include <media/v4l2-flash-led-class.h> 43 #define MT6370_FLCSEN_MASK(_id) BIT(MT6370_LED_FLASH2 - (_id)) 89 struct mt6370_led *led = to_mt6370_led(lcdev, flash.led_cdev); in mt6370_torch_brightness_set() local 90 struct mt6370_priv *priv = led->priv; in mt6370_torch_brightness_set() 91 u32 led_enable_mask = led->led_no == MT6370_LED_JOINT ? MT6370_FLCSEN_MASK_ALL : in mt6370_torch_brightness_set() 92 MT6370_FLCSEN_MASK(led->led_no); in mt6370_torch_brightness_set() 98 mutex_lock(&priv->lock); in mt6370_torch_brightness_set() 104 if (priv->fled_strobe_used) { in mt6370_torch_brightness_set() [all …]
|
/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm4708-smartrg-sr400ac.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 29 compatible = "gpio-leds"; 31 led-power-white { 34 linux,default-trigger = "default-on"; 37 led-power-amber { 42 led-usb2 { 45 trigger-sources = <&ohci_port2>, <&ehci_port2>; 46 linux,default-trigger = "usbport"; [all …]
|
H A D | bcm47081-tplink-archer-c5-v2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 11 compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708"; 12 model = "TP-LINK Archer C5 V2"; 24 compatible = "gpio-leds"; 26 led-2ghz { 31 led-lan { 36 led-usb2-port1 { 37 label = "bcm53xx:green:usb2-port1"; 39 trigger-sources = <&ohci_port1>, <&ehci_port1>; [all …]
|
H A D | bcm4709-tplink-archer-c9-v1.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 11 compatible = "tplink,archer-c9-v1", "brcm,bcm4709", "brcm,bcm4708"; 12 model = "TP-LINK Archer C9 V1"; 24 compatible = "gpio-leds"; 26 led-lan { 31 led-wps { 36 led-2ghz { 41 led-5ghz { 46 led-usb3 { [all …]
|
H A D | bcm47094-asus-rt-ac3100.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 #include "bcm5301x-nand-cs0-bch8.dtsi" 9 #include <dt-bindings/leds/common.h> 23 gpio-keys { 24 compatible = "gpio-keys"; 26 button-led { 32 button-reset { 38 button-wifi { 39 label = "Wi-Fi"; 44 button-wps { [all …]
|
/linux/Documentation/devicetree/bindings/leds/backlight/ |
H A D | lm3630a-backlight.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TI LM3630A High-Efficiency Dual-String White LED 10 - Lee Jones <lee@kernel.org> 11 - Daniel Thompson <daniel.thompson@linaro.org> 12 - Jingoo Han <jingoohan1@gmail.com> 15 The LM3630A is a current-mode boost converter which supplies the power and 26 '#address-cells': [all …]
|
H A D | ti,lm3509.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TI LM3509 High Efficiency Boost for White LED's and/or OLED Displays 10 - Patrick Gansterer <paroga@paroga.com> 23 "#address-cells": 26 "#size-cells": 29 reset-gpios: 32 ti,brightness-rate-of-change-us: 36 ti,oled-mode: [all …]
|
H A D | arcxcnn_bl.txt | 1 Binding for ArcticSand arc2c0608 LED driver 4 - compatible: should be "arc,arc2c0608" 5 - reg: slave address 8 - default-brightness: brightness value on boot, value from: 0-4095 9 - label: The name of the backlight device 11 - led-sources: List of enabled channels from 0 to 5. 14 - arc,led-config-0: setting for register ILED_CONFIG_0 15 - arc,led-config-1: setting for register ILED_CONFIG_1 16 - arc,dim-freq: PWM mode frequence setting (bits [3:0] used) 17 - arc,comp-config: setting for register CONFIG_COMP [all …]
|
/linux/drivers/video/backlight/ |
H A D | arcxcnn_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 * @leden : initial LED string enables, upper bit is global on/off 48 #define ARCXCNN_CMD_OVP_MASK 0x0C /* --- Over Voltage Threshold */ 62 #define ARCXCNN_LEDEN 0x06 /* LED Enable Register */ 63 #define ARCXCNN_LEDEN_ISETEXT 0x80 /* Full-scale current set extern */ 64 #define ARCXCNN_LEDEN_MASK 0x3F /* LED string enables mask */ 65 #define ARCXCNN_LEDEN_BITS 0x06 /* Bits of LED string enables */ 73 #define ARCXCNN_WLED_ISET_LSB 0x07 /* LED ISET LSB (in upper nibble) */ 75 #define ARCXCNN_WLED_ISET_MSB 0x08 /* LED ISET MSB (8 bits) */ 99 ret = i2c_smbus_read_byte_data(lp->client, reg); in arcxcnn_update_field() [all …]
|
/linux/arch/mips/boot/dts/brcm/ |
H A D | bcm63268-comtrend-vr-3032u.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 7 compatible = "comtrend,vr-3032u", "brcm,bcm63268"; 8 model = "Comtrend VR-3032u"; 17 stdout-path = &uart0; 23 brcm,serial-leds; 24 brcm,serial-dat-low; 25 brcm,serial-shift-inv; 27 led@0 { 29 brcm,hardware-controlled; [all …]
|
/linux/drivers/leds/ |
H A D | leds-lm36274.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // TI LM36274 LED chip family driver 3 // Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/ 9 #include <linux/leds-ti-lmu-common.h> 15 #include <linux/mfd/ti-lmu.h> 16 #include <linux/mfd/ti-lmu-register.h> 26 * @led_dev: led class device 30 * @led_sources: The LED strings supported in this array 31 * @num_leds: Number of LED strings are supported in this array 49 return ti_lmu_common_set_brightness(&chip->lmu_data, brt_val); in lm36274_brightness_set() [all …]
|
H A D | leds-bcm6328.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for BCM6328 memory-mapped LEDs, based on leds-syscon.c 59 * struct bcm6328_led - state container for bcm6328 based LEDs 60 * @cdev: LED class device for this LED 63 * @pin: LED pin number 66 * @active_low: LED is active low 98 * bits [31:0] -> LEDs 8-23 99 * bits [47:32] -> LEDs 0-7 100 * bits [63:48] -> unused 105 return pin + 16; /* LEDs 0-7 (bits 47:32) */ in bcm6328_pin2shift() [all …]
|
H A D | leds-lm3697.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // TI LM3697 LED chip family driver 3 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/ 15 #include <linux/leds-ti-lmu-common.h> 47 * struct lm3697_led - 48 * @hvled_strings: Array of LED strings associated with a control bank 49 * @label: LED label 50 * @led_dev: LED class device 53 * @control_bank: Control bank the LED is associated to. 0 is control bank A 55 * @enabled: LED brightness level (or LED_OFF) [all …]
|
/linux/drivers/leds/trigger/ |
H A D | ledtrig-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ledtrig-gio.c - LED Trigger Based on GPIO events 19 struct led_classdev *led; member 20 unsigned desired_brightness; /* desired brightness when led is on */ 21 struct gpio_desc *gpiod; /* gpio that triggers the led */ 26 struct led_classdev *led = _led; in gpio_trig_irq() local 27 struct gpio_trig_data *gpio_data = led_get_trigger_data(led); in gpio_trig_irq() 30 tmp = gpiod_get_value_cansleep(gpio_data->gpiod); in gpio_trig_irq() 32 if (gpio_data->desired_brightness) in gpio_trig_irq() 33 led_set_brightness_nosleep(gpio_data->led, in gpio_trig_irq() [all …]
|
/linux/arch/arm64/boot/dts/broadcom/bcmbca/ |
H A D | bcm4906-tplink-archer-c2300-v1.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/leds/common.h> 10 compatible = "tplink,archer-c2300-v1", "brcm,bcm4906", "brcm,bcm4908", "brcm,bcmbca"; 11 model = "TP-Link Archer C2300 V1"; 19 compatible = "gpio-leds"; 21 led-power { 27 led-2ghz { 33 led-5ghz { [all …]
|