Home
last modified time | relevance | path

Searched +full:charge +full:- +full:led (Results 1 – 25 of 104) sorted by relevance

12345

/Linux-v5.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 …]
/Linux-v5.10/Documentation/admin-guide/laptops/
Dlg-laptop.rst1 .. SPDX-License-Identifier: GPL-2.0+
7 By Matan Ziv-Av <matan@svgalib.org>
11 -------
15 - FN-F1 (LG control panel) - Generates F15
16 - FN-F5 (Touchpad toggle) - Generates F13
17 - FN-F6 (Airplane mode) - Generates RFKILL
18 - FN-F8 (Keyboard backlight) - Generates F16.
20 - FN-F9 (Reader mode) - Generates F14
26 -----------
28 Writing 0/1 to /sys/devices/platform/lg-laptop/reader_mode disables/enables
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/leds/
Dleds-sgm3140.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-sgm3140.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: SGMICRO SGM3140 500mA Buck/Boost Charge Pump LED Driver
10 - Luca Weiss <luca@z3ntu.xyz>
13 The SGM3140 is a current-regulated charge pump which can regulate two current
17 http://www.sg-micro.com/uploads/soft/20190626/1561535688.pdf
23 enable-gpios:
27 flash-gpios:
[all …]
Dleds-pm8058.txt1 Qualcomm PM8058 LED driver
3 The Qualcomm PM8058 is a multi-functional device which contains
4 an LED driver block for up to six LEDs: three normal LEDs, two
5 "flash" LEDs and one "keypad backlight" LED. The names are
6 quoted because sometimes these LED drivers are used for wildly
8 are more of a suggestion than a hard-wired usecase.
10 Hardware-wise the different LEDs support slightly different
11 output currents. The "flash" LEDs do not need to charge nor
12 do they support external triggers. They are just powerful LED
17 mfd/qcom-pm8xxx.txt.
[all …]
Dleds-gpio.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
14 Each LED is represented as a sub-node of the gpio-leds device. Each
15 node's name represents the name of the corresponding LED.
19 const: gpio-leds
22 # The first form is preferred, but fall back to just 'led' anywhere in the
[all …]
/Linux-v5.10/include/linux/platform_data/
Dadp8860.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Copyright 2009-2010 Analog Devices Inc.
101 u8 bl_led_assign; /* 1 = Backlight 0 = Individual LED */
103 u8 bl_fade_in; /* Backlight Fade-In Timer */
104 u8 bl_fade_out; /* Backlight Fade-Out Timer */
105 u8 bl_fade_law; /* fade-on/fade-off transfer characteristic */
130 u8 led_fade_in; /* LED Fade-In Timer */
131 u8 led_fade_out; /* LED Fade-Out Timer */
132 u8 led_fade_law; /* fade-on/fade-off transfer characteristic */
137 * charge pump to switch to lower gains. NOT AVAILABLE on ADP8860
[all …]
/Linux-v5.10/include/linux/mfd/
Dmax8997.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * max8997.h - Driver for the Maxim 8997/8966
5 * Copyright (C) 2009-2010 Samsung Electrnoics
123 * [0 - 3]: valid pattern number
126 * [0 - 15]: available cycles
128 * [0 - 255]: available period
153 * The number of LED devices for MAX8997 is two
154 * @mode: LED mode for each LED device
155 * @brightness: initial brightness for each LED device
157 * [0 - 31]: MAX8997_FLASH_MODE and MAX8997_FLASH_PIN_CONTROL_MODE
[all …]
Dtps65010.h32 * ----------------------------------------------------------------------------
34 * ----------------------------------------------------------------------------
107 * ----------------------------------------------------------------------------
109 * ----------------------------------------------------------------------------
125 * ----------------------------------------------------------------------------
127 * ----------------------------------------------------------------------------
131 * 0 mA -- DON'T DRAW (might supply power instead)
132 * 100 mA -- usb unit load (slowest charge rate)
133 * 500 mA -- usb high power (fast battery charge)
144 * led: LED1 or LED2
[all …]
/Linux-v5.10/drivers/gpu/drm/nouveau/
Dnouveau_led.c4 * Permission is hereby granted, free of charge, to any person obtaining
37 nouveau_led_get_brightness(struct led_classdev *led) in nouveau_led_get_brightness() argument
39 struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; in nouveau_led_get_brightness()
41 struct nvif_object *device = &drm->client.device.object; in nouveau_led_get_brightness()
54 nouveau_led_set_brightness(struct led_classdev *led, enum led_brightness value) in nouveau_led_set_brightness() argument
56 struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev; in nouveau_led_set_brightness()
58 struct nvif_object *device = &drm->client.device.object; in nouveau_led_set_brightness()
61 u32 freq = 100; /* this is what nvidia uses and it should be good-enough */ in nouveau_led_set_brightness()
68 * - A: nvidia never puts the logo led to any other PWM controler in nouveau_led_set_brightness()
70 * - B: nouveau does not touch these registers anywhere else in nouveau_led_set_brightness()
[all …]
Dnouveau_led.h4 * Permission is hereby granted, free of charge, to any person obtaining a
35 struct led_classdev led; member
41 return nouveau_drm(dev)->led; in nouveau_led()
/Linux-v5.10/drivers/leds/
Dleds-hp6xx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Triggers Core
7 * this driver is based on leds-spitz.c by Richard Purdie.
43 .default_trigger = "hp6xx-charge",
50 .default_trigger = "disk-activity",
59 ret = devm_led_classdev_register(&pdev->dev, &hp6xx_red_led); in hp6xxled_probe()
63 return devm_led_classdev_register(&pdev->dev, &hp6xx_green_led); in hp6xxled_probe()
69 .name = "hp6xx-led",
76 MODULE_DESCRIPTION("HP Jornada 6xx LED driver");
78 MODULE_ALIAS("platform:hp6xx-led");
Dleds-sgm3140.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/led-class-flash.h>
10 #include <media/v4l2-flash-led-class.h>
43 if (priv->enabled == state) in sgm3140_strobe_set()
47 ret = regulator_enable(priv->vin_regulator); in sgm3140_strobe_set()
49 dev_err(fled_cdev->led_cdev.dev, in sgm3140_strobe_set()
53 gpiod_set_value_cansleep(priv->flash_gpio, 1); in sgm3140_strobe_set()
54 gpiod_set_value_cansleep(priv->enable_gpio, 1); in sgm3140_strobe_set()
55 mod_timer(&priv->powerdown_timer, in sgm3140_strobe_set()
56 jiffies + usecs_to_jiffies(priv->timeout)); in sgm3140_strobe_set()
[all …]
Dleds-lp5521.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LP5521 LED chip driver.
18 #include <linux/platform_data/leds-lp55xx.h>
22 #include "leds-lp55xx-common.h"
44 /* Base register to set LED current */
61 #define LP5521_CP_MODE_OFF 0 /* Charge pump (CP) off */
114 static void lp5521_set_led_current(struct lp55xx_led *led, u8 led_current) in lp5521_set_led_current() argument
116 led->led_current = led_current; in lp5521_set_led_current()
117 lp55xx_write(led->chip, LP5521_REG_LED_CURRENT_BASE + led->chan_nr, in lp5521_set_led_current()
123 enum lp55xx_engine_index idx = chip->engine_idx; in lp5521_load_engine()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
10 bool "LED Support"
12 Say Y to enable Linux LED support. This allows control of supported
18 tristate "LED Class Support"
20 This option enables the LED sysfs class in /sys/class/leds. You'll
24 tristate "LED Flash Class Support"
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
30 for the flash related features of a LED device. It can be built
34 tristate "LED Multicolor Class Support"
[all …]
/Linux-v5.10/arch/arm/mach-pxa/
Dpcm990_baseboard.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * arch/arm/mach-pxa/include/mach/pcm990_baseboard.h
13 * definitions relevant only when the PCM-990
17 /* CPLD's interrupt controller is connected to PCM-027 GPIO 9 */
21 #define PCM990_CTRL_PHYS PXA_CS1_PHYS /* 16-Bit */
39 #define PCM990_CTRL_REG2 0x0004 /* LED REGISTER */
40 #define PCM990_CTRL_LEDPWR 0x0001 /* POWER LED enable */
41 #define PCM990_CTRL_LEDBAS 0x0002 /* BASIS LED enable */
42 #define PCM990_CTRL_LEDUSR 0x0004 /* USER LED enable */
55 #define PCM990_CTRL_MMC2LED 0x0002 /* RW MMC2 LED */
[all …]
/Linux-v5.10/Documentation/leds/
Dleds-class.rst2 LED handling under Linux
5 In its simplest form, the LED class just allows control of LEDs from
7 LED is defined in max_brightness file. The brightness file will set the brightness
8 of the LED (taking a value 0-max_brightness). Most LEDs don't have hardware
9 brightness support so will just be turned on for non-zero brightness settings.
11 The class also introduces the optional concept of an LED trigger. A trigger
12 is a kernel based source of led events. Triggers can either be simple or
14 existing subsystems with minimal additional code. Examples are the disk-activity,
15 nand-disk and sharpsl-charge triggers. With led triggers disabled, the code
18 Complex triggers while available to all LEDs have LED specific
[all …]
/Linux-v5.10/Documentation/power/
Dpower_supply_class.rst8 properties to user-space.
24 It also integrates with LED framework, for the purpose of providing
28 user and/or specific machine defaults, per design principles of LED
60 +--------------------------------------------------------------------------+
61 | **Charge/Energy/Capacity - how to not confuse** |
62 +--------------------------------------------------------------------------+
63 | **Because both "charge" (µAh) and "energy" (µWh) represents "capacity" |
66 | - `CHARGE_*` |
68 | - `ENERGY_*` |
70 | - `CAPACITY` |
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Dmvebu-linkstation-gpio-simple.dtsi2 * Device Tree common file for gpio-{keys,leds} on Buffalo Linkstation
7 * This file is dual-licensed: you can use it either under the terms
24 * b) Permission is hereby granted, free of charge, to any person
46 #include <dt-bindings/input/input.h>
50 compatible = "gpio-keys";
51 #address-cells = <1>;
52 #size-cells = <0>;
53 pinctrl-0 = <&pmx_power_switch>;
54 pinctrl-names = "default";
56 power-on-switch {
[all …]
Dorion5x-linkstation-lswtgl.dts2 * Device Tree file for Buffalo Linkstation LS-WTGL
7 * This file is dual-licensed: you can use it either under the terms
24 * b) Permission is hereby granted, free of charge, to any person
46 /dts-v1/;
48 #include "orion5x-linkstation.dtsi"
49 #include "mvebu-linkstation-gpio-simple.dtsi"
50 #include "mvebu-linkstation-fan.dtsi"
51 #include <dt-bindings/gpio/gpio.h>
54 model = "Buffalo Linkstation LS-WTGL";
55 compatible = "buffalo,lswtgl", "marvell,orion5x-88f5182", "marvell,orion5x";
[all …]
Dstm32746g-eval.dts2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
21 * b) Permission is hereby granted, free of charge, to any person
43 /dts-v1/;
45 #include "stm32f746-pinctrl.dtsi"
46 #include <dt-bindings/input/input.h>
47 #include <dt-bindings/interrupt-controller/irq.h>
50 model = "STMicroelectronics STM32746g-EVAL board";
51 compatible = "st,stm32746g-eval", "st,stm32f746";
55 stdout-path = "serial0:115200n8";
[all …]
Dorion5x-linkstation-lschl.dts2 * Device Tree file for Buffalo Linkstation LS-CHLv3
5 * Copyright (C) 2015-2017
8 * This file is dual-licensed: you can use it either under the terms
25 * b) Permission is hereby granted, free of charge, to any person
47 /dts-v1/;
49 #include "orion5x-linkstation.dtsi"
50 #include "mvebu-linkstation-gpio-simple.dtsi"
51 #include "mvebu-linkstation-fan.dtsi"
52 #include <dt-bindings/gpio/gpio.h>
55 model = "Buffalo Linkstation LiveV3 (LS-CHL)";
[all …]
Dstm32f469-disco.dts2 * Copyright 2016 - Lee Jones <lee.jones@linaro.org>
4 * This file is dual-licensed: you can use it either under the terms
22 * MA 02110-1301 USA
26 * b) Permission is hereby granted, free of charge, to any person
48 /dts-v1/;
50 #include "stm32f469-pinctrl.dtsi"
51 #include <dt-bindings/gpio/gpio.h>
52 #include <dt-bindings/input/input.h>
55 model = "STMicroelectronics STM32F469i-DISCO board";
56 compatible = "st,stm32f469i-disco", "st,stm32f469";
[all …]
Darm-realview-eb.dtsi4 * Permission is hereby granted, free of charge, to any person obtaining a copy
23 #include <dt-bindings/interrupt-controller/irq.h>
24 #include <dt-bindings/gpio/gpio.h>
27 #address-cells = <1>;
28 #size-cells = <1>;
29 compatible = "arm,realview-eb";
49 compatible = "regulator-fixed";
50 regulator-name = "vmmc";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
[all …]
/Linux-v5.10/drivers/mfd/
Dtps65010.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * tps65010 - driver for tps6501x power management chips
6 * Copyright (C) 2004-2005 David Brownell
27 /*-------------------------------------------------------------------------*/
37 /*-------------------------------------------------------------------------*/
47 * battery-insert != device-on.
84 /*-------------------------------------------------------------------------*/
184 struct tps65010 *tps = s->private; in dbg_show()
190 switch (tps->model) { in dbg_show()
200 mutex_lock(&tps->lock); in dbg_show()
[all …]
/Linux-v5.10/include/linux/mfd/wm831x/
Dpdata.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * include/linux/mfd/wm831x/pdata.h -- Platform data for WM831x
32 int trickle_ilim; /** Trickle charge current limit, in mA */
34 int eoc_iterm; /** End of trickle charge current, in mA */
35 int fast_ilim; /** Fast charge current limit, in mA */
36 int timeout; /** Charge cycle timeout, in minutes */
40 * Configuration for the WM831x DC-DC BuckWise convertors. This
55 /* Sources for status LED configuration. Values are register values

12345