Home
last modified time | relevance | path

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

12345678910>>...43

/openbmc/linux/sound/usb/caiaq/
H A Dcontrol.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info()
25 int pos = kcontrol->private_value; in control_info()
29 uinfo->count = 1; in control_info()
32 switch (cdev->chip.usb_id) { in control_info()
37 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info()
38 uinfo->value.integer.min = 0; in control_info()
39 uinfo->value.integer.max = 2; in control_info()
54 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info()
55 uinfo->value.integer.min = 0; in control_info()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/leds/
H A Dleds-mt6360.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-mt6360.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: LED driver for MT6360 PMIC from MediaTek Integrated.
10 - Gene Chen <gene_chen@richtek.com>
15 Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode,
16 and 4-channel RGB LED support Register/Flash/Breath Mode
20 const: mediatek,mt6360-led
22 "#address-cells":
[all …]
H A Dleds-lp55xx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-lp55xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TI/National Semiconductor LP55xx and LP8501 LED Drivers
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
15 LED Drivers.
27 - national,lp5521
28 - national,lp5523
[all …]
H A Dqcom,spmi-flash-led.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/qcom,spmi-flash-led.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Flash LED device inside Qualcomm Technologies, Inc. PMICs
10 - Fenglin Wu <quic_fenglinw@quicinc.com>
13 Flash LED controller is present inside some Qualcomm Technologies, Inc. PMICs.
14 The flash LED module can have different number of LED channels supported
24 - enum:
25 - qcom,pm6150l-flash-led
[all …]
H A Dcommon.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
14 LED and flash LED devices provide the same basic functionality as current
15 regulators, but extended with LED and flash LED specific features like
18 Many LED devices expose more than one current output that can be connected
19 to one or more discrete LED component. Since the arrangement of connections
20 can influence the way of the LED device initialization, the LED components
[all …]
/openbmc/linux/drivers/leds/
H A Dleds-lm3692x.c1 // SPDX-License-Identifier: GPL-2.0
2 // TI LM3692x LED chip family driver
3 // Copyright (C) 2017-18 Texas Instruments Incorporated - https://www.ti.com/
18 #define LM36923_MODEL 1
36 #define LM3692X_LED1_EN BIT(1)
45 #define LM3692X_RAMP_RATE_250us BIT(1)
47 #define LM3692X_RAMP_RATE_1ms (BIT(1) | BIT(2))
49 #define LM3692X_RAMP_RATE_4ms (BIT(3) | BIT(1))
51 #define LM3692X_RAMP_RATE_16ms (BIT(1) | BIT(2) | BIT(3))
61 #define LM3692X_PWM_FILTER_150 BIT(1)
[all …]
H A Dleds-bd2802.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * leds-bd2802.c - RGB LED Driver
8 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf
16 #include <linux/leds-bd2802.h>
58 * State '1' : 'blink'
73 struct led_state led[2]; member
104 /*--------------------------------------------------------------*/
106 /*--------------------------------------------------------------*/
108 static inline int bd2802_is_rgb_off(struct bd2802_led *led, enum led_ids id, in bd2802_is_rgb_off() argument
113 return !led->led[id].r; in bd2802_is_rgb_off()
[all …]
H A Dleds-cht-wcove.c1 // SPDX-License-Identifier: GPL-2.0
30 #define CHT_WC_LED1_SWCTL BIT(0) /* HW or SW control of charging led */
31 #define CHT_WC_LED1_ON BIT(1)
34 #define CHT_WC_LED_I_MA2_5 (2 << 2) /* LED current limit */
35 #define CHT_WC_LED_I_MASK GENMASK(3, 2) /* LED current limit mask */
38 #define CHT_WC_LED_F_1_2_HZ (1 << 4)
43 #define CHT_WC_LED_EFF_OFF (0 << 1)
44 #define CHT_WC_LED_EFF_ON (1 << 1)
45 #define CHT_WC_LED_EFF_BLINKING (2 << 1)
46 #define CHT_WC_LED_EFF_BREATHING (3 << 1)
[all …]
H A Dleds-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * leds-regulator.c - LED class driver for regulator driven LEDs.
7 * Inspired by leds-wm8350 driver.
15 #include <linux/leds-regulator.h>
36 return 1; in led_regulator_get_max_brightness()
40 * and the LED can be turned on and off. in led_regulator_get_max_brightness()
44 return 1; in led_regulator_get_max_brightness()
53 return -EINVAL; in led_regulator_get_voltage()
55 return regulator_list_voltage(supply, brightness - 1); in led_regulator_get_voltage()
59 static void regulator_led_enable(struct regulator_led *led) in regulator_led_enable() argument
[all …]
H A Dleds-bcm6328.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for BCM6328 memory-mapped LEDs, based on leds-syscon.c
53 #define BCM6328_LED_MODE_BLINK1 1
56 #define BCM6328_LED_SHIFT(X) ((X) << 1)
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
[all …]
H A Dleds-mt6323.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * LED driver for Mediatek MT6323 PMIC
18 * 32K clock common for LED device.
23 /* 32K/1M/6M clock common for WLED device */
30 * individual clock for LED device.
55 #define ISINK_SFSTR0_TC_MASK (0x3 << 1)
56 #define ISINK_SFSTR0_TC(i) (((i) << 1) & ISINK_SFSTR0_TC_MASK)
60 /* Register to LED channel enablement. */
69 * struct mt6323_led - state container for the LED device
70 * @id: the identifier in MT6323 LED device
[all …]
/openbmc/linux/drivers/leds/flash/
H A Dleds-aat1290.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Flash class driver for the AAT1290
4 * 1.5A Step-Up Current Regulator for Flash LEDs
12 #include <linux/led-class-flash.h>
20 #include <media/v4l2-flash-led-class.h>
24 #define AAT1290_MAX_MM_CURR_PERCENT_100 1
29 #define AAT1290_MOVIE_MODE_OFF 1
33 #define AAT1290_MM_TO_FL_1_92 1
40 #define AAT1290_EN_SET_TICK_TIME_US 1
49 /* maximum LED current in movie mode */
[all …]
H A Dleds-ktd2692.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver : leds-ktd2692.c
12 #include <linux/led-class-flash.h>
64 /* maximum LED current in movie mode */
66 /* maximum LED current in flash mode */
70 /* max LED brightness level */
75 /* Related LED Flash class device */
95 static void ktd2692_expresswire_start(struct ktd2692_context *led) in ktd2692_expresswire_start() argument
97 gpiod_direction_output(led->ctrl_gpio, KTD2692_HIGH); in ktd2692_expresswire_start()
101 static void ktd2692_expresswire_reset(struct ktd2692_context *led) in ktd2692_expresswire_reset() argument
[all …]
H A Dleds-qcom-flash.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/led-class-flash.h>
14 #include <media/v4l2-flash-led-class.h>
26 #define FLASH_STS_3CH_OTST2 BIT(1)
35 #define FLASH_STS_4CH_BCL_IBAT BIT(1)
48 #define HW_STROBE_VAL 1
49 #define FLASH_HW_STROBE_TRIGGER_SEL_BIT BIT(1)
51 #define STROBE_EDGE_TRIGGER_VAL 1
53 #define STROBE_ACTIVE_HIGH_VAL 1
56 #define FLASH_IRES_MASK_3CH GENMASK(1, 0)
[all …]
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-nvme/
H A Dnvme_json_rewrite.sh6 if [ ! -d "/sys/class/gpio/gpio$1" ]; then
7 echo "$1" >/sys/class/gpio/export
12 # 1-0024
15 # 1-0021
17 if [ -d "/sys/bus/i2c/drivers/pca953x/1-0024" ]; then
18 presentPinBase="$(cat /sys/bus/i2c/drivers/pca953x/1-0024/gpio/gpiochip*/base)"
27 if [ -d "/sys/bus/i2c/drivers/pca953x/1-0021" ]; then
28 PwrGoodPinBase="$(cat /sys/bus/i2c/drivers/pca953x/1-0021/gpio/gpiochip*/base)"
43 "NVMeDriveFaultLEDGroupPath": "/xyz/openbmc_project/led/groups/led_u2_0_fault",
44 "NVMeDriveLocateLEDGroupPath": "/xyz/openbmc_project/led/groups/led_u2_0_locate",
[all …]
/openbmc/u-boot/drivers/led/
H A DKconfig1 menu "LED Support"
3 config LED config
4 bool "Enable LED support"
8 U-Boot provides a uclass API to implement this feature. LED drivers
9 can provide access to board-specific LEDs. Use of the device tree
13 bool "LED Support for BCM6328"
14 depends on LED && ARCH_BMIPS
17 LED HW controller accessed via MMIO registers.
20 means that if one LED is set to blink at 100ms and then a different
21 LED is set to blink at 200ms, both will blink at 200ms.
[all …]
/openbmc/docs/architecture/
H A DLED-architecture.md1 # LED Support for OpenBMC
3 This document describes how to add LED support for your machine based upon the
4 OpenBMC [LED Architecture][led d-bus readme] document. LED group management is
8 ## D-Bus
11 Service xyx.openbmc_project.LED.GroupManager
12 Path /xyz/openbmc_project/led/groups/<label>
13 Interfaces xyz.openbmc_project.Led.Group
22 PUT /xyz/openbmc_project/led/groups/<group>/attr/Asserted
25 The LED group state can be changed by setting the Asserted value to boolean 0
26 or 1. In the following example, the lamp_test group is being asserted...
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dleds.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 LED control
7 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
9 Copyright (c) 2005-2007 Michael Buesch <m@bues.ch>
28 ctl &= ~(1 << led_index); in b43_led_turn_on()
30 ctl |= (1 << led_index); in b43_led_turn_on()
41 ctl |= (1 << led_index); in b43_led_turn_off()
43 ctl &= ~(1 << led_index); in b43_led_turn_off()
48 struct b43_led *led) in b43_led_update() argument
53 if (!led->wl) in b43_led_update()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-led-trigger-netdev1 What: /sys/class/leds/<led>/device_name
4 Contact: linux-leds@vger.kernel.org
8 What: /sys/class/leds/<led>/interval
11 Contact: linux-leds@vger.kernel.org
13 Specifies the duration of the LED blink in milliseconds.
21 What: /sys/class/leds/<led>/link
24 Contact: linux-leds@vger.kernel.org
28 If set to 0 (default), the LED's normal state is off.
30 If set to 1, the LED's normal state reflects the link state
32 Setting this value also immediately changes the LED state.
[all …]
/openbmc/linux/arch/arm/boot/dts/ti/omap/
H A Domap3-echo.dts1 // SPDX-License-Identifier: GPL-2.0-only
5 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
14 compatible = "amazon,omap3-echo", "ti,omap3630", "ti,omap3";
18 cpu0-supply = <&vdd1_reg>;
28 compatible = "regulator-fixed";
29 regulator-name = "vcc5v";
30 regulator-min-microvolt = <5000000>;
31 regulator-max-microvolt = <5000000>;
[all …]
/openbmc/linux/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-ibm-blueridge.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 /dts-v1/;
5 #include <dt-bindings/gpio/aspeed-gpio.h>
6 #include <dt-bindings/i2c/i2c.h>
7 #include <dt-bindings/leds/leds-pca955x.h>
8 #include "aspeed-g6.dtsi"
9 #include "ibm-power11-quad.dtsi"
13 compatible = "ibm,blueridge-bmc", "aspeed,ast2600";
35 stdout-path = &uart5;
43 reserved-memory {
[all …]
/openbmc/linux/arch/mips/boot/dts/mti/
H A Dsead3.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/mips-gic.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
13 compatible = "mti,sead-3";
14 model = "MIPS SEAD-3";
17 stdout-path = "serial1:115200";
36 cpu_intc: interrupt-controller {
37 compatible = "mti,cpu-interrupt-controller";
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-gt683r.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MSI GT683R led driver
14 #include "hid-ids.h"
33 GT683R_LED_SIDE = 1,
63 struct device *dev = led_cdev->dev->parent; in gt683r_brightness_set()
65 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_brightness_set() local
68 if (led_cdev == &led->led_devs[i]) in gt683r_brightness_set()
73 led->brightnesses[i] = brightness; in gt683r_brightness_set()
74 schedule_work(&led->work); in gt683r_brightness_set()
83 struct hid_device *hdev = to_hid_device(dev->parent); in mode_show()
[all …]
H A Dhid-picolcd_leds.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> *
11 #include <linux/hid-debug.h>
13 #include "hid-ids.h"
29 #include "hid-picolcd.h"
37 if (!data->led[0]) in picolcd_leds_set()
39 report = picolcd_out_report(REPORT_LED_STATE, data->hdev); in picolcd_leds_set()
40 if (!report || report->maxfield != 1 || report->field[0]->report_count != 1) in picolcd_leds_set()
43 spin_lock_irqsave(&data->lock, flags); in picolcd_leds_set()
44 hid_set_field(report->field[0], 0, data->led_state); in picolcd_leds_set()
[all …]
/openbmc/docs/designs/
H A Dmultihost-physical-led.md1 # Physical LED Design Support
4 (Jayashree), [jayashree-d@hcl](mailto:jayashree-d@hcl.com)
12 The existing phosphor-led-sysfs design exposes one service per LED configuration
20 For example, Power LED and System Identification LED combines into a single
21 bicolor blue-yellow LED per host. A total of 4 × LEDs will be placed along the
25 Depending on the status of each host, blue or yellow LED needs to be Blink, OFF
26 or ON and other LEDs needs to be in OFF state. Therefore, bi-color LED needs to
29 Based on the current design in phosphor-led-sysfs application, pairing groups
30 will be difficult, since it exposes one service per LED. To abstract this method
35 The below diagram represents the overview for current physical LED design.
[all …]

12345678910>>...43