Home
last modified time | relevance | path

Searched +full:nvmem +full:- +full:reboot +full:- +full:mode (Results 1 – 25 of 30) sorted by relevance

12

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/reset/
Dnvmem-reboot-mode.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic NVMEM reboot mode
10 - Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
13 This driver gets the reboot mode magic value from the reboot-mode driver
14 and stores it in the NVMEM cell named "reboot-mode". The bootloader can
19 const: nvmem-reboot-mode
21 nvmem-cells:
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/reset/
Dnvmem-reboot-mode.txt1 NVMEM reboot mode driver
3 This driver gets reboot mode magic value from reboot-mode driver
4 and stores it in a NVMEM cell named "reboot-mode". Then the bootloader
9 - compatible: should be "nvmem-reboot-mode".
10 - nvmem-cells: A phandle to the reboot mode provided by a nvmem device.
11 - nvmem-cell-names: Should be "reboot-mode".
13 The rest of the properties should follow the generic reboot-mode description
14 found in reboot-mode.txt
17 reboot-mode {
18 compatible = "nvmem-reboot-mode";
[all …]
/kernel/linux/linux-6.6/drivers/power/reset/
Dnvmem-reboot-mode.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include <linux/nvmem-consumer.h>
12 #include <linux/reboot-mode.h>
15 struct reboot_mode_driver reboot; member
19 static int nvmem_reboot_mode_write(struct reboot_mode_driver *reboot, in nvmem_reboot_mode_write() argument
25 nvmem_rbm = container_of(reboot, struct nvmem_reboot_mode, reboot); in nvmem_reboot_mode_write()
27 ret = nvmem_cell_write(nvmem_rbm->cell, &magic, sizeof(magic)); in nvmem_reboot_mode_write()
29 dev_err(reboot->dev, "update reboot mode bits failed\n"); in nvmem_reboot_mode_write()
39 nvmem_rbm = devm_kzalloc(&pdev->dev, sizeof(*nvmem_rbm), GFP_KERNEL); in nvmem_reboot_mode_probe()
41 return -ENOMEM; in nvmem_reboot_mode_probe()
[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.
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"
88 bool "GPIO power-off driver"
104 bool "Hisilicon power-off driver"
[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_GEMINI_POWEROFF) += gemini-poweroff.o
[all …]
/kernel/linux/linux-5.10/drivers/power/reset/
Dnvmem-reboot-mode.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include <linux/nvmem-consumer.h>
12 #include <linux/reboot-mode.h>
15 struct reboot_mode_driver reboot; member
19 static int nvmem_reboot_mode_write(struct reboot_mode_driver *reboot, in nvmem_reboot_mode_write() argument
25 nvmem_rbm = container_of(reboot, struct nvmem_reboot_mode, reboot); in nvmem_reboot_mode_write()
27 ret = nvmem_cell_write(nvmem_rbm->cell, &magic, sizeof(magic)); in nvmem_reboot_mode_write()
29 dev_err(reboot->dev, "update reboot mode bits failed\n"); in nvmem_reboot_mode_write()
39 nvmem_rbm = devm_kzalloc(&pdev->dev, sizeof(*nvmem_rbm), GFP_KERNEL); in nvmem_reboot_mode_probe()
41 return -ENOMEM; in nvmem_reboot_mode_probe()
[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.
35 tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
57 Say Y here if you have a Broadcom Kona-based board and you wish
72 bool "Cortina Gemini power-off driver"
81 bool "GPIO power-off driver"
97 bool "Hisilicon power-off driver"
100 Reboot support for Hisilicon boards.
103 tristate "Buffalo LinkStation power-off driver"
[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_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/arch/arm64/boot/dts/qcom/
Dpmk8550.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
12 reboot-mode {
13 compatible = "nvmem-reboot-mode";
14 nvmem-cells = <&reboot_reason>;
15 nvmem-cell-names = "reboot-mode";
16 mode-recovery = <0x01>;
[all …]
Dpmk8350.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
17 reboot-mode {
18 compatible = "nvmem-reboot-mode";
19 nvmem-cells = <&reboot_reason>;
20 nvmem-cell-names = "reboot-mode";
21 mode-recovery = <0x01>;
[all …]
Dsa8775p-pmics.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/spmi/spmi.h>
10 thermal-zones {
11 pmm8654au_0_thermal: pm8775-0-thermal {
12 polling-delay-passive = <100>;
13 polling-delay = <0>;
14 thermal-sensors = <&pmm8654au_0_temp_alarm>;
31 pmm8654au_1_thermal: pm8775-1-thermal {
32 polling-delay-passive = <100>;
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
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 …]
Dqcom-msm8974.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/interconnect/qcom,msm8974.h>
5 #include <dt-bindings/interrupt-controller/arm-gic.h>
6 #include <dt-bindings/clock/qcom,gcc-msm8974.h>
7 #include <dt-bindings/clock/qcom,mmcc-msm8974.h>
8 #include <dt-bindings/clock/qcom,rpmcc.h>
9 #include <dt-bindings/reset/qcom,gcc-msm8974.h>
10 #include <dt-bindings/gpio/gpio.h>
13 #address-cells = <1>;
[all …]
/kernel/linux/linux-6.6/drivers/mtd/
Dmtdcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org>
24 #include <linux/backing-dev.h>
28 #include <linux/reboot.h>
31 #include <linux/nvmem-provider.h>
94 dev_t index = MTD_DEVT(mtd->index); in mtd_release()
96 idr_remove(&mtd_idr, mtd->index); in mtd_release()
111 debugfs_remove_recursive(mtd->dbg.dfs_dir); in mtd_device_release()
113 /* Try to remove the NVMEM provider */ in mtd_device_release()
114 nvmem_unregister(mtd->nvmem); in mtd_device_release()
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/qcom/
Dqcom-msm8226.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/clock/qcom,gcc-msm8974.h>
10 #include <dt-bindings/clock/qcom,mmcc-msm8974.h>
11 #include <dt-bindings/clock/qcom,rpmcc.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/power/qcom-rpmpd.h>
14 #include <dt-bindings/reset/qcom,gcc-msm8974.h>
17 #address-cells = <1>;
[all …]
Dqcom-msm8974.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/interconnect/qcom,msm8974.h>
5 #include <dt-bindings/interrupt-controller/arm-gic.h>
6 #include <dt-bindings/clock/qcom,gcc-msm8974.h>
7 #include <dt-bindings/clock/qcom,mmcc-msm8974.h>
8 #include <dt-bindings/clock/qcom,rpmcc.h>
9 #include <dt-bindings/reset/qcom,gcc-msm8974.h>
10 #include <dt-bindings/gpio/gpio.h>
13 #address-cells = <1>;
[all …]
/kernel/linux/linux-5.10/drivers/watchdog/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
16 on-line as fast as possible after a lock-up. There's both a watchdog
18 reboot the machine) and a driver for hardware watchdog boards, which
21 <file:Documentation/watchdog/watchdog-api.rst> in the kernel source.
26 also monitor NFS connections and can reboot the machine when the process
51 bool "Update boot-enabled watchdog until userspace takes over"
59 enough your device will reboot.
130 a watchdog feeder is dead and reboot is unavoidable.
148 A software monitoring watchdog. This will fail to reboot your system
218 tristate "Watchdog device controlled through GPIO-line"
[all …]
/kernel/linux/linux-6.6/drivers/watchdog/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
16 on-line as fast as possible after a lock-up. There's both a watchdog
18 reboot the machine) and a driver for hardware watchdog boards, which
21 <file:Documentation/watchdog/watchdog-api.rst> in the kernel source.
26 can also monitor NFS connections and can reboot the machine when the
51 bool "Update boot-enabled watchdog until userspace takes over"
59 enough your device will reboot.
77 bool "Enable watchdog hrtimer-based pretimeouts"
138 a watchdog feeder is dead and reboot is unavoidable.
156 A software monitoring watchdog. This will fail to reboot your system
[all …]
/kernel/linux/linux-6.6/include/linux/mtd/
Dmtd.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> et al.
15 #include <linux/nvmem-provider.h>
17 #include <mtd/mtd-abi.h>
21 #define MTD_FAIL_ADDR_UNKNOWN -1LL
50 * struct mtd_oob_ops - oob operation operands
51 * @mode: operation mode
60 * mode = MTD_OPS_PLACE_OOB or MTD_OPS_RAW)
61 * @datbuf: data buffer - if NULL only oob data are read/written
65 * one go. If you try to do that on such an MTD device, -EINVAL will be
[all …]
/kernel/linux/linux-5.10/include/linux/mtd/
Dmtd.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> et al.
15 #include <linux/nvmem-provider.h>
17 #include <mtd/mtd-abi.h>
21 #define MTD_FAIL_ADDR_UNKNOWN -1LL
44 * struct mtd_oob_ops - oob operation operands
45 * @mode: operation mode
54 * mode = MTD_OPS_PLACE_OOB or MTD_OPS_RAW)
55 * @datbuf: data buffer - if NULL only oob data are read/written
59 * one go. If you try to do that on such an MTD device, -EINVAL will be
[all …]
/kernel/linux/linux-5.10/drivers/mtd/
Dmtdcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org>
24 #include <linux/backing-dev.h>
27 #include <linux/reboot.h>
30 #include <linux/nvmem-provider.h>
103 mtd_table_mutex_owner->comm, current->comm); in mtd_table_mutex_unlock()
106 if (--mtd_table_mutex_depth == 0) { in mtd_table_mutex_unlock()
117 mtd_table_mutex_owner->comm, current->comm); in mtd_table_assert_mutex_locked()
128 dev_t index = MTD_DEVT(mtd->index); in mtd_release()
140 switch (mtd->type) { in mtd_type_show()
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0033_linux_drivers_soc_scsi_spi_tee_thermal.patch7 Change-Id: I1ba947d26a24ae6708961a663867e136c1171c8d
9 diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
11 --- a/drivers/scsi/scsi_error.c
13 @@ -63,6 +63,13 @@ static int scsi_eh_try_stu(struct scsi_cmnd *scmd);
23 +/* called with shost->host_lock held */
26 lockdep_assert_held(shost->host_lock);
27 @@ -72,6 +79,11 @@ void scsi_eh_wakeup(struct Scsi_Host *shost)
28 wake_up_process(shost->ehandler);
31 + } else if ((shost->host_failed > 0) || (sg_io_buffer_hack != NULL)) {
33 + wake_up_process(shost->ehandler);
[all …]
/kernel/linux/linux-6.6/arch/arm64/boot/dts/rockchip/
Drk3328.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/clock/rk3328-cru.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/power/rk3328-power.h>
12 #include <dt-bindings/soc/rockchip,boot-mode.h>
13 #include <dt-bindings/thermal/thermal.h>
18 interrupt-parent = <&gic>;
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/rockchip/
Drk3328.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/clock/rk3328-cru.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/power/rk3328-power.h>
12 #include <dt-bindings/soc/rockchip,boot-mode.h>
13 #include <dt-bindings/thermal/thermal.h>
18 interrupt-parent = <&gic>;
[all …]

12