/openbmc/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | gpio-restart.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/gpio-restart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO controlled reset 10 - Sebastian Reichel <sre@kernel.org> 13 Drive a GPIO line that can be used to restart the system from a restart handler. 16 request the given gpio line and install a restart handler. If the optional properties 17 'open-source' is not found, the GPIO line will be driven in the inactive state. Otherwise its 18 not driven until the restart is initiated. [all …]
|
/openbmc/linux/drivers/power/reset/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 13 bool "ams AS3722 power-off driver" 16 This driver supports turning off board via a ams AS3722 power-off. 31 This driver supports restart for Atmel AT91SAM9 and SAMA5 35 tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver" 43 tristate "Actions Semi ATC260x PMIC power-off driver" 46 This driver provides power-off and restart support for a system 53 This driver supports restart for Axxia SoC. 62 This driver provides restart support for Broadcom Kona chips. 64 Say Y here if you have a Broadcom Kona-based board and you wish [all …]
|
H A D | gpio-restart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Toggles a GPIO pin to restart a device 7 * Based on the gpio-poweroff driver. 14 #include <linux/gpio/consumer.h> 32 /* drive it active, also inactive->active edge */ in gpio_restart_notify() 33 gpiod_direction_output(gpio_restart->reset_gpio, 1); in gpio_restart_notify() 34 mdelay(gpio_restart->active_delay_ms); in gpio_restart_notify() 36 /* drive inactive, also active->inactive edge */ in gpio_restart_notify() 37 gpiod_set_value(gpio_restart->reset_gpio, 0); in gpio_restart_notify() 38 mdelay(gpio_restart->inactive_delay_ms); in gpio_restart_notify() [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o 3 obj-$(CONFIG_POWER_RESET_AT91_POWEROFF) += at91-poweroff.o 4 obj-$(CONFIG_POWER_RESET_AT91_RESET) += at91-reset.o 5 obj-$(CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC) += at91-sama5d2_shdwc.o 6 obj-$(CONFIG_POWER_RESET_ATC260X) += atc260x-poweroff.o 7 obj-$(CONFIG_POWER_RESET_AXXIA) += axxia-reset.o 8 obj-$(CONFIG_POWER_RESET_BRCMKONA) += brcm-kona-reset.o 9 obj-$(CONFIG_POWER_RESET_BRCMSTB) += brcmstb-reboot.o 10 obj-$(CONFIG_POWER_RESET_GEMINI_POWEROFF) += gemini-poweroff.o [all …]
|
/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | drivers-on-gpio.rst | 2 Subsystem drivers using GPIO 5 Note that standard kernel drivers exist for common GPIO tasks and will provide 6 the right in-kernel and userspace APIs/ABIs for the job, and that these 10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO 13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger, 14 i.e. a LED will turn on/off in response to a GPIO line going high or low 15 (and that LED may in turn use the leds-gpio as per above). 17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line 20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your 21 GPIO line cannot generate interrupts, so it needs to be periodically polled [all …]
|
/openbmc/linux/arch/riscv/boot/dts/starfive/ |
H A D | jh7100-starfive-visionfive-v1.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 7 /dts-v1/; 8 #include "jh7100-common.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 13 compatible = "starfive,visionfive-v1", "starfive,jh7100"; 15 gpio-restart { 16 compatible = "gpio-restart"; 17 gpios = <&gpio 63 GPIO_ACTIVE_HIGH>;
|
/openbmc/linux/arch/arm/mach-omap1/ |
H A D | ams-delta-fiq-handler.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mach-omap1/ams-delta-fiq-handler.S 14 #include <linux/platform_data/ams-delta-fiq.h> 15 #include <linux/platform_data/gpio-omap.h> 16 #include <linux/soc/ti/omap1-io.h> 22 #include "ams-delta-fiq.h" 23 #include "board-ams-delta.h" 27 * OMAP1510 GPIO related symbol copied from arch/arm/mach-omap1/gpio15xx.c. 32 /* GPIO register bitmasks */ 79 * r8 - temporary [all …]
|
/openbmc/linux/include/linux/mfd/ |
H A D | max8998.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max8998.h - Voltage regulator driver for the Maxim 8998 5 * Copyright (C) 2009-2010 Samsung Electrnoics 46 * max8998_regulator_data - regulator data 49 * @reg_node: DT node of regulator (unused on non-DT platforms) 58 * struct max8998_board - packages regulator init data 68 * @buck1_set1: BUCK1 gpio pin 1 to set output voltage 69 * @buck1_set2: BUCK1 gpio pin 2 to set output voltage 70 * @buck1_default_idx: Default for BUCK1 gpio pin 1, 2 71 * @buck2_set3: BUCK2 gpio pin to set output voltage [all …]
|
/openbmc/openbmc/meta-openembedded/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/ |
H A D | gpiod-sysfs-proxy.init.in | 3 # Provides: gpiod-sysfs-proxy 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: User-space, libgpiod-based compatibility layer for linux GPIO sysfs interfa… 11 # -*- coding: utf-8 -*- 12 # Debian init.d script for gpiod-sysfs-proxy 15 # set -e 20 PROG="/usr/bin/gpiod-sysfs-proxy" [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/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8916-ufi.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include "msm8916-pm8916.dtsi" 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 9 chassis-type = "embedded"; 17 stdout-path = "serial0"; 20 reserved-memory { 23 no-map; 28 no-map; 32 gpio-keys { [all …]
|
/openbmc/linux/drivers/net/can/dev/ |
H A D | dev.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (C) 2005 Marc Kleine-Budde, Pengutronix 4 * Copyright (C) 2008-2009 Wolfgang Grandegger <wg@grandegger.com> 13 #include <linux/can/can-ml.h> 16 #include <linux/gpio/consumer.h> 24 if (new_state <= priv->state) in can_update_state_error_stats() 29 priv->can_stats.error_warning++; in can_update_state_error_stats() 32 priv->can_stats.error_passive++; in can_update_state_error_stats() 35 priv->can_stats.bus_off++; in can_update_state_error_stats() 99 if (unlikely(new_state == priv->state)) { in can_change_state() [all …]
|
/openbmc/linux/arch/arm/boot/dts/microchip/ |
H A D | lan966x-pcb8291.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * lan966x_pcb8291.dts - Device Tree file for PCB8291 5 /dts-v1/; 7 #include "dt-bindings/phy/phy-lan966x-serdes.h" 10 model = "Microchip EVB - LAN9662"; 11 compatible = "microchip,lan9662-pcb8291", "microchip,lan9662", "microchip,lan966"; 14 stdout-path = "serial0:115200n8"; 21 gpio-restart { 22 compatible = "gpio-restart"; 23 gpios = <&gpio 56 GPIO_ACTIVE_LOW>; [all …]
|
H A D | lan966x-kontron-kswitch-d10-mmt.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "dt-bindings/phy/phy-lan966x-serdes.h" 16 stdout-path = "serial0:115200n8"; 19 gpio-restart { 20 compatible = "gpio-restart"; 21 pinctrl-0 = <&reset_pins>; 22 pinctrl-names = "default"; 23 gpios = <&gpio 56 GPIO_ACTIVE_LOW>; 29 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>; [all …]
|
H A D | lan966x-pcb8290.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * lan966x-pcb8290.dts - Device Tree file for LAN966X-PCB8290 board 9 /dts-v1/; 11 #include "dt-bindings/phy/phy-lan966x-serdes.h" 15 compatible = "microchip,lan9668-pcb8290", "microchip,lan9668", "microchip,lan966"; 17 gpio-restart { 18 compatible = "gpio-restart"; 19 gpios = <&gpio 56 GPIO_ACTIVE_LOW>; 28 &gpio { 29 miim_a_pins: mdio-pins { [all …]
|
H A D | lan966x-pcb8309.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * lan966x_pcb8309.dts - Device Tree file for PCB8309 5 /dts-v1/; 7 #include "dt-bindings/phy/phy-lan966x-serdes.h" 10 model = "Microchip EVB - LAN9662"; 11 compatible = "microchip,lan9662-pcb8309", "microchip,lan9662", "microchip,lan966"; 20 stdout-path = "serial0:115200n8"; 23 gpio-restart { 24 compatible = "gpio-restart"; 25 gpios = <&gpio 56 GPIO_ACTIVE_LOW>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/synaptics/ |
H A D | berlin2cd-valve-steamlink.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 19 gpio-restart { 20 compatible = "gpio-restart"; 22 active-delay = <100>; 23 inactive-delay = <10>; 24 wait-delay = <100>; 30 cpu-supply = <&vcpu>; 31 operating-points = < [all …]
|
/openbmc/linux/arch/powerpc/platforms/embedded6xx/ |
H A D | wii.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Nintendo Wii board-specific support 6 * Copyright (C) 2008-2009 The GameCube Linux Team 24 #include "flipper-pic.h" 25 #include "hlwd-pic.h" 29 #define HW_CTRL_COMPATIBLE "nintendo,hollywood-control" 34 /* gpio */ 35 #define HW_GPIO_COMPATIBLE "nintendo,hollywood-gpio" 62 int error = -ENODEV; in wii_ioremap_hw_regs() 120 /* make sure that the poweroff GPIO is configured as output */ in wii_power_off() [all …]
|
/openbmc/linux/arch/riscv/boot/dts/sifive/ |
H A D | hifive-unleashed-a00.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* Copyright (c) 2018-2019 SiFive, Inc */ 4 #include "fu540-c000.dtsi" 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pwm/pwm.h> 14 compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000", 18 stdout-path = "serial0"; 22 timebase-frequency = <RTCCLK_FREQ>; 31 #clock-cells = <0>; [all …]
|
/openbmc/openbmc/meta-facebook/meta-catalina/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | phosphor-multi-gpio-monitor.service | 2 Description=Phosphor Multi GPIO monitor 6 Restart=no key 7 ExecStartPre=/usr/libexec/phosphor-gpio-monitor/prepare-serv-json phosphor-multi-gpio-monitor 8 ExecStart=/usr/bin/phosphor-multi-gpio-monitor --config /var/lib/phosphor-gpio-monitor/phosphor-mul…
|
H A D | phosphor-multi-gpio-presence.service | 2 Description=Phosphor Multi GPIO presence 3 Wants=mapper-wait@-xyz-openbmc_project-inventory.service 4 After=mapper-wait@-xyz-openbmc_project-inventory.service 8 Restart=no key 9 ExecStartPre=/usr/libexec/phosphor-gpio-monitor/prepare-serv-json phosphor-multi-gpio-presence 10 ExecStart=/usr/bin/phosphor-multi-gpio-presence --config /var/lib/phosphor-gpio-monitor/phosphor-mu… 13 RequiredBy=multi-user.target
|
/openbmc/phosphor-gpio-monitor/ |
H A D | phosphor-multi-gpio-monitor.service | 2 Description=Phosphor Multi GPIO monitor 5 Restart=no key 6 ExecStart=/usr/bin/phosphor-multi-gpio-monitor --config /usr/share/phosphor-gpio-monitor/phosphor-m…
|
H A D | phosphor-multi-gpio-presence.service | 2 Description=Phosphor Multi GPIO presence 3 Wants=mapper-wait@-xyz-openbmc_project-inventory.service 4 After=mapper-wait@-xyz-openbmc_project-inventory.service 7 Restart=no key 8 ExecStart=/usr/bin/phosphor-multi-gpio-presence --config /usr/share/phosphor-gpio-monitor/phosphor-… 11 RequiredBy=multi-user.target
|
H A D | phosphor-gpio-monitor@.service | 2 Description=Phosphor GPIO %I monitor 5 Restart=always key 7 EnvironmentFile=/etc/default/obmc/gpio/%I 8 ExecStart=/usr/bin/phosphor-gpio-monitor --path=${DEVPATH} --key=${KEY} --polarity=${POLARITY} --ta…
|
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | phosphor-gpio-presence@.service.replace | 2 Description=Phosphor GPIO %I Presence 3 Wants=mapper-wait@-xyz-openbmc_project-inventory.service 4 After=mapper-wait@-xyz-openbmc_project-inventory.service 5 ConditionPathExists=/etc/default/obmc/gpio/gpios-%i.conf 9 Restart=on-failure 10 EnvironmentFile=/etc/default/obmc/gpio/gpios-%i.conf 11 …t=/usr/bin/phosphor-gpio-presence --path=${DEVPATH} --inventory=${INVENTORY} --key=${KEY} --name=$… 14 RequiredBy=multi-user.target
|