/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 …]
|
H A D | omap3-n900.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi> 7 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/media/video-interfaces.h> 15 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall 17 * blocks then kernel receive "Unhandled fault: external abort on non-linefetch" 18 * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no 34 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3"; [all …]
|
/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 …]
|
/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 …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-powernv.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * PowerNV LED Driver 20 /* Map LED type to description. */ 29 {-1, NULL}, 35 * platform we want to retain LED state across reboot as these 42 /* Max supported LED type */ 49 /* PowerNV LED data */ 52 char *loc_code; /* LED location code */ 59 /* Returns OPAL_SLOT_LED_TYPE_* for given led type string */ 68 return -1; in powernv_get_led_type() [all …]
|
H A D | leds-lp55xx-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Derived from leds-lp5521.c, leds-lp5523.c 18 #include <linux/platform_data/leds-lp55xx.h> 21 #include <dt-bindings/leds/leds-lp55xx.h> 23 #include "leds-lp55xx-common.h" 45 struct lp55xx_device_config *cfg = chip->cfg; in lp55xx_reset_device() 46 u8 addr = cfg->reset.addr; in lp55xx_reset_device() 47 u8 val = cfg->reset.val; in lp55xx_reset_device() 55 struct lp55xx_device_config *cfg = chip->cfg; in lp55xx_detect_device() 56 u8 addr = cfg->enable.addr; in lp55xx_detect_device() [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6dl-yapp4-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2015-2018 Y Soft Corporation, a.s. 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/pwm/pwm.h> 20 compatible = "pwm-backlight"; 22 brightness-levels = <0 32 64 128 255>; 23 default-brightness-level = <32>; [all …]
|
H A D | imx6dl-yapp43-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/pwm/pwm.h> 20 compatible = "pwm-backlight"; 22 brightness-levels = <0 32 64 128 255>; 23 default-brightness-level = <32>; 24 num-interpolated-steps = <8>; [all …]
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | rpaphp_core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * PCI Hot Plug Controller Driver for RPA-compliant PPC64 platform. 23 #include <asm/pci-bridge.h> /* for pci_controller */ 46 * set_attention_status - set attention LED 48 * @value: LED control value 50 * echo 0 > attention -- set LED OFF 51 * echo 1 > attention -- set LED ON 52 * echo 2 > attention -- set LED ID(identify, light is blinking) 69 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status() 71 slot->attention_status = value; in set_attention_status() [all …]
|
/openbmc/linux/drivers/scsi/sym53c8xx_2/ |
H A D | sym_fw.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * of PCI-SCSI IO processors. 6 * Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr> 9 * Copyright (C) 1998-2000 Gerard Roudier 12 * a port of the FreeBSD ncr driver to Linux-1.2.13. 16 * Stefan Esser <se@mi.Uni-Koeln.de> 24 *----------------------------------------------------------------------------- 100 scripta0 = (struct sym_fw1a_scr *) np->scripta0; in sym_fw1_patch() 101 scriptb0 = (struct sym_fw1b_scr *) np->scriptb0; in sym_fw1_patch() 104 * Remove LED support if not needed. in sym_fw1_patch() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8996-xiaomi-gemini.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 9 #include "msm8996-xiaomi-common.dtsi" 10 #include <dt-bindings/sound/qcom,q6afe.h> 11 #include <dt-bindings/sound/qcom,q6asm.h> 12 #include <dt-bindings/sound/qcom,wcd9335.h> 13 #include <dt-bindings/input/ti-drv260x.h> 18 chassis-type = "handset"; 19 qcom,msm-id = <246 0x30001>; 20 qcom,pmic-id = <0x20009 0x2000a 0x00 0x00>; [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | adp1653.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2008--2011 Nokia Corporation 15 * - fault interrupt handling 16 * - hardware strobe 17 * - power doesn't need to be ON if all lights are off 27 #include <media/v4l2-device.h> 31 #define TIMEOUT_MIN (TIMEOUT_MAX - ADP1653_REG_CONFIG_TMR_SET_MAX \ 33 #define TIMEOUT_US_TO_CODE(t) ((TIMEOUT_MAX + (TIMEOUT_STEP / 2) - (t)) \ 35 #define TIMEOUT_CODE_TO_US(c) (TIMEOUT_MAX - (c) * TIMEOUT_STEP) 40 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_update_hw() [all …]
|
H A D | lm3560.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * General device driver for TI lm3559, lm3560, FLASH LED Driver 9 * Ldd-Mlp <ldd-mlp@list.ti.com> 20 #include <media/v4l2-ctrls.h> 21 #include <media/v4l2-device.h> 49 * @led_mode: V4L2 LED mode 65 container_of(_ctrl->handler, struct lm3560_flash, ctrls_led[_no]) 70 int rval = -EINVAL; in lm3560_mode_ctrl() 72 switch (flash->led_mode) { in lm3560_mode_ctrl() 74 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() [all …]
|
/openbmc/linux/drivers/tty/vt/ |
H A D | keyboard.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * dynamic function/string keys, led setting, Sept 1994 15 * 11-11-96: SAK should now work in the raw mode (Martin Mares) 18 * Merge with the m68k keyboard driver and split-off of the PC low-level 21 * 27-05-97: Added support for the Magic SysRq Key (Martin Mares) 22 * 30-07-98: Dead keys redone, aeb@cwi.nl. 23 * 21-08-02: Converted to input API, major cleanup. (Vojtech Pavlik) 116 [ KT_FN ] = ARRAY_SIZE(func_table) - 1, 117 [ KT_SPEC ] = ARRAY_SIZE(fn_handler) - 1, 118 [ KT_PAD ] = NR_PAD - 1, [all …]
|
/openbmc/qemu/util/ |
H A D | keyval.c | 10 * See the COPYING file in the top-level directory. 16 * key-vals = [ key-val { ',' key-val } [ ',' ] ] 17 * key-val = key '=' val | help 18 * key = key-fragment { '.' key-fragment } 19 * key-fragment = qapi-name | index 20 * qapi-name = '__' / [a-z0-9.-]+ / '_' / [A-Za-z][A-Za-z0-9_-]* / 21 * index = / [0-9]+ / 27 * key-vals specifies a JSON object, i.e. a tree whose root is an 31 * Each key-val = key-fragment '.' ... '=' val specifies a path from 36 * L '.' key-fragment is a child of the node denoted by path L [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | wacom.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (c) 2000-2004 Vojtech Pavlik <vojtech@ucw.cz> 13 * Copyright (c) 2002-2011 Ping Cheng <pingc@wacom.com> 17 * v0.1 (vp) - Initial release 18 * v0.2 (aba) - Support for all buttons / combinations 19 * v0.3 (vp) - Support for Intuos added 20 * v0.4 (sm) - Support for more Intuos models, menustrip 22 * v0.5 (vp) - Big cleanup, nifty features removed, 24 * v1.8 (vp) - Submit URB only when operating, moved to CVS, 27 * v1.11 (vp) - Add URB ->dev setting for new kernels [all …]
|
H A D | wacom_sys.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * USB Wacom tablet support - system specific code 25 } while ((retval == -ETIMEDOUT || retval == -EAGAIN) && --retries); in wacom_get_report() 42 } while ((retval == -ETIMEDOUT || retval == -EAGAIN) && --retries); in wacom_set_report() 89 struct wacom_wac *wacom_wac = &wacom->wacom_wac; in wacom_wac_pen_serial_enforce() 90 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pen_serial_enforce() 95 if (wacom_wac->serial[0] || !(features->quirks & WACOM_QUIRK_TOOLSERIAL)) in wacom_wac_pen_serial_enforce() 99 for (i = 0; i < report->maxfield; i++) { in wacom_wac_pen_serial_enforce() 100 for (j = 0; j < report->field[i]->maxusage; j++) { in wacom_wac_pen_serial_enforce() 101 struct hid_field *field = report->field[i]; in wacom_wac_pen_serial_enforce() [all …]
|
H A D | wacom_wac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * USB Wacom tablet support - Wacom specific code 25 * 2^14/pi is a good approximation on Intuos5 and 3rd-gen Bamboo 43 struct input_dev *input = wacom_wac->pen_input; in wacom_force_proxout() 45 wacom_wac->shared->stylus_in_proximity = 0; in wacom_force_proxout() 51 input_report_key(input, wacom_wac->tool[0], 0); in wacom_force_proxout() 52 if (wacom_wac->serial[0]) { in wacom_force_proxout() 57 wacom_wac->tool[0] = 0; in wacom_force_proxout() 58 wacom_wac->id[0] = 0; in wacom_force_proxout() 59 wacom_wac->serial[0] = 0; in wacom_force_proxout() [all …]
|
/openbmc/linux/net/rfkill/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2006 - 2007 Ivo van Doorn 96 * rfkill method calls -- which will cause an AB-BA deadlock situation. 98 * To fix that, we need to rework this code here to be mostly lock-free 113 bool cur, sav; member 124 if (!rfkill->registered) in rfkill_led_trigger_event() 127 trigger = &rfkill->led_trigger; in rfkill_led_trigger_event() 129 if (rfkill->state & RFKILL_BLOCK_ANY) in rfkill_led_trigger_event() 135 static int rfkill_led_trigger_activate(struct led_classdev *led) in rfkill_led_trigger_activate() argument 139 rfkill = container_of(led->trigger, struct rfkill, led_trigger); in rfkill_led_trigger_activate() [all …]
|
/openbmc/linux/drivers/platform/x86/ |
H A D | eeepc-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * eeepc-laptop.c - Asus Eee PC extras 7 * Based on eee.c from eeepc-linux 20 #include <linux/hwmon-sysfs.h> 25 #include <linux/input/sparse-keymap.h> 51 "acpi4asus-user@lists.sourceforge.net."); 189 return (status == AE_OK ? 0 : -1); in write_acpi_int() 199 *val = -1; in read_acpi_int() 200 return -1; in read_acpi_int() 212 return -ENODEV; in set_acpi() [all …]
|
/openbmc/linux/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_hw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2009-2013 QLogic Corporation 14 #define MASK(n) ((1ULL<<(n))-1) 322 if (done != -1) in qlcnic_pcie_sem_lock() 323 dev_err(&adapter->pdev->dev, in qlcnic_pcie_sem_lock() 327 dev_err(&adapter->pdev->dev, in qlcnic_pcie_sem_lock() 331 dev_err(&adapter->pdev->dev, in qlcnic_pcie_sem_lock() 334 return -EIO; in qlcnic_pcie_sem_lock() 340 QLCWR32(adapter, id_reg, adapter->portnum); in qlcnic_pcie_sem_lock() 359 qlcnic_read_window_reg(addr, adapter->ahw->pci_base0, &data); in qlcnic_ind_rd() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mac80211.c | 1 // SPDX-License-Identifier: ISC 82 /* UNII-5 */ 107 /* UNII-6 */ 114 /* UNII-7 */ 132 /* UNII-8 */ 198 struct mt76_dev *dev = phy->dev; in mt76_led_init() 199 struct ieee80211_hw *hw = phy->hw; in mt76_led_init() 201 if (!phy->leds.cdev.brightness_set && !phy->leds.cdev.blink_set) in mt76_led_init() 204 snprintf(phy->leds.name, sizeof(phy->leds.name), "mt76-%s", in mt76_led_init() 205 wiphy_name(hw->wiphy)); in mt76_led_init() [all …]
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_sysfs.c | 3 * Copyright (c) 2006 - 2012 QLogic Corporation. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 46 return &dd->pport[port_num - 1]; in qib_get_pportdata_kobj() 56 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in hrtbt_enable_show() 58 return sysfs_emit(buf, "%d\n", dd->f_get_ib_cfg(ppd, QIB_IB_CFG_HRTBT)); in hrtbt_enable_show() 66 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in hrtbt_enable_store() 83 ret = dd->f_set_ib_cfg(ppd, QIB_IB_CFG_HRTBT, val); in hrtbt_enable_store() 93 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in loopback_store() 96 r = dd->f_set_ib_loopback(ppd, buf); in loopback_store() [all …]
|
/openbmc/linux/drivers/net/ethernet/micrel/ |
H A D | ksz884x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/net/ethernet/micrel/ksx884x.c - Micrel KSZ8841/2 PCI Ethernet driver 5 * Copyright (c) 2009-2010 Micrel, Inc. 271 #define PHY_CTRL_INTERVAL (KS884X_P2MBCR_P - KS884X_P1MBCR_P) 293 #define PHY_SPECIAL_INTERVAL (KS884X_P2VCT_P - KS884X_P1VCT_P) 482 (KS8842_PORT_2_CTRL_1 - KS8842_PORT_1_CTRL_1)) 587 #define STATIC_MAC_TABLE_ADDR 00-0000FFFF-FFFFFFFF 588 #define STATIC_MAC_TABLE_FWD_PORTS 00-00070000-00000000 589 #define STATIC_MAC_TABLE_VALID 00-00080000-00000000 590 #define STATIC_MAC_TABLE_OVERRIDE 00-00100000-00000000 [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | applespi.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2015-2018 Federico Lorenzi 6 * Copyright (c) 2017-2018 Ronald Tschalär 26 * SPI-based Protocol 27 * ------------------ 40 * fixed, 256-byte size). In that case it will be split over multiple, 85 ((KBD_BL_LEVEL_MAX - KBD_BL_LEVEL_MIN) * KBD_BL_LEVEL_SCALE / 255U) 102 …emap Fn key ([0] = no-remap; 1 = left-ctrl, 2 = left-shift, 3 = left-alt, 4 = left-meta, 6 = right… 106 MODULE_PARM_DESC(iso_layout, "Enable/Disable hardcoded ISO-layout of the keyboard. ([0] = disabled,… 114 * struct keyboard_protocol - keyboard message. [all …]
|