Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:poweroff (Results 1 – 25 of 116) sorted by relevance

12345

/linux/Documentation/devicetree/bindings/power/reset/
H A Dgpio-poweroff.yaml1 # 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/drivers/power/reset/
H A DMakefile1 # 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_EP93XX) += ep93xx-restart.o
[all …]
H A Dgpio-poweroff.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Toggles a GPIO pin to power down a device
15 #include <linux/gpio/consumer.h>
31 struct gpio_poweroff *gpio_poweroff = data->cb_data; in gpio_poweroff_do_poweroff()
33 /* drive it active, also inactive->active edge */ in gpio_poweroff_do_poweroff()
34 gpiod_direction_output(gpio_poweroff->reset_gpio, 1); in gpio_poweroff_do_poweroff()
35 mdelay(gpio_poweroff->active_delay_m in gpio_poweroff_do_poweroff()
[all...]
H A Dregulator-poweroff.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Force-disables a regulator to power down a device
9 * Based on the gpio-poweroff driver.
23 struct regulator *cpu_regulator = data->cb_data; in regulator_poweroff_do_poweroff()
40 cpu_regulator = devm_regulator_get(&pdev->dev, "cpu"); in regulator_poweroff_probe()
45 return devm_register_sys_off_handler(&pdev->dev, in regulator_poweroff_probe()
53 { .compatible = "regulator-poweroff", },
61 .name = "poweroff-regulator",
69 MODULE_DESCRIPTION("Regulator poweroff driver");
70 MODULE_ALIAS("platform:poweroff-regulator");
/linux/arch/arm/boot/dts/marvell/
H A Darmada-370-netgear-rn102.dts1 // 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 Darmada-370-netgear-rn104.dts1 // 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 Darmada-xp-netgear-rn2120.dts1 // 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 Darmada-xp-lenovo-ix4-300d.dts1 // 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 Dkirkwood-netgear_readynas_duo_v2.dts1 // 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 Dkirkwood-netgear_readynas_nv+_v2.dts1 // 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 Dkirkwood-c200-v1.dts1 // 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 …]
H A Darmada-370-c200-v2.dts1 // 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 …]
H A Dkirkwood-iomega_ix2_200.dts1 // 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 Dkirkwood-netxbig.dtsi1 // 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 …]
/linux/arch/arm64/boot/dts/apm/
H A Dapm-mustang.dts1 // 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>;
35 compatible = "apm,mustang-poweroff-mailbox", "syscon";
[all …]
H A Dapm-merlin.dts1 // 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>;
35 compatible = "apm,merlin-poweroff-mailbox", "syscon";
[all …]
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm2711-rpi-400.dts1 // 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>;
33 /delete-node/ leds;
37 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
[all …]
/linux/drivers/gpu/drm/panel/
H A Dpanel-jdi-lpm102a188a.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/gpio/consumer.h>
62 unsigned int refresh = drm_mode_vrefresh(jdi->mode); in jdi_wait_frames()
74 backlight_disable(jdi->backlight); in jdi_panel_disable()
86 ret = mipi_dsi_dcs_set_display_off(jdi->link1); in jdi_panel_unprepare()
88 dev_err(panel->dev, "failed to set display off: %d\n", ret); in jdi_panel_unprepare()
90 ret = mipi_dsi_dcs_set_display_off(jdi->link2); in jdi_panel_unprepare()
92 dev_err(panel->dev, "failed to set display off: %d\n", ret); in jdi_panel_unprepare()
97 ret = mipi_dsi_dcs_enter_sleep_mode(jdi->link1); in jdi_panel_unprepare()
99 dev_err(panel->dev, "failed to enter sleep mode: %d\n", ret); in jdi_panel_unprepare()
[all …]
/linux/arch/arm/boot/dts/amlogic/
H A Dmeson8b-ec100.dts1 // 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 …]
/linux/arch/arm/mach-orion5x/
H A Ddns323-setup.c2 * arch/arm/mach-orion5x/dns323-setup.c
16 #include <linux/gpio.h>
17 #include <linux/gpio/machine.h>
33 #include <asm/mach-types.h>
37 #include <plat/orion-gpio.h>
80 * Check for devices with hard-wired IRQs. in dns323_pci_map_irq()
83 if (irq != -1) in dns323_pci_map_irq()
86 return -1; in dns323_pci_map_irq()
112 * Layout as used by D-Link:
113 * 0x00000000-0x00010000 : "MTD1"
[all …]
/linux/arch/arm/boot/dts/intel/ixp/
H A Dintel-ixp42x-dlink-dsm-g600.dts1 // 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 …]
H A Dintel-ixp42x-iomega-nas100d.dts1 // 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 …]
/linux/arch/arm/boot/dts/intel/pxa/
H A Dpxa300-raumfeld-common.dtsi1 // 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 …]
/linux/arch/arm/boot/dts/ti/omap/
H A Dmotorola-mapphone-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
2 /dts-v1/;
4 #include <dt-bindings/input/input.h>
6 #include "motorola-cpcap-mapphone.dtsi"
10 * We seem to have only 1021 MB accessible, 1021 - 1022 is locked,
11 * then 1023 - 1024 seems to contain mbm.
18 /* Poweroff GPIO probably connected to CPCAP */
19 gpio-poweroff {
20 compatible = "gpio-poweroff";
21 pinctrl-0 = <&poweroff_gpio>;
[all …]
H A Domap3-ha-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
7 #include "omap3-tao3530.dtsi"
11 pinctrl-names = "default";
12 pinctrl-0 = <&poweroff_pins>;
14 compatible = "gpio-poweroff";
15 gpios = <&gpio6 8 GPIO_ACTIVE_LOW>; /* GPIO 168 */
20 sound2_pins: sound2-pins {
21 pinctrl-single,pins = <
26 led_blue_pins: led-blue-pins {
[all …]

12345