Home
last modified time | relevance | path

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

12345

/linux-6.12.1/drivers/power/reset/
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.
17 #include <linux/regulator/consumer.h>
23 struct regulator *cpu_regulator = data->cb_data; in regulator_poweroff_do_poweroff()
38 struct regulator *cpu_regulator; in regulator_poweroff_probe()
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",
[all …]
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 …]
DKconfig1 # 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
89 bool "Cortina Gemini power-off driver"
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/power/reset/
Dregulator-poweroff.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/power/reset/regulator-poweroff.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Force-disable power regulator to turn the power off.
10 - Michael Klein <michael@fossekall.de>
13 When the power-off handler is called, a power regulator is disabled by
19 const: regulator-poweroff
21 cpu-supply:
23 regulator to disable on power-down
[all …]
/linux-6.12.1/drivers/gpu/drm/panel/
Dpanel-jdi-lpm102a188a.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/regulator/consumer.h>
45 struct regulator *supply;
46 struct regulator *ddi_supply;
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()
[all …]
Dpanel-sharp-lq101r1sx01.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/regulator/consumer.h>
21 /* the datasheet refers to them as DSI-LINK1 and DSI-LINK2 */
25 struct regulator *supply;
37 unsigned int refresh = drm_mode_vrefresh(sharp->mode); in sharp_wait_frames()
48 struct mipi_dsi_device *dsi = sharp->link1; in sharp_panel_write()
53 dev_err(&dsi->dev, "failed to write %02x to %04x: %zd\n", in sharp_panel_write()
60 dev_err(&dsi->dev, "failed to send DCS nop: %zd\n", err); in sharp_panel_write()
76 err = mipi_dsi_generic_read(sharp->link1, &offset, sizeof(offset), in sharp_panel_read()
79 dev_err(&sharp->link1->dev, "failed to read from %04x: %zd\n", in sharp_panel_read()
[all …]
Dpanel-kingdisplay-kd097d04.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include <linux/regulator/consumer.h>
24 struct regulator *supply;
185 err = mipi_dsi_dcs_set_display_off(kingdisplay->link); in kingdisplay_panel_disable()
187 dev_err(panel->dev, "failed to set display off: %d\n", err); in kingdisplay_panel_disable()
197 err = mipi_dsi_dcs_enter_sleep_mode(kingdisplay->link); in kingdisplay_panel_unprepare()
199 dev_err(panel->dev, "failed to enter sleep mode: %d\n", err); in kingdisplay_panel_unprepare()
206 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); in kingdisplay_panel_unprepare()
208 err = regulator_disable(kingdisplay->supply); in kingdisplay_panel_unprepare()
221 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); in kingdisplay_panel_prepare()
[all …]
Dpanel-panasonic-vvx10f034n00.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/regulator/consumer.h>
33 struct regulator *supply;
47 return mipi_dsi_turn_on_peripheral(wuxga_nt->dsi); in wuxga_nt_panel_on()
54 return mipi_dsi_shutdown_peripheral(wuxga_nt->dsi); in wuxga_nt_panel_disable()
61 regulator_disable(wuxga_nt->supply); in wuxga_nt_panel_unprepare()
62 wuxga_nt->earliest_wake = ktime_add_ms(ktime_get_real(), MIN_POFF_MS); in wuxga_nt_panel_unprepare()
74 * If the user re-enabled the panel before the required off-time then in wuxga_nt_panel_prepare()
75 * we need to wait the remaining period before re-enabling regulator in wuxga_nt_panel_prepare()
77 enablewait = ktime_ms_delta(wuxga_nt->earliest_wake, ktime_get_real()); in wuxga_nt_panel_prepare()
[all …]
Dpanel-sharp-ls043t1le01.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/regulator/consumer.h>
27 struct regulator *supply;
38 struct mipi_dsi_device *dsi = sharp_nt->dsi; in sharp_nt_panel_init()
41 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sharp_nt_panel_init()
49 /* Novatek two-lane operation */ in sharp_nt_panel_init()
65 struct mipi_dsi_device *dsi = sharp_nt->dsi; in sharp_nt_panel_on()
68 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sharp_nt_panel_on()
79 struct mipi_dsi_device *dsi = sharp_nt->dsi; in sharp_nt_panel_off()
82 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in sharp_nt_panel_off()
[all …]
/linux-6.12.1/arch/arm/boot/dts/amlogic/
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-6.12.1/arch/arm/boot/dts/marvell/
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 {
34 pmx_button_backup: pmx-button-backup {
39 pmx_button_reset: pmx-button-reset {
44 pmx_led_blue_power: pmx-led-blue-power {
[all …]
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 {
34 pmx_button_backup: pmx-button-backup {
39 pmx_button_reset: pmx-button-reset {
44 pmx_led_blue_power: pmx-led-blue-power {
[all …]
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 …]
Darmada-385-synology-ds116.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
8 /dts-v1/;
9 #include "armada-385.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
14 compatible = "marvell,a385-gp", "marvell,armada385", "marvell,armada380";
17 stdout-path = "serial0:115200n8";
32 internal-regs {
34 pinctrl-names = "default";
35 pinctrl-0 = <&i2c0_pins>;
37 clock-frequency = <100000>;
[all …]
/linux-6.12.1/arch/arm/boot/dts/ti/omap/
Ddra71-evm.dts1 // 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 …]
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 …]
/linux-6.12.1/arch/arm/boot/dts/intel/pxa/
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-6.12.1/arch/riscv/boot/dts/sifive/
Dhifive-unmatched-a00.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 #include "fu740-c000.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pwm/pwm.h>
15 compatible = "sifive,hifive-unmatched-a00", "sifive,fu740-c000",
19 stdout-path = "serial0";
23 timebase-frequency = <RTCCLK_FREQ>;
32 #clock-cells = <0>;
[all …]
/linux-6.12.1/arch/arm/boot/dts/nxp/imx/
Dimx6ull-uti260b.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 // Copyright (C) 2022-2024 Sebastian Reichel <sre@kernel.org>
4 /dts-v1/;
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/clock/imx6ul-clock.h>
9 #include <dt-bindings/leds/common.h>
12 model = "UNI-T UTi260B Thermal Camera";
13 compatible = "uni-t,uti260b", "fsl,imx6ull";
16 stdout-path = "serial0:115200n8";
[all …]
Dimx6dl-b1x5pv2.dtsi1 // SPDX-License-Identifier: GPL-2.0 OR MIT
6 // Copyright 2018-2021 General Electric Company
7 // Copyright 2018-2021 Collabora
9 #include <dt-bindings/input/input.h>
10 #include "imx6dl-qmx6.dtsi"
14 stdout-path = &uart3;
20 operating-points = <
25 fsl,soc-operating-points = <
26 /* ARM kHz SOC-PU uV */
33 operating-points = <
[all …]
Dimx6qdl-udoo.dtsi1 // SPDX-License-Identifier: GPL-2.0
8 #include <dt-bindings/gpio/gpio.h>
19 stdout-path = &uart2;
23 compatible = "gpio-backlight";
25 default-on;
29 gpio-poweroff {
30 compatible = "gpio-poweroff";
32 pinctrl-0 = <&pinctrl_power_off>;
33 pinctrl-names = "default";
43 * in reality it is a -20t (parallel) model,
[all …]
/linux-6.12.1/arch/arm/boot/dts/allwinner/
Dsun8i-h2-plus-bananapi-m2-zero.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 * Based on sun8i-h3-bananapi-m2-plus.dts, which is:
6 * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org>
9 /dts-v1/;
10 #include "sun8i-h3.dtsi"
11 #include "sunxi-common-regulators.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
17 model = "Banana Pi BPI-M2-Zero";
18 compatible = "sinovoip,bpi-m2-zero", "allwinner,sun8i-h2-plus";
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/mfd/
Dmt6397.txt4 - Regulator
5 - RTC
6 - Audio codec
7 - GPIO
8 - Clock
9 - LED
10 - Keys
11 - Power controller
32 - rtc
34 - compatible: "mediatek,mt6323-rtc"
[all …]
/linux-6.12.1/Documentation/driver-api/gpio/
Ddrivers-on-gpio.rst6 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,
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
24 - gpio_mouse: drivers/input/mouse/gpio_mouse.c is used to provide a mouse with
29 - gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from
31 off/on, for an actual PWM waveform, see pwm-gpio below.)
33 - pwm-gpio: drivers/pwm/pwm-gpio.c is used to toggle a GPIO with a high
[all …]
/linux-6.12.1/arch/arm/boot/dts/ti/davinci/
Dda850-lego-ev3.dts1 // SPDX-License-Identifier: GPL-2.0-only
8 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/linux-event-codes.h>
11 #include <dt-bindings/pwm/pwm.h>
32 compatible = "gpio-keys";
34 pinctrl-names = "default";
35 pinctrl-0 = <&button_bias>;
75 * The EV3 has two built-in bi-color LEDs behind the buttons.
78 compatible = "gpio-leds";
[all …]

12345