/openbmc/linux/sound/usb/caiaq/ |
H A D | control.c | 1 // 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/u-boot/drivers/led/ |
H A D | Kconfig | 1 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/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-mt6360.yaml | 1 # 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 D | qcom,spmi-flash-led.yaml | 1 # 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 17 ganging 2 channels together to supply maximum current up to 2 A. The current 24 - enum: [all …]
|
H A D | leds-lp55xx.yaml | 1 # 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 D | common.yaml | 1 # 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 …]
|
H A D | leds-lgm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-lgm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Intel Lightning Mountain (LGM) SoC LED Serial Shift Output (SSO) Controller driver 10 - Zhu, Yi Xin <Yixin.zhu@intel.com> 11 - Amireddy Mallikarjuna reddy <mallikarjunax.reddy@intel.com> 15 const: intel,lgm-ssoled 21 maxItems: 2 23 clock-names: [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-lm3692x.c | 1 // 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/ 37 #define LM3692X_LED2_EN BIT(2) 46 #define LM3692X_RAMP_RATE_500us BIT(2) 47 #define LM3692X_RAMP_RATE_1ms (BIT(1) | BIT(2)) 50 #define LM3692X_RAMP_RATE_8ms (BIT(2) | BIT(3)) 51 #define LM3692X_RAMP_RATE_16ms (BIT(1) | BIT(2) | BIT(3)) 63 #define LM3692X_PWM_HYSTER_1LSB BIT(2) 65 #define LM3692X_PWM_HYSTER_3LSB (BIT(3) | BIT(2)) [all …]
|
H A D | leds-cht-wcove.c | 1 // SPDX-License-Identifier: GPL-2.0 30 #define CHT_WC_LED1_SWCTL BIT(0) /* HW or SW control of charging led */ 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 */ 39 #define CHT_WC_LED_F_1_HZ (2 << 4) 45 #define CHT_WC_LED_EFF_BLINKING (2 << 1) 47 #define CHT_WC_LED_EFF_MASK GENMASK(2, 1) 49 #define CHT_WC_LED_COUNT 2 56 /* Mask + values for turning the LED on/off */ 109 struct cht_wc_led *led = container_of(cdev, struct cht_wc_led, cdev); in cht_wc_leds_brightness_set() local [all …]
|
H A D | leds-lm3533.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * leds-lm3533.c -- LM3533 LED driver 5 * Copyright (C) 2011-2012 Texas Instruments 20 #define LM3533_LVCTRLBANK_MIN 2 25 #define LM3533_ALS_CHANNEL_LV_MAX 2 59 static inline int lm3533_led_get_ctrlbank_id(struct lm3533_led *led) in lm3533_led_get_ctrlbank_id() argument 61 return led->id + 2; in lm3533_led_get_ctrlbank_id() 64 static inline u8 lm3533_led_get_lv_reg(struct lm3533_led *led, u8 base) in lm3533_led_get_lv_reg() argument 66 return base + led->id; in lm3533_led_get_lv_reg() 69 static inline u8 lm3533_led_get_pattern(struct lm3533_led *led) in lm3533_led_get_pattern() argument [all …]
|
H A D | leds-mt6323.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * LED driver for Mediatek MT6323 PMIC 18 * 32K clock common for LED device. 30 * individual clock for LED device. 60 /* Register to LED channel enablement. */ 69 * struct mt6323_led - state container for the LED device 70 * @id: the identifier in MT6323 LED device 71 * @parent: the pointer to MT6323 LED controller 72 * @cdev: LED class device for this LED device 73 * @current_brightness: current state of the LED device [all …]
|
H A D | leds-turris-omnia.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/led-class-multicolor.h> 46 u8 buf[2] = { cmd, val }; in omnia_cmd_write_u8() 53 struct i2c_msg msgs[2]; in omnia_cmd_read_u8() 57 msgs[0].addr = client->addr; in omnia_cmd_read_u8() 61 msgs[1].addr = client->addr; in omnia_cmd_read_u8() 66 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in omnia_cmd_read_u8() 72 return -EIO; in omnia_cmd_read_u8() 79 struct omnia_leds *leds = dev_get_drvdata(cdev->dev->parent); in omnia_led_brightness_set_blocking() 80 struct omnia_led *led = to_omnia_led(mc_cdev); in omnia_led_brightness_set_blocking() local [all …]
|
H A D | leds-mc13783.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Based on leds-da903x: 11 * Copyright (C) 2006-2008 Marvell International Ltd. 39 struct mc13xxx_led *led; member 55 struct mc13xxx_led *led = in mc13xxx_led_set() local 57 struct mc13xxx_leds *leds = led->leds; in mc13xxx_led_set() 60 switch (led->id) { in mc13xxx_led_set() 64 reg = 2; in mc13xxx_led_set() 65 shift = 9 + (led->id - MC13783_LED_MD) * 4; in mc13xxx_led_set() 76 off = led->id - MC13783_LED_R1; in mc13xxx_led_set() [all …]
|
H A D | leds-lm3532.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // TI LM3532 LED driver 3 // Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/ 16 #define LM3532_NAME "lm3532-led" 50 #define LM3532_CTRL_C_ENABLE BIT(2) 54 #define LM3532_PWM_ZONE_0_EN BIT(2) 64 #define LM3532_ZONE_MASK (BIT(2) | BIT(3) | BIT(4)) 66 #define LM3532_ZONE_1 BIT(2) 68 #define LM3532_ZONE_3 (BIT(2) | BIT(3)) 77 #define LM3532_ALS_OFFSET_mV 2 [all …]
|
/openbmc/linux/drivers/leds/flash/ |
H A D | leds-max77693.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED Flash class driver for the flash cell of max77693 mfd. 11 #include <linux/led-class-flash.h> 13 #include <linux/mfd/max77693-common.h> 14 #include <linux/mfd/max77693-private.h> 20 #include <media/v4l2-flash-led-class.h> 24 #define MODE_TORCH(a) (1 << (2 + (a))) 46 const char *label[2]; 47 u32 iout_torch_max[2]; 48 u32 iout_flash_max[2]; [all …]
|
/openbmc/linux/drivers/net/dsa/qca/ |
H A D | qca8k-leds.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Internal PHY 1 has port at index 2. in qca8k_phy_to_port() 13 * Internal PHY 2 has port at index 3. in qca8k_phy_to_port() 26 reg_info->reg = QCA8K_LED_CTRL_REG(led_num); in qca8k_get_enable_led_reg() 27 reg_info->shift = QCA8K_LED_PHY0123_CONTROL_RULE_SHIFT; in qca8k_get_enable_led_reg() 30 case 2: in qca8k_get_enable_led_reg() 33 reg_info->reg = QCA8K_LED_CTRL3_REG; in qca8k_get_enable_led_reg() 34 reg_info->shift = QCA8K_LED_PHY123_PATTERN_EN_SHIFT(port_num, led_num); in qca8k_get_enable_led_reg() 37 reg_info->reg = QCA8K_LED_CTRL_REG(led_num); in qca8k_get_enable_led_reg() 38 reg_info->shift = QCA8K_LED_PHY4_CONTROL_RULE_SHIFT; in qca8k_get_enable_led_reg() [all …]
|
/openbmc/docs/designs/ |
H A D | multihost-physical-led.md | 1 # 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 22 front edge of the board in a grid. The grid will be 2 × rows of 2 × LEDs to 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 [all …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-ibm-blueridge.dts | 1 // 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" 12 model = "Blueridge 2U"; 13 compatible = "ibm,blueridge-bmc", "aspeed,ast2600"; 35 stdout-path = &uart5; [all …]
|
H A D | aspeed-bmc-ibm-rainier.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/i2c/i2c.h> 8 #include <dt-bindings/leds/leds-pca955x.h> 11 model = "Rainier 2U"; 12 compatible = "ibm,rainier-bmc", "aspeed,ast2600"; 34 stdout-path = &uart5; 43 reserved-memory { [all …]
|
H A D | aspeed-bmc-ibm-fuji.dts | 1 // 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,fuji-bmc", "aspeed,ast2600"; 170 stdout-path = &uart5; 178 reserved-memory { [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-gt683r.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MSI GT683R led driver 14 #include "hid-ids.h" 26 GT683R_LED_AUDIO = 2, 34 GT683R_LED_FRONT = 2, 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() [all …]
|
H A D | hid-led.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Simple USB RGB LED driver 6 * Based on drivers/hid/hid-thingm.c and 16 #include "hid-ids.h" 32 /* R+2G+4B -> riso kagaku color index */ 34 [1] = 2, /* red */ 35 [2] = 1, /* green */ 43 #define RISO_KAGAKU_IX(r, g, b) riso_kagaku_tbl[((r)?1:0)+((g)?2:0)+((b)?4:0)] 65 #define DELCOM_BLUE_LED 2 117 mutex_lock(&ldev->lock); in hidled_send() [all …]
|
/openbmc/phosphor-led-manager/ |
H A D | README.md | 1 # phosphor-led-manager 3 This project manages LED groups on dbus. Sometimes many LEDs must be driven 13 ### Configuration: LED Priority 15 Each LED can have "Priority" as "Blink", "Off" or "On". If this property is 16 defined, it should be defined on each instance of the LED in the config. 18 When multiple LED groups are asserted and contain the same LED, "Priority" 19 determines the state of the LED. 21 For example, Group 1 says LED1 should be "Blink", and Group 2 says it should be 24 ## Configuration: LED Group Priority 26 Using LED Priority is fine for simple configurations, but when group state needs [all …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap3-echo.dts | 1 // 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/drivers/leds/rgb/ |
H A D | leds-mt6370-rgb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/led-class-multicolor.h> 110 #define MT6370_CHEN_BIT(id) BIT(MT6370_LED_ISNK4 - id) 113 #define MT6370_PWM_DUTY (BIT(5) - 1) 114 #define MT6372_PWM_DUTY (BIT(8) - 1) 118 * If the color of the LED in DT is set to 119 * - 'LED_COLOR_ID_RGB' 120 * - 'LED_COLOR_ID_MULTI' 123 * If so, this LED will choose 'struct led_classdev_mc mc' to use. 125 * 'MT6370_LED_ISNK1' ~ 'MT6370_LED_ISNK4', then this LED will choose [all …]
|