/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | marvell,armada-375-pinctrl.txt | 3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding 7 - compatible: "marvell,88f6720-pinctrl" 8 - reg: register specifier of MPP registers 16 mpp0 0 gpio, dev(ad2), spi0(cs1), spi1(cs1) 17 mpp1 1 gpio, dev(ad3), spi0(mosi), spi1(mosi) 18 mpp2 2 gpio, dev(ad4), ptp(evreq), led(c0), audio(sdi) 19 mpp3 3 gpio, dev(ad5), ptp(trig), led(p3), audio(mclk) 20 mpp4 4 gpio, dev(ad6), spi0(miso), spi1(miso) 21 mpp5 5 gpio, dev(ad7), spi0(cs2), spi1(cs2) 22 mpp6 6 gpio, dev(ad0), led(p1), audio(lrclk) [all …]
|
/openbmc/linux/drivers/leds/trigger/ |
H A D | ledtrig-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ledtrig-gio.c - LED Trigger Based on GPIO events 11 #include <linux/gpio.h> 18 struct led_classdev *led; member 20 unsigned desired_brightness; /* desired brightness when led is on */ 21 unsigned inverted; /* true when gpio is inverted */ 22 unsigned gpio; /* gpio that triggers the leds */ member 27 struct led_classdev *led = _led; in gpio_trig_irq() local 28 struct gpio_trig_data *gpio_data = led_get_trigger_data(led); in gpio_trig_irq() 31 tmp = gpio_get_value_cansleep(gpio_data->gpio); in gpio_trig_irq() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath5k/ |
H A D | gpio.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 20 GPIO Functions 29 * DOC: GPIO/LED functions 31 * Here we control the 6 bidirectional GPIO pins provided by the hw. 32 * We can set a GPIO pin to be an input or an output pin on GPIO control 33 * register and then read or set its status from GPIO data input/output 36 * We also control the two LED pins provided by the hw, LED_0 is our 37 * "power" LED and LED_1 is our "network activity" LED but many scenarios 39 * GPIO pins, we handle them through the LED subsystem on led.c [all …]
|
/openbmc/linux/drivers/pinctrl/mvebu/ |
H A D | pinctrl-armada-375.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 18 #include "pinctrl-mvebu.h" 22 MPP_FUNCTION(0x0, "gpio", NULL), 28 MPP_FUNCTION(0x0, "gpio", NULL), 34 MPP_FUNCTION(0x0, "gpio", NULL), 37 MPP_FUNCTION(0x3, "led", "c0"), 42 MPP_FUNCTION(0x0, "gpio", NULL), 45 MPP_FUNCTION(0x3, "led", "p3"), 50 MPP_FUNCTION(0x0, "gpio", NULL), [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 …]
|
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> 12 compatible = "ibm,rainier-bmc", "aspeed,ast2600"; 34 stdout-path = &uart5; 43 reserved-memory { 44 #address-cells = <1>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/marvell/ |
H A D | kirkwood-iomega_ix2_200.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 5 #include "kirkwood-6281.dtsi" 8 model = "Iomega StorCenter ix2-200"; 9 compatible = "iom,ix2-200", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 18 stdout-path = &uart0; 22 pinctrl: pin-controller@10000 { 23 pinctrl-0 = < &pmx_led_sata_brt_ctrl_1 33 pinctrl-names = "default"; 35 pmx_button_reset: pmx-button-reset { [all …]
|
H A D | kirkwood-linkstation-6282.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree common file for kirkwood-6282 based Buffalo Linkstation 10 #include "kirkwood-6282.dtsi" 11 #include "kirkwood-linkstation.dtsi" 15 pinctrl: pin-controller@10000 { 16 pmx_power_hdd0: pmx-power-hdd0 { 18 marvell,function = "gpio"; 20 pmx_usb_vbus: pmx-usb-vbus { 22 marvell,function = "gpio"; 24 pmx_fan_high: pmx-fan-high { [all …]
|
H A D | kirkwood-linkstation-duo-6281.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree common file for kirkwood-6281 based 2-Bay Buffalo Linkstation 10 #include "kirkwood-6281.dtsi" 11 #include "kirkwood-linkstation.dtsi" 15 pinctrl: pin-controller@10000 { 16 pmx_power_hdd0: pmx-power-hdd0 { 18 marvell,function = "gpio"; 20 pmx_power_hdd1: pmx-power-hdd1 { 22 marvell,function = "gpio"; 24 pmx_usb_vbus: pmx-usb-vbus { [all …]
|
H A D | kirkwood-nsa310.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "kirkwood-nsa3x0-common.dtsi" 7 compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 16 stdout-path = &uart0; 20 pinctrl: pin-controller@10000 { 21 pinctrl-0 = <&pmx_unknown>; 22 pinctrl-names = "default"; 24 pmx_led_esata_green: pmx-led-esata-green { 26 marvell,function = "gpio"; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-gpio.yaml | 1 # 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# 7 title: LEDs connected to GPIO lines 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 [all …]
|
H A D | leds-ns2.txt | 1 Binding for dual-GPIO LED found on Network Space v2 (and parents). 4 - compatible: "lacie,ns2-leds". 6 Each LED is represented as a sub-node of the ns2-leds device. 8 Required sub-node properties: 9 - cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification. 10 - slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification. 11 - modes-map: A mapping between LED modes (off, on or SATA activity blinking) and 12 the corresponding cmd-gpio/slow-gpio values. All the GPIO values combinations 15 Optional sub-node properties: 16 - label: Name for this LED. If omitted, the label is taken from the node name. [all …]
|
H A D | leds-pca955x.txt | 1 * NXP - pca955x LED driver 3 The PCA955x family of chips are I2C LED blinkers whose pins not used 4 to control LEDs can be used as general purpose I/Os. The GPIO pins can 5 be input or output, and output pins can also be pulse-width controlled. 8 - compatible : should be one of : 14 - #address-cells: must be 1 15 - #size-cells: must be 0 16 - reg: I2C slave address. depends on the model. 19 - gpio-controller: allows pins to be used as GPIOs. 20 - #gpio-cells: must be 2. [all …]
|
H A D | ti,tca6507.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TCA6507 LED and GPIO controller 10 - NeilBrown <neilb@suse.de> 13 The TCA6507 is a programmable LED controller connected via I2C that can drive 25 "#address-cells": 28 "#size-cells": 31 gpio-controller: true 33 "#gpio-cells": [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 23 clock-names: 25 - const: sso [all …]
|
/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | board.rst | 2 GPIO Mappings 7 Note that it only applies to the new descriptor-based interface. For a 8 description of the deprecated integer-based GPIO interface please refer to 11 corresponding GPIO). 13 All platforms can enable the GPIO library, but if the platform strictly 14 requires GPIO functionality to be present, it needs to select GPIOLIB from its 20 ----------- 22 exact way to do it depends on the GPIO controller providing the GPIOs, see the 26 <function>-gpios, where <function> is the function the driver will request 32 led-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>, /* red */ [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-pca9532.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * pca9532.c - 16-bit Led dimmer 18 #include <linux/leds-pca9532.h> 19 #include <linux/gpio/driver.h> 27 #define LED_REG(m, led) (PCA9532_REG_OFFSET(m) + 0x5 + (led >> 2)) argument 28 #define LED_NUM(led) (led & 0x3) argument 29 #define LED_SHIFT(led) (LED_NUM(led) * 2) argument 30 #define LED_MASK(led) (0x3 << LED_SHIFT(led)) argument 45 struct gpio_chip gpio; member 101 .name = "leds-pca953x", [all …]
|
H A D | leds-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/gpio.h> 11 #include <linux/gpio/consumer.h> 47 if (led_dat->blinking) { in gpio_led_set() 48 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, in gpio_led_set() 50 led_dat->blinking = 0; in gpio_led_set() 52 if (led_dat->can_sleep) in gpio_led_set() 53 gpiod_set_value_cansleep(led_dat->gpiod, level); in gpio_led_set() 55 gpiod_set_value(led_dat->gpiod, level); in gpio_led_set() 71 led_dat->blinking = 1; in gpio_blink_set() [all …]
|
/openbmc/linux/drivers/leds/blink/ |
H A D | leds-lgm-sso.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Intel Lightning Mountain SoC LED Serial Shift Output Controller driver 10 #include <linux/gpio/consumer.h> 11 #include <linux/gpio/driver.h> 23 #define SSO_DEV_NAME "lgm-sso" 55 #define DATA_CLK_EDGE 0 /* 0-rising, 1-falling */ 63 * SW - Software has to update the SWU bit 64 * GPTC - General Purpose timer is used as clock source 65 * FPID - Divided FSC clock (FPID) is used as clock source 141 struct sso_gpio gpio; member [all …]
|
/openbmc/linux/arch/mips/boot/dts/ralink/ |
H A D | gardena_smart_gateway_mt7688.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/input.h> 14 compatible = "gardena,smart-gateway-mt7688", "ralink,mt7688a-soc", 15 "ralink,mt7628a-soc"; 23 gpio-keys { 24 compatible = "gpio-keys"; 26 pinctrl-names = "default"; 27 pinctrl-0 = <&pinmux_gpio_gpio>; /* GPIO11 */ [all …]
|
/openbmc/u-boot/test/dm/ |
H A D | led.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 #include <led.h> 9 #include <asm/gpio.h> 13 /* Base test of the led uclass */ 18 /* Get the top-level device */ in dm_test_led_base() 24 ut_asserteq(-ENODEV, uclass_get_device(UCLASS_LED, 5, &dev)); in dm_test_led_base() 30 /* Test of the LED 'default-state' device tree property */ 35 /* configure the default state (auto-probe) */ in dm_test_led_default_state() 38 /* Check that we handle the default-state property correctly. */ in dm_test_led_default_state() 49 /* Test of the led uclass using the led_gpio driver */ [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/leds/ |
H A D | leds-gpio.txt | 1 LEDs connected to GPIO lines 4 - compatible : should be "gpio-leds". 6 Each LED is represented as a sub-node of the gpio-leds device. Each 7 node's name represents the name of the corresponding LED. 9 LED sub-node properties: 10 - gpios : Should specify the LED's GPIO, see "gpios property" in 11 Documentation/devicetree/bindings/gpio/gpio.txt. Active low LEDs should be 12 indicated using flags in the GPIO specifier. 13 - label : (optional) 15 - linux,default-trigger : (optional) [all …]
|
/openbmc/qemu/include/hw/misc/ |
H A D | led.h | 2 * QEMU single LED device 4 * Copyright (C) 2020 Philippe Mathieu-Daudé <f4bug@amsat.org> 6 * SPDX-License-Identifier: GPL-2.0-or-later 12 #include "hw/qdev-core.h" 14 #define TYPE_LED "led" 17 * LEDColor: Color of a LED 19 * This set is restricted to physically available LED colors. 21 * LED colors from 'Table 1. Product performance of LUXEON Rebel Color 23 * https://www.lumileds.com/products/color-leds/luxeon-rebel-color/ 48 * Determines whether a GPIO is using a positive (active-high) [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 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)" 24 echo "Can't find present gpio expander (addr: 0x24) !!" 27 if [ -d "/sys/bus/i2c/drivers/pca953x/1-0021" ]; then 28 PwrGoodPinBase="$(cat /sys/bus/i2c/drivers/pca953x/1-0021/gpio/gpiochip*/base)" 34 echo "Can't find powergood gpio expander (addr: 0x21) !!" [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 …]
|