/Linux-v6.1/Documentation/devicetree/bindings/power/reset/ |
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 …]
|
/Linux-v6.1/drivers/power/reset/ |
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 …]
|
D | gpio-poweroff.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Toggles a GPIO pin to power down a device 14 #include <linux/gpio/consumer.h> 32 /* drive it active, also inactive->active edge */ in gpio_poweroff_do_poweroff() 36 /* drive inactive, also active->inactive edge */ in gpio_poweroff_do_poweroff() 40 /* drive it active, also inactive->active edge */ in gpio_poweroff_do_poweroff() 56 dev_err(&pdev->dev, in gpio_poweroff_probe() 59 return -EBUSY; in gpio_poweroff_probe() 62 input = device_property_read_bool(&pdev->dev, "input"); in gpio_poweroff_probe() 68 device_property_read_u32(&pdev->dev, "active-delay-ms", &active_delay); in gpio_poweroff_probe() [all …]
|
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 …]
|
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"); 83 MODULE_ALIAS("platform:poweroff-regulator");
|
/Linux-v6.1/arch/arm/boot/dts/ |
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 …]
|
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 …]
|
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 …]
|
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 …]
|
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"; 15 /delete-node/ led-act; 17 led-pwr { 18 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; 22 gpio-poweroff { 23 compatible = "gpio-poweroff"; 29 gpio-line-names = "BT_ON", [all …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
D | armada-370-c200-v2.dts | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Device Tree file for Ctera C200-V2 8 /dts-v1/; 10 #include "armada-370.dtsi" 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/leds/common.h> 18 compatible = "ctera,c200-v2", "marvell,armada370", "marvell,armada-370-xp"; 22 stdout-path = "serial0:115200n8"; [all …]
|
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 …]
|
D | kirkwood-netxbig.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 9 * Based on netxbig_v2-setup.c, 14 #include <dt-bindings/leds/leds-netxbig.h> 16 #include "kirkwood-6281.dtsi" 21 stdout-path = &uart0; 33 #address-cells = <1>; 34 #size-cells = <1>; 35 compatible = "mxicy,mx25l4005a", "jedec,spi-nor"; 37 spi-max-frequency = <20000000>; 42 label = "u-boot"; [all …]
|
D | intel-ixp42x-dlink-dsm-g600.dts | 1 // SPDX-License-Identifier: ISC 3 * Device Tree file for D-Link DSM-G600 revision A based on IXP420 11 /dts-v1/; 13 #include "intel-ixp42x.dtsi" 14 #include <dt-bindings/input/input.h> 17 model = "D-Link DSM-G600 rev A"; 18 compatible = "dlink,dsm-g600-a", "intel,ixp42x"; 19 #address-cells = <1>; 20 #size-cells = <1>; 30 stdout-path = "uart0:115200n8"; [all …]
|
D | intel-ixp42x-iomega-nas100d.dts | 1 // SPDX-License-Identifier: ISC 6 /dts-v1/; 8 #include "intel-ixp42x.dtsi" 9 #include <dt-bindings/input/input.h> 13 compatible = "iom,nas-100d", "intel,ixp42x"; 14 #address-cells = <1>; 15 #size-cells = <1>; 25 stdout-path = "uart0:115200n8"; 33 compatible = "gpio-leds"; 34 led-wlan { [all …]
|
D | pxa300-raumfeld-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 10 hw-revision = <0>; 14 stdout-path = &ffuart; 22 reg_3v3: regulator-3v3 { 23 compatible = "regulator-fixed"; 24 regulator-name = "3v3-fixed-supply"; 25 regulator-min-microvolt = <3300000>; [all …]
|
D | dra71-evm.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/ 7 #include "dra7-mmc-iodelay.dtsi" 8 #include "dra72x-mmc-iodelay.dtsi" 9 #include <dt-bindings/net/ti-dp83867.h> 12 compatible = "ti,dra718-evm", "ti,dra718", "ti,dra722", "ti,dra72", "ti,dra7"; 20 reserved-memory { 21 #address-cells = <2>; 22 #size-cells = <2>; 25 ipu2_memory_region: ipu2-memory@95800000 { [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/apm/ |
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 …]
|
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 …]
|
/Linux-v6.1/arch/arm/mach-orion5x/ |
D | dns323-setup.c | 2 * arch/arm/mach-orion5x/dns323-setup.c 16 #include <linux/gpio.h> 32 #include <asm/mach-types.h> 36 #include <plat/orion-gpio.h> 79 * Check for devices with hard-wired IRQs. in dns323_pci_map_irq() 82 if (irq != -1) in dns323_pci_map_irq() 85 return -1; in dns323_pci_map_irq() 111 * Layout as used by D-Link: 112 * 0x00000000-0x00010000 : "MTD1" 113 * 0x00010000-0x00020000 : "MTD2" [all …]
|
/Linux-v6.1/Documentation/driver-api/gpio/ |
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 …]
|