| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/reset/ |
| D | gpio-restart.txt | 1 Drive a GPIO line that can be used to restart the system from a restart 5 time, the driver will request the given gpio line and install a restart 6 handler. If the optional properties 'open-source' is not found, the GPIO line 8 the restart is initiated. 10 When the system is restarted, the restart handler will be invoked in 11 priority order. The gpio is configured as an output, and driven active, 13 inactive->active edge condition, triggering positive edge triggered 14 reset. After a delay specified by active-delay, the GPIO is set to 15 inactive, thus causing an active->inactive edge, triggering negative edge 16 triggered reset. After a delay specified by inactive-delay, the GPIO [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/reset/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/power/reset/ |
| 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 …]
|
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/power/reset/ |
| 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" 46 This driver supports restart for Axxia SoC. 55 This driver provides restart support for Broadcom Kona chips. 57 Say Y here if you have a Broadcom Kona-based board and you wish 58 to have restart support. 66 This driver provides restart support for Broadcom STB boards. [all …]
|
| 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 …]
|
| 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_AXXIA) += axxia-reset.o 7 obj-$(CONFIG_POWER_RESET_BRCMKONA) += brcm-kona-reset.o 8 obj-$(CONFIG_POWER_RESET_BRCMSTB) += brcmstb-reboot.o 9 obj-$(CONFIG_POWER_RESET_GEMINI_POWEROFF) += gemini-poweroff.o 10 obj-$(CONFIG_POWER_RESET_GPIO) += gpio-poweroff.o [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/arch/riscv/boot/dts/starfive/ |
| 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>;
|
| /kernel/linux/linux-6.6/arch/arm/mach-omap1/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
| 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> 20 #include "ams-delta-fiq.h" 21 #include "board-ams-delta.h" 26 * OMAP1510 GPIO related symbol copied from arch/arm/mach-omap1/gpio15xx.c. 31 /* GPIO register bitmasks */ 78 * r8 - temporary 79 * r9 - the driver buffer [all …]
|
| /kernel/linux/linux-6.6/include/linux/mfd/ |
| 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 …]
|
| /kernel/linux/linux-5.10/include/linux/mfd/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/qcom/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/microchip/ |
| 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 …]
|
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/synaptics/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/powerpc/platforms/embedded6xx/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/can/dev/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/riscv/boot/dts/sifive/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/riscv/boot/dts/sifive/ |
| 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> 13 #address-cells = <2>; 14 #size-cells = <2>; 16 compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000"; 19 stdout-path = "serial0"; [all …]
|