/openbmc/linux/Documentation/devicetree/bindings/leds/ |
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 | register-bit-led.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/register-bit-led.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 14 bits in a certain register can turn on/off a single LED. The register bit LEDs 20 - $ref: /schemas/leds/common.yaml# 25 The unit-address is in the form of @<reg addr>,<bit offset> 26 pattern: '^led@[0-9a-f]+,[0-9a-f]{1,2}$' 29 const: register-bit-led [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/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/linux/drivers/hid/ |
H A D | hid-picolcd_leds.c | 1 // 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/linux/Documentation/firmware-guide/acpi/dsd/ |
H A D | leds.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 device node, the LED driver chip. The "reg" property in the LED specific nodes 10 tells the numerical ID of each individual LED output to which the LEDs are 11 connected. [leds] The hierarchical data nodes are named "led@X", where X is the 12 number of the LED output. 14 Referring to LEDs in Device tree is documented in [video-interfaces], in 15 "flash-leds" property documentation. In short, LEDs are directly referred to by 20 the same mechanism on ACPI is not possible. A mechanism to refer to non-device 21 ACPI nodes is documented in [data-node-ref]. 24 combination of the LED driver device reference and an integer argument, [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-lp8860.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI LP8860 4-Channel LED Driver 90 * @led_dev: led class device pointer 94 * @regulator: LED supply regulator pointer 139 static int lp8860_unlock_eeprom(struct lp8860_led *led, int lock) in lp8860_unlock_eeprom() argument 143 mutex_lock(&led->lock); in lp8860_unlock_eeprom() 146 ret = regmap_write(led->regmap, in lp8860_unlock_eeprom() 150 dev_err(&led->client->dev, "EEPROM Unlock failed\n"); in lp8860_unlock_eeprom() 154 ret = regmap_write(led->regmap, in lp8860_unlock_eeprom() 158 dev_err(&led->client->dev, "EEPROM Unlock failed\n"); in lp8860_unlock_eeprom() [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 104 if (pin < 8) in bcm6328_pin2shift() [all …]
|
H A D | leds-lp50xx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // TI LP50XX LED chip family driver 3 // Copyright (C) 2018-20 Texas Instruments Incorporated - https://www.ti.com/ 17 #include <linux/led-class-multicolor.h> 56 /* There are 3 LED outputs per bank */ 62 #define LP5024_MAX_LED_MODULES 8 134 .reg_bits = 8, 135 .val_bits = 8, 144 .reg_bits = 8, 145 .val_bits = 8, [all …]
|
H A D | leds-tlc591xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 /* LED Driver Output State, determine the source that drives LED outputs */ 35 #define LEDOUT_ON 0x1 /* Output HI-Z */ 66 .max_leds = 8, 86 tlc591xx_set_ledout(struct tlc591xx_priv *priv, struct tlc591xx_led *led, in tlc591xx_set_ledout() argument 89 unsigned int i = (led->led_no % 4) * 2; in tlc591xx_set_ledout() 91 unsigned int addr = priv->reg_ledout_offset + (led->led_no >> 2); in tlc591xx_set_ledout() 95 return regmap_update_bits(priv->regmap, addr, mask, val); in tlc591xx_set_ledout() 99 tlc591xx_set_pwm(struct tlc591xx_priv *priv, struct tlc591xx_led *led, in tlc591xx_set_pwm() argument 102 u8 pwm = TLC591XX_REG_PWM(led->led_no); in tlc591xx_set_pwm() [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" 86 #define LM3532_BRT_VAL_ADJUST 8 89 #define LM3532_NUM_RAMP_VALS 8 90 #define LM3532_NUM_AVG_VALS 8 123 * @led_dev: led class device 125 * @control_bank: Control bank the LED is associated to 126 * @mode: Mode of the LED string [all …]
|
/openbmc/openbmc/meta-facebook/meta-ventura/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | ventura-phosphor-multi-gpio-monitor.json | 8 "FALLING": ["leak-detect-assert@SmallComputeTray1.service"], 9 "RISING": ["leak-detect-deassert@SmallComputeTray1.service"] 19 "FALLING": ["leak-detect-assert@SmallComputeTray2.service"], 20 "RISING": ["leak-detect-deassert@SmallComputeTray2.service"] 30 "FALLING": ["leak-detect-assert@SmallComputeTray3.service"], 31 "RISING": ["leak-detect-deassert@SmallComputeTray3.service"] 41 "FALLING": ["leak-detect-assert@SmallComputeTray4.service"], 42 "RISING": ["leak-detect-deassert@SmallComputeTray4.service"] 52 "FALLING": ["leak-detect-assert@SmallComputeTray5.service"], 53 "RISING": ["leak-detect-deassert@SmallComputeTray5.service"] [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | ste-href.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2012 ST-Ericsson AB 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/leds/common.h> 8 #include "ste-href-family-pinctrl.dtsi" 17 compatible = "simple-battery"; 18 battery-type = "lithium-ion-polymer"; 21 thermal-zones { 22 battery-thermal { 24 polling-delay = <0>; [all …]
|
H A D | stm32mp157c-lxa-tac-gen2.dts | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) 3 * Copyright (C) 2020 STMicroelectronics - All Rights Reserved 8 /dts-v1/; 11 #include "stm32mp15xc-lxa-tac.dtsi" 15 compatible = "lxa,stm32mp157c-tac-gen2", "oct,stm32mp15xx-osd32", "st,stm32mp157"; 18 compatible = "pwm-backlight"; 19 power-supply = <&v3v3>; 21 brightness-levels = <0 31 63 95 127 159 191 223 255>; 22 default-brightness-level = <7>; 26 reg_iobus_12v: regulator-iobus-12v { [all …]
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm958625-meraki-kingpin.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 5 * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com> 8 #include "bcm958625-meraki-mx6x-common.dtsi" 13 compatible = "gpio-keys-polled"; 15 poll-interval = <20>; 17 button-reset { 25 compatible = "gpio-leds"; 27 led-0 { 28 /* green:lan1-left */ 30 function-enumerator = <0>; [all …]
|
H A D | bcm47094-linksys-panamera.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 9 #include "bcm5301x-nand-cs0-bch8.dtsi" 30 gpio-keys { 31 compatible = "gpio-keys"; 33 button-wps { 39 button-rfkill { 45 button-reset { 53 compatible = "gpio-leds"; 55 led-wps { [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | au8522_common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Auvitek AU8522 QAM/8VSB demodulator driver 7 Copyright (C) 2005-2008 Auvitek International, Ltd. 29 /* 16 bit registers, 8 bit values */ 33 u8 buf[] = { (reg >> 8) | 0x80, reg & 0xff, data }; in au8522_writereg() 35 struct i2c_msg msg = { .addr = state->config.demod_address, in au8522_writereg() 38 ret = i2c_transfer(state->i2c, &msg, 1); in au8522_writereg() 44 return (ret != 1) ? -1 : 0; in au8522_writereg() 51 u8 b0[] = { (reg >> 8) | 0x40, reg & 0xff }; in au8522_readreg() 55 { .addr = state->config.demod_address, .flags = 0, in au8522_readreg() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/linux-atm/linux-atm/ |
H A D | 0001-include-string-h-from-memcpy-and-strcpy-function-pro.patch | 3 Date: Mon, 29 Aug 2022 16:36:21 -0700 6 Upstream-Status: Pending 7 Signed-off-by: Khem Raj <raj.khem@gmail.com> 8 --- 9 src/led/address.c | 1 + 10 src/led/display.c | 1 + 17 diff --git a/src/led/address.c b/src/led/address.c 19 --- a/src/led/address.c 20 +++ b/src/led/address.c 21 @@ -31,6 +31,7 @@ [all …]
|
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-nvme/ |
H A D | nvme_json_rewrite.sh | 6 if [ ! -d "/sys/class/gpio/gpio$1" ]; then 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", 45 … "NVMeDriveLocateLEDControllerBusName": "xyz.openbmc_project.LED.Controller.led_u2_0_locate", [all …]
|
/openbmc/linux/arch/arm64/boot/dts/arm/ |
H A D | juno-motherboard.dtsi | 4 * Copyright (c) 2013-2014 ARM Ltd 12 compatible = "fixed-clock"; 13 #clock-cells = <0>; 14 clock-frequency = <24000000>; 15 clock-output-names = "juno_mb:clk24mhz"; 19 compatible = "fixed-clock"; 20 #clock-cells = <0>; 21 clock-frequency = <25000000>; 22 clock-output-names = "juno_mb:clk25mhz"; 26 compatible = "fixed-clock"; [all …]
|
/openbmc/linux/drivers/hid/usbhid/ |
H A D | usbkbd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 1999-2001 Vojtech Pavlik 11 * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: 12 * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic 38 4, 5, 6, 7, 8, 9, 10, 11, 28, 1, 14, 15, 57, 12, 13, 26, 56 * struct usb_kbd - state of each attached keyboard 64 * @led: URB for sending LEDs (e.g. numlock, ...) 65 * @newleds: data that will be sent with the @led URB representing which LEDs 71 * @cr: Control request for @led URB 72 * @leds: Buffer for the @led URB [all …]
|
/openbmc/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 …]
|
/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" 13 compatible = "ibm,blueridge-bmc", "aspeed,ast2600"; 35 stdout-path = &uart5; 43 reserved-memory { [all …]
|
/openbmc/linux/arch/arm/mach-footbridge/ |
H A D | netwinder-hw.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * linux/arch/arm/mach-footbridge/netwinder-hw.c 20 #include <asm/mach-types.h> 55 outb(val >> 8, 0x371); in wb977_ww() 85 outb(new_gpio >> 8, GP2_IO_BASE); in nw_gpio_modify_op() 110 wb977_device_select(8); in __gpio_modify_io() 134 return inb(GP1_IO_BASE) | inb(GP2_IO_BASE) << 8; in nw_gpio_read() 208 * KBC 8MHz in wb977_init_keyboard() 219 * Initialise the Winbond W83977F Infra-Red device 237 * RX DMA - ISA DMA 0 in wb977_init_irda() [all …]
|
/openbmc/qemu/hw/display/ |
H A D | dm163.c | 2 * QEMU DM163 8x3-channel constant current led driver 3 * driving columns of associated 8x8 RGB matrix. 6 * Copyright (C) 2024 Arnaud Minier <arnaud.minier@telecom-paris.fr> 7 * Copyright (C) 2024 Inès Varhol <ines.varhol@telecom-paris.fr> 9 * SPDX-License-Identifier: GPL-2.0-or-later 14 * http://www.siti.com.tw/product/spec/LED/DM163.pdf 21 #include "hw/qdev-properties.h" 29 #define TURNED_OFF_ROW (COLOR_BUFFER_SIZE - 1) 61 s->sin = 0; in dm163_reset_hold() 62 s->dck = 0; in dm163_reset_hold() [all …]
|