/openbmc/skeleton/pytools/ |
H A D | gpioutil | 13 print 'gpioutil -n GPIO_NAME [-v value]' 14 print 'gpioutil -i GPIO_NUM -d <DIRECTION = in,out,falling,rising,both> [-v value]' 15 print 'gpioutil -p PIN_NAME -d <DIRECTION = in,out,falling,rising,both> [-v value]' 16 print 'gpioutil -l PIN_NAME (lookup pin name only)' 27 GPIO_SYSFS = '/sys/class/gpio/' 30 def find_gpio_base(path="/sys/class/gpio/"): 33 with open(join(gc, "label")) as f: 34 label = f.readline().strip() 35 if label == "1e780000.gpio": 36 with open(join(gc, "base")) as f: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | qcom,spmi-pmic.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm SPMI PMICs multi-function device 13 16-bit SPMI peripheral address space into 256 smaller fixed-size regions, 256 bytes 14 each. A function can consume one or more of these fixed-size register regions. 24 - Stephen Boyd <sboyd@kernel.org> 29 - pattern: '^pmic@.*$' 30 - pattern: '^pm(a|s)?[0-9]*@.*$' [all …]
|
H A D | kontron,sl28cpld.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Walle <michael@walle.cc> 15 GPIO controller. 26 "#address-cells": 29 "#size-cells": 32 "#interrupt-cells": 38 interrupt-controller: true 41 "^gpio(@[0-9a-f]+)?$": [all …]
|
H A D | mscc,ocelot.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Ocelot Externally-Controlled Ethernet Switch 10 - Colin Foster <colin.foster@in-advantage.com> 18 The switch family is a multi-port networking switch that supports many 20 external GPIO expanders. 25 - mscc,vsc7512 30 "#address-cells": 33 "#size-cells": [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | stm32f429-disco-u-boot.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 7 #include <dt-bindings/memory/stm32-sdram.h> 10 u-boot,dm-pre-reloc; 29 u-boot,dm-pre-reloc; 30 pin-controller { 31 u-boot,dm-pre-reloc; 35 compatible = "st,stm32-fmc"; 38 pinctrl-0 = <&fmc_pins>; 39 pinctrl-names = "default"; [all …]
|
H A D | stm32f469-disco-u-boot.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 7 #include <dt-bindings/memory/stm32-sdram.h> 10 u-boot,dm-pre-reloc; 29 u-boot,dm-pre-reloc; 30 pin-controller { 31 u-boot,dm-pre-reloc; 35 compatible = "st,stm32-fmc"; 39 pinctrl-0 = <&fmc_pins_d32>; 40 pinctrl-names = "default"; [all …]
|
H A D | stm32429i-eval-u-boot.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved 7 #include <dt-bindings/memory/stm32-sdram.h> 10 u-boot,dm-pre-reloc; 29 u-boot,dm-pre-reloc; 30 pin-controller { 31 u-boot,dm-pre-reloc; 35 compatible = "st,stm32-fmc"; 39 pinctrl-0 = <&fmc_pins_d32>; 40 pinctrl-names = "default"; [all …]
|
H A D | stm32mp157-pinctrl.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved 6 #include <dt-bindings/pinctrl/stm32-pinfunc.h> 10 pinctrl: pin-controller@50002000 { 11 #address-cells = <1>; 12 #size-cells = <1>; 13 compatible = "st,stm32mp157-pinctrl"; 15 interrupt-parent = <&exti>; 17 pins-are-numbered; 19 gpioa: gpio@50002000 { [all …]
|
/openbmc/u-boot/arch/mips/dts/ |
H A D | sagem,f@st1704.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 11 model = "Sagem F@ST1704"; 12 compatible = "sagem,f@st1704", "brcm,bcm6338"; 19 stdout-path = "serial0:115200n8"; 22 gpio-leds { 23 compatible = "gpio-leds"; 26 label = "F@ST1704:green:inet"; 27 gpios = <&gpio 0 GPIO_ACTIVE_LOW>; 31 label = "F@ST1704:green:power"; [all …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-lpc18xx.c | 18 #include <linux/pinctrl/pinconf-generic.h> 24 #include "pinctrl-utils.h" 68 TYPE_ND, /* Normal-drive */ 69 TYPE_HD, /* High-drive */ 70 TYPE_HS, /* High-speed */ 146 [FUNC_GPIO] = "gpio", 240 LPC_P(0,0, GPIO, SSP1, ENET, SGPIO, R, R, I2S0_TX_WS,I2S1, 0, ND); 241 LPC_P(0,1, GPIO, SSP1,ENET_ALT,SGPIO, R, R, ENET, I2S1, 0, ND); 242 LPC_P(1,0, GPIO, CTIN, EMC, R, R, SSP0, SGPIO, R, 0, ND); 243 LPC_P(1,1, GPIO, CTOUT, EMC, SGPIO, R, SSP0, R, R, 0, ND); [all …]
|
H A D | pinctrl-ocelot.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 * Author: <alexandre.belloni@free-electrons.com> 10 #include <linux/gpio/driver.h> 21 #include <linux/pinctrl/pinconf-generic.h> 39 /* GPIO standard registers */ 222 [FUNC_GPIO] = "gpio", 973 LAN966X_P(0, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, R); 974 LAN966X_P(1, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, R); 975 LAN966X_P(2, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, R); 976 LAN966X_P(3, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, R); [all …]
|
/openbmc/u-boot/ |
H A D | MAINTAINERS | 8 W: Web-page with status/info 17 F: Files and directories with wildcard patterns. 19 F: drivers/net/ all files in and below drivers/net 20 F: drivers/net/* all files in drivers/net, but not below 21 F: */net/* all files in "any top level directory"/net 22 One pattern per line. Multiple F: lines acceptable. 24 N: [^a-z]tegra all files whose path contains the word tegra 27 match F: pattern and matches of N: patterns. By default, 28 get_maintainer will not look at git log history when an F: pattern 31 X: Files and directories that are NOT maintained, same rules as F: [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libgpiod/libgpiod-2.x/ |
H A D | gpio-manager.init | 3 # Provides: gpio-manager 4 # Required-Start: $remote_fs $syslog 5 # Required-Stop: $remote_fs $syslog 6 # Default-Start: 2 3 4 5 7 # Default-Stop: 1 8 # Short-Description: Centralized GPIO manager daemon 11 # -*- coding: utf-8 -*- 12 # Debian init.d script for gpio-manager 15 # set -e 20 DAEMON=/usr/bin/gpio-manager [all …]
|
/openbmc/u-boot/drivers/pinctrl/meson/ |
H A D | pinctrl-meson-axg.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 10 #include "pinctrl-meson.h" 25 #define BANK_PMX(n, f, l, r, o) \ argument 28 .first = f, \ 38 #define PMX_DATA(f) \ argument 40 .func = f, \ 43 #define GROUP(grp, f) \ argument 49 PMX_DATA(f), \ 53 #define GPIO_GROUP(gpio, b) \ argument 55 .name = #gpio, \ [all …]
|
/openbmc/linux/drivers/pinctrl/meson/ |
H A D | pinctrl-meson-axg-pmx.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ 24 #define BANK_PMX(n, f, l, r, o) \ argument 27 .first = f, \ 37 #define PMX_DATA(f) \ argument 39 .func = f, \ 42 #define GROUP(grp, f) \ argument 48 PMX_DATA(f), \ 52 #define GPIO_GROUP(gpio) \ argument 54 .name = #gpio, \ 55 .pins = (const unsigned int[]){ gpio }, \
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-opp-palmetto.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 4 #include "aspeed-g4.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 9 compatible = "tyan,palmetto-bmc", "aspeed,ast2400"; 12 stdout-path = &uart5; 20 reserved-memory { 21 #address-cells = <1>; 22 #size-cells = <1>; 26 no-map; [all …]
|
H A D | aspeed-bmc-lenovo-hr855xg2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-present Lenovo 8 /dts-v1/; 10 #include "aspeed-g5.dtsi" 11 #include <dt-bindings/gpio/aspeed-gpio.h> 15 compatible = "lenovo,hr855xg2-bmc", "aspeed,ast2500"; 29 stdout-path = &uart5; 38 reserved-memory { 39 #address-cells = <1>; 40 #size-cells = <1>; [all …]
|
H A D | aspeed-bmc-facebook-yosemite4.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/leds/leds-pca955x.h> 8 #include <dt-bindings/i2c/i2c.h> 12 compatible = "facebook,yosemite4-bmc", "aspeed,ast2600"; 44 stdout-path = "serial4:57600n8"; 52 iio-hwmon { 53 compatible = "iio-hwmon"; [all …]
|
/openbmc/u-boot/arch/x86/dts/ |
H A D | chromebook_link.dts | 1 /dts-v1/; 3 #include <dt-bindings/gpio/x86-gpio.h> 4 #include <dt-bindings/sound/azalia.h> 16 compatible = "google,link", "intel,celeron-ivybridge"; 29 #address-cells = <1>; 30 #size-cells = <0>; 34 compatible = "intel,core-gen3"; 36 intel,apic-id = <0>; 41 compatible = "intel,core-gen3"; 43 intel,apic-id = <1>; [all …]
|
/openbmc/openbmc/meta-facebook/meta-catalina/recipes-phosphor/state/phosphor-state-manager/ |
H A D | power-cmd | 3 # shellcheck source=meta-facebook/recipes-fb/obmc_functions/files/fb-common-functions 4 source /usr/libexec/fb-common-functions 30 …-property xyz.openbmc_project.Settings /xyz/openbmc_project/software/chassis/Catalina_PDB_cpld xyz… 38 if ! pdb_cpld_ver="$(i2ctransfer -y -f 14 w4@0x40 0xc0 0x00 0x00 0x00 r4)"; then 66 if ! reg_val="$(i2ctransfer -y -f 14 w1@0x12 0x01 r1)"; then 87 i2cset -f -y 20 0x13 0xec 90 i2cset -f -y 20 0x1c 0xec 93 if [ "$ret1" -ne 0 ] || [ "$ret2" -ne 0 ]; then 101 if ! i2cset -f -y 20 0x42 0xfd 0x04; then 106 if ! i2cset -f -y 20 0x43 0xfd 0x04; then [all …]
|
/openbmc/linux/drivers/pinctrl/sunplus/ |
H A D | sppctl.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/gpio/driver.h> 20 #include <linux/pinctrl/pinconf-generic.h> 23 #include <dt-bindings/pinctrl/sppctl-sp7021.h> 26 #include "../pinctrl-utils.h" 40 return readl(spp_gchip->first_base + SPPCTL_GPIO_OFF_FIRST + off); in sppctl_first_readl() 45 writel(val, spp_gchip->first_base + SPPCTL_GPIO_OFF_FIRST + off); in sppctl_first_writel() 50 return readl(spp_gchip->gpioxt_base + SPPCTL_GPIO_OFF_MASTER + off); in sppctl_gpio_master_readl() 56 writel(val, spp_gchip->gpioxt_base + SPPCTL_GPIO_OFF_MASTER + off); in sppctl_gpio_master_writel() 61 return readl(spp_gchip->gpioxt_base + SPPCTL_GPIO_OFF_OE + off); in sppctl_gpio_oe_readl() [all …]
|
/openbmc/linux/ |
H A D | MAINTAINERS | 5 --------------------------------------------------- 21 W: *Web-page* with status/info 23 B: URI for where to file *bugs*. A web-page with detailed bug 28 patches to the given subsystem. This is either an in-tree file, 29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst 33 F: *Files* and directories wildcard patterns. 35 F: drivers/net/ all files in and below drivers/net 36 F: drivers/net/* all files in drivers/net, but not below 37 F: */net/* all files in "any top level directory"/net 38 One pattern per line. Multiple F: lines acceptable. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | mrvl-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/gpio/mrvl-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Marvell PXA GPIO controller 10 - Linus Walleij <linus.walleij@linaro.org> 11 - Bartosz Golaszewski <bgolaszewski@baylibre.com> 12 - Rob Herring <robh+dt@kernel.org> 15 - if: 20 - intel,pxa25x-gpio [all …]
|
/openbmc/u-boot/drivers/pinctrl/mvebu/ |
H A D | pinctrl-armada-37xx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * U-Boot Marvell 37xx SoC pinctrl driver 9 * Gregory CLEMENT <gregory.clement@free-electrons.com> 11 * Additionally parts are derived from the Meson U-Boot pinctrl driver, 13 * (C) Copyright 2016 - Beniamino Galvani <b.galvani@gmail.com> 22 #include <dm/device-internal.h> 29 #include <asm/gpio.h> 117 .funcs = {_func1, "gpio"} \ 127 .funcs = {_func1, "gpio"} \ 137 .funcs = {_f1, _f2, "gpio"} \ [all …]
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/configuration/entity-manager/ |
H A D | device-driver-probe | 3 # shellcheck source=meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/device-util 4 source /usr/libexec/phosphor-gpio-monitor/device-util 11 if /usr/sbin/i2cget -f -y "$bus" "$addr" 2>/dev/null; then 24 i2cset -f -y 29 0x1d 0x2e 0xff 25 i2cset -f -y 29 0x1f 0x2e 0xff 29 echo pca9546 0x71 > /sys/bus/i2c/devices/i2c-9/new_device 32 echo pca9546 0x71 > /sys/bus/i2c/devices/i2c-11/new_device 42 i2cset -f -y 36 0x1d 0x2e 0xff 43 echo adc128d818 0x1d > /sys/bus/i2c/devices/i2c-36/new_device 44 echo ina238 0x44 > /sys/bus/i2c/devices/i2c-36/new_device [all …]
|