/openbmc/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | gpio-poweroff.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/gpio-poweroff.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO controlled power off 10 - Sebastian Reichel <sre@kernel.org> 13 System power off support via a GPIO line. When a shutdown is 14 executed the operating system is expected to switch the GPIO 15 from inactive to active. After a delay (active-delay-ms) it 17 delay (inactive-delay-ms) it is configured as active again. [all …]
|
/openbmc/linux/drivers/power/reset/ |
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 …]
|
H A D | gpio-poweroff.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Toggles a GPIO pin to power down a device 15 #include <linux/gpio/consumer.h> 33 /* drive it active, also inactive->active edge */ in gpio_poweroff_do_poweroff() 37 /* drive inactive, also active->inactive edge */ in gpio_poweroff_do_poweroff() 41 /* drive it active, also inactive->active edge */ in gpio_poweroff_do_poweroff() 57 dev_err(&pdev->dev, in gpio_poweroff_probe() 60 return -EBUSY; in gpio_poweroff_probe() 63 input = device_property_read_bool(&pdev->dev, "input"); in gpio_poweroff_probe() 69 device_property_read_u32(&pdev->dev, "active-delay-ms", &active_delay); in gpio_poweroff_probe() [all …]
|
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. 19 tristate "Atmel AT91 poweroff driver" 23 This driver supports poweroff 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 64 Say Y here if you have a Broadcom Kona-based board and you wish 79 bool "Cortina Gemini power-off driver" [all …]
|
H A D | regulator-poweroff.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Force-disables a regulator to power down a device 9 * Based on the gpio-poweroff driver. 41 dev_err(&pdev->dev, in regulator_poweroff_probe() 44 return -EBUSY; in regulator_poweroff_probe() 47 cpu_regulator = devm_regulator_get(&pdev->dev, "cpu"); in regulator_poweroff_probe() 64 { .compatible = "regulator-poweroff", }, 73 .name = "poweroff-regulator", 81 MODULE_DESCRIPTION("Regulator poweroff driver"); 82 MODULE_ALIAS("platform:poweroff-regulator");
|
/openbmc/openbmc/meta-ampere/meta-jade/recipes-ampere/platform/ |
H A D | mtjade-gpio-config.bb | 4 LICENSE = "Apache-2.0" 5 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 8 inherit obmc-phosphor-systemd 23 ampere-gpio-poweroff@.service \ 24 ampere-gpio-poweron@.service \ 28 CHASSIS_POWERON_SVC = "ampere-gpio-poweron@.service" 29 CHASSIS_POWERON_INSTMPL = "ampere-gpio-poweron@{0}.service" 30 CHASSIS_POWERON_TGTFMT = "obmc-chassis-poweron@{0}.target" 35 CHASSIS_POWEROFF_SVC = "ampere-gpio-poweroff@.service" 36 CHASSIS_POWEROFF_INSTMPL = "ampere-gpio-poweroff@{0}.service" [all …]
|
/openbmc/openbmc/meta-google/recipes-google/host-power-ctrl/ |
H A D | gpio-host-pwr_git.bb | 1 SUMMARY = "GPIO based powercontrol for a host system" 2 DESCRIPTION = "GPIO based powercontrol for a host system." 4 LICENSE = "Apache-2.0" 5 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacd… 11 gpio-ctrl \ 15 file://host-ensure-off.service \ 16 file://host-powercycle-watchdog.service \ 17 file://host-powercycle.service \ 18 file://host-poweroff-watchdog.service \ 19 file://host-poweroff.service \ [all …]
|
/openbmc/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-370-netgear-rn102.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include "armada-370.dtsi" 16 compatible = "netgear,readynas-102", "marvell,armada370", "marvell,armada-370-xp"; 19 stdout-path = "serial0:115200n8"; 32 internal-regs { 45 nr-ports = <1>; 50 pinctrl-0 = <&ge1_rgmii_pins>; [all …]
|
H A D | armada-370-netgear-rn104.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include "armada-370.dtsi" 16 compatible = "netgear,readynas-104", "marvell,armada370", "marvell,armada-370-xp"; 19 stdout-path = "serial0:115200n8"; 32 internal-regs { 44 pinctrl-0 = <&ge0_rgmii_pins>; 45 pinctrl-names = "default"; [all …]
|
H A D | armada-xp-netgear-rn2120.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include "armada-xp-mv78230.dtsi" 16 …compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,arm… 19 stdout-path = "serial0:115200n8"; 33 internal-regs { 41 clock-frequency = <400000>; 45 * MGT4012XB-O20, 8000RPM) near eSATA port */ [all …]
|
H A D | armada-xp-lenovo-ix4-300d.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree file for Lenovo Iomega ix4-300d 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include "armada-xp-mv78230.dtsi" 15 model = "Lenovo Iomega ix4-300d"; 16 compatible = "lenovo,ix4-300d", "marvell,armadaxp-mv78230", 17 "marvell,armadaxp", "marvell,armada-370-xp"; 20 stdout-path = "serial0:115200n8"; [all …]
|
H A D | kirkwood-netgear_readynas_duo_v2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 8 /dts-v1/; 11 #include "kirkwood-6282.dtsi" 15 …compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,k… 24 stdout-path = &uart0; 28 pinctrl: pin-controller@10000 { 29 pmx_button_power: pmx-button-power { 31 marvell,function = "gpio"; 34 pmx_button_backup: pmx-button-backup { 36 marvell,function = "gpio"; [all …]
|
H A D | kirkwood-netgear_readynas_nv+_v2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 8 /dts-v1/; 11 #include "kirkwood-6282.dtsi" 15 …compatible = "netgear,readynas-nv+-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,k… 24 stdout-path = &uart0; 28 pinctrl: pin-controller@10000 { 29 pmx_button_power: pmx-button-power { 31 marvell,function = "gpio"; 34 pmx_button_backup: pmx-button-backup { 36 marvell,function = "gpio"; [all …]
|
H A D | kirkwood-c200-v1.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright 2021-2022 Pawel Dembicki <paweldembicki@gmail.com> 7 /dts-v1/; 10 #include "kirkwood-6281.dtsi" 11 #include <dt-bindings/leds/common.h> 15 compatible = "ctera,c200-v1", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 19 stdout-path = &uart0; 28 compatible = "gpio-keys"; 29 pinctrl-0 = <&pmx_buttons>; 30 pinctrl-names = "default"; [all …]
|
/openbmc/openbmc/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/ |
H A D | quanta-powerctrl.bb | 2 LICENSE = "Apache-2.0" 3 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacd… 6 inherit obmc-phosphor-systemd 12 file://poweroff.sh \ 14 file://host-gpio.service \ 15 file://host-poweroff.service \ 16 file://host-poweron.service" 22 SYSTEMD_SERVICE:${PN} = "host-gpio.service host-poweron.service host-poweroff.service" 25 install -d ${D}/${bindir} 26 install -m 0755 ${S}/init_once.sh ${D}/${bindir}/ [all …]
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm2711-rpi-400.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 3 #include "bcm2711-rpi-4-b.dts" 11 stdout-path = "serial1:115200n8"; 14 gpio-poweroff { 15 compatible = "gpio-poweroff"; 21 gpio-line-names = "BT_ON", 32 clock-frequency = <1950000>; 36 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; 39 /delete-node/ &led_act; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/apm/ |
H A D | apm-merlin.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 10 /include/ "apm-shadowcat.dtsi" 13 model = "APM X-Gene Merlin board"; 14 compatible = "apm,merlin", "apm,xgene-shadowcat"; 23 gpio-keys { 24 compatible = "gpio-keys"; 28 linux,input-type = <0x1>; 29 interrupt-parent = <&sbgpio>; 39 poweroff: poweroff@10548010 { label [all …]
|
H A D | apm-mustang.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 10 /include/ "apm-storm.dtsi" 13 model = "APM X-Gene Mustang board"; 14 compatible = "apm,mustang", "apm,xgene-storm"; 23 gpio-keys { 24 compatible = "gpio-keys"; 28 linux,input-type = <0x1>; 29 interrupt-parent = <&sbgpio>; 39 poweroff: poweroff@10548010 { label [all …]
|
/openbmc/openbmc/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/ |
H A D | host-poweroff.service | 3 Requires=host-gpio.service 4 After=host-gpio.service 5 Conflicts=obmc-chassis-power-on@0.target 10 ExecStart=/usr/bin/env poweroff.sh 11 SyslogIdentifier=poweroff.sh 14 WantedBy=obmc-chassis-power-off@0.target
|
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/host/ |
H A D | ampere-hostctrl.bb | 4 LICENSE = "Apache-2.0" 5 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 8 inherit obmc-phosphor-systemd 13 SRC_URI = "file://ampere-host-shutdown.service \ 15 file://ampere-chassis-poweroff.service \ 16 file://ampere-chassis-poweron.service \ 17 file://ampere-chassis-powercycle.service \ 18 file://ampere-host-shutdown-ack.service \ 19 file://ampere-host-power-cycle.service \ 20 file://ampere-host-reset.service \ [all …]
|
/openbmc/openbmc/meta-facebook/meta-tiogapass/recipes-tiogapass/fb-powerctrl/ |
H A D | fb-powerctrl_0.1.bb | 1 LICENSE = "Apache-2.0" 2 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacd… 4 inherit allarch systemd obmc-phosphor-systemd 10 file://power-util \ 11 file://host-gpio.service \ 12 file://host-poweroff.service \ 13 file://host-poweron.service \ 18 host-gpio.service host-poweron.service \ 19 host-poweroff.service \ 26 install -d ${D}/usr/sbin [all …]
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/state/ |
H A D | phosphor-state-manager_%.bbappend | 4 PACKAGECONFIG:remove = "only-run-apr-on-power-loss" 5 PACKAGECONFIG:append = " host-gpio" 10 obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-on@{}.service \ 11 obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-running@{}.service \ 12 obmc-chassis-poweroff@{}.target.requires/obmc-power-stop@{}.service \ 13 obmc-chassis-poweron@{}.target.requires/obmc-power-start@{}.service \ 18 obmc-chassis-poweron@{}.target.wants/chassis-poweron@{}.service \ 19 obmc-chassis-hard-poweroff@{}.target.wants/chassis-poweroff@{}.service \ 20 obmc-chassis-powercycle@{}.target.wants/chassis-powercycle@{}.service \ 25 obmc-chassis-poweron@{}.target.requires/chassis-poweron@{}.service \ [all …]
|
/openbmc/linux/arch/arm/boot/dts/amlogic/ |
H A D | meson8b-ec100.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 22 stdout-path = "serial0:115200n8"; 30 emmc_pwrseq: emmc-pwrseq { 31 compatible = "mmc-pwrseq-emmc"; 32 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 35 gpio-keys { 36 compatible = "gpio-keys-polled"; [all …]
|
/openbmc/openbmc/meta-google/recipes-google/host-power-ctrl/gpio-host-pwr/ |
H A D | host_poweroff.sh | 8 # http://www.apache.org/licenses/LICENSE-2.0 16 # shellcheck source=meta-google/recipes-google/gpio/gpio-ctrl/lib.sh 17 source /usr/share/gpio-host-pwr/lib.sh || exit 23 if [ -n "$HOST_LED_PWR" ]; then 45 # have to wait this long for poweroff 56 if (( SECONDS - s > 10 )); then 57 echo 'Poweroff timed out, terminating' >&2
|
/openbmc/openbmc/meta-ufispace/meta-ncplite/recipes-phosphor/state/ |
H A D | phosphor-state-manager_%.bbappend | 3 PACKAGECONFIG:append = " host-gpio" 6 file://host-control \ 7 file://chassis-control \ 8 file://ncplite-chassis-poweroff@.service \ 9 file://ncplite-chassis-poweron@.service \ 10 file://ncplite-host-off@.service \ 11 file://ncplite-host-force-reset@.service \ 16 DBUS_PACKAGES:append = "${PN}-ncplite" 17 PACKAGE_BEFORE_PN += "${PN}-ncplite" 18 SYSTEMD_PACKAGES += "${PN}-ncplite" [all …]
|