Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/reset/
Dsyscon-reboot-mode.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot-mode.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic SYSCON reboot mode driver
10 - Sebastian Reichel <sre@kernel.org>
13 This driver gets reboot mode magic value from reboot-mode driver
14 and stores it in a SYSCON mapped register. Then the bootloader
16 value stored. The SYSCON mapped register is retrieved from the
17 parental dt-node plus the offset. So the SYSCON reboot-mode node
[all …]
Dsyscon-reboot.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic SYSCON mapped register reset driver
10 - Sebastian Reichel <sre@kernel.org>
13 This is a generic reset driver using syscon to map the reset register.
15 defined by the SYSCON register map base plus the offset with the value and
16 mask defined in the reboot node. Default will be little endian mode, 32 bit
17 access only. The SYSCON registers map is normally retrieved from the
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/reset/
Dsyscon-reboot-mode.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot-mode.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic SYSCON reboot mode driver
10 - Sebastian Reichel <sre@kernel.org>
13 This driver gets reboot mode magic value from reboot-mode driver
14 and stores it in a SYSCON mapped register. Then the bootloader
16 value stored. The SYSCON mapped register is retrieved from the
17 parental dt-node plus the offset. So the SYSCON reboot-mode node
[all …]
Dsyscon-reboot.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic SYSCON mapped register reset driver
10 - Sebastian Reichel <sre@kernel.org>
13 This is a generic reset driver using syscon to map the reset register.
15 defined by the SYSCON register map base plus the offset with the value and
16 mask defined in the reboot node. Default will be little endian mode, 32 bit
17 access only. The SYSCON registers map is normally retrieved from the
[all …]
/kernel/linux/linux-6.6/drivers/power/reset/
Dsyscon-reboot-mode.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/reboot.h>
13 #include <linux/mfd/syscon.h>
14 #include <linux/reboot-mode.h>
18 struct reboot_mode_driver reboot; member
23 static int syscon_reboot_mode_write(struct reboot_mode_driver *reboot, in syscon_reboot_mode_write() argument
29 syscon_rbm = container_of(reboot, struct syscon_reboot_mode, reboot); in syscon_reboot_mode_write()
31 ret = regmap_update_bits(syscon_rbm->map, syscon_rbm->offset, in syscon_reboot_mode_write()
32 syscon_rbm->mask, magic); in syscon_reboot_mode_write()
34 dev_err(reboot->dev, "update reboot mode bits failed\n"); in syscon_reboot_mode_write()
[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 …]
Dsyscon-reboot.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Generic Syscon Reboot Driver
11 #include <linux/mfd/syscon.h>
14 #include <linux/reboot.h>
26 unsigned long mode, void *cmd) in syscon_restart_handle() argument
32 /* Issue the reboot */ in syscon_restart_handle()
33 regmap_update_bits(ctx->map, ctx->offset, ctx->mask, ctx->value); in syscon_restart_handle()
44 struct device *dev = &pdev->dev; in syscon_reboot_probe()
49 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); in syscon_reboot_probe()
51 return -ENOMEM; in syscon_reboot_probe()
[all …]
Dbrcmstb-reboot.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <linux/reboot.h>
19 #include <linux/mfd/syscon.h>
36 unsigned long mode, void *cmd) in brcmstb_restart_handler() argument
41 rc = regmap_write(regmap, rst_src_en, reset_masks->rst_src_en_mask); in brcmstb_restart_handler()
53 rc = regmap_write(regmap, sw_mstr_rst, reset_masks->sw_mstr_rst_mask); in brcmstb_restart_handler()
84 { .compatible = "brcm,brcmstb-reboot", .data = &reset_bits_40nm },
85 { .compatible = "brcm,bcm7038-reboot", .data = &reset_bits_65nm },
92 struct device_node *np = pdev->dev.of_node; in brcmstb_reboot_probe()
98 return -EINVAL; in brcmstb_reboot_probe()
[all …]
Darm-versatile-reboot.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/mfd/syscon.h>
9 #include <linux/reboot.h>
24 * We detect the different syscon types from the compatible strings.
42 .compatible = "arm,core-module-integrator",
46 .compatible = "arm,core-module-versatile",
50 .compatible = "arm,realview-eb-syscon",
54 .compatible = "arm,realview-pb1176-syscon",
58 .compatible = "arm,realview-pb11mp-syscon",
62 .compatible = "arm,realview-pba8-syscon",
[all …]
Daxxia-reset.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/mfd/syscon.h>
16 #include <linux/reboot.h>
29 static struct regmap *syscon; variable
32 unsigned long mode, void *cmd) in axxia_restart_handler() argument
35 regmap_write(syscon, SC_CRIT_WRITE_KEY, 0xab); in axxia_restart_handler()
37 regmap_write(syscon, SC_LATCH_ON_RESET, 0x00000040); in axxia_restart_handler()
39 regmap_write(syscon, SC_EFUSE_INT_STATUS, EFUSE_READ_DONE); in axxia_restart_handler()
41 regmap_update_bits(syscon, SC_RESET_CONTROL, in axxia_restart_handler()
54 struct device *dev = &pdev->dev; in axxia_reset_probe()
[all …]
Dkeystone-reset.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI keystone reboot driver
14 #include <linux/reboot.h>
16 #include <linux/mfd/syscon.h>
43 * rsctrl_enable_rspll_write - enable access to RSCTRL, RSCFG
54 unsigned long mode, void *cmd) in rsctrl_restart_handler() argument
72 {.compatible = "ti,keystone-reset", },
85 struct device *dev = &pdev->dev; in rsctrl_probe()
86 struct device_node *np = dev->of_node; in rsctrl_probe()
89 return -ENODEV; in rsctrl_probe()
[all …]
Docelot-reset.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
12 #include <linux/mfd/syscon.h>
15 #include <linux/reboot.h>
19 const char *syscon; member
43 unsigned long mode, void *cmd) in ocelot_restart_handle() argument
48 u32 if_si_owner_bit = ctx->props->if_si_owner_bit; in ocelot_restart_handle()
51 regmap_update_bits(ctx->cpu_ctrl, ctx->props->protect_reg, in ocelot_restart_handle()
52 ctx->props->vcore_protect, 0); in ocelot_restart_handle()
54 /* Make the SI back to boot mode */ in ocelot_restart_handle()
56 regmap_update_bits(ctx->cpu_ctrl, in ocelot_restart_handle()
[all …]
/kernel/linux/linux-5.10/drivers/power/reset/
Dsyscon-reboot-mode.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/reboot.h>
13 #include <linux/mfd/syscon.h>
14 #include <linux/reboot-mode.h>
18 struct reboot_mode_driver reboot; member
23 static int syscon_reboot_mode_write(struct reboot_mode_driver *reboot, in syscon_reboot_mode_write() argument
29 syscon_rbm = container_of(reboot, struct syscon_reboot_mode, reboot); in syscon_reboot_mode_write()
31 ret = regmap_update_bits(syscon_rbm->map, syscon_rbm->offset, in syscon_reboot_mode_write()
32 syscon_rbm->mask, magic); in syscon_reboot_mode_write()
34 dev_err(reboot->dev, "update reboot mode bits failed\n"); in syscon_reboot_mode_write()
[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 …]
Dsyscon-reboot.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Generic Syscon Reboot Driver
11 #include <linux/mfd/syscon.h>
15 #include <linux/reboot.h>
27 unsigned long mode, void *cmd) in syscon_restart_handle() argument
33 /* Issue the reboot */ in syscon_restart_handle()
34 regmap_update_bits(ctx->map, ctx->offset, ctx->mask, ctx->value); in syscon_restart_handle()
45 struct device *dev = &pdev->dev; in syscon_reboot_probe()
49 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); in syscon_reboot_probe()
51 return -ENOMEM; in syscon_reboot_probe()
[all …]
Dbrcmstb-reboot.c26 #include <linux/reboot.h>
29 #include <linux/mfd/syscon.h>
46 unsigned long mode, void *cmd) in brcmstb_restart_handler() argument
51 rc = regmap_write(regmap, rst_src_en, reset_masks->rst_src_en_mask); in brcmstb_restart_handler()
63 rc = regmap_write(regmap, sw_mstr_rst, reset_masks->sw_mstr_rst_mask); in brcmstb_restart_handler()
97 { .compatible = "brcm,brcmstb-reboot", .data = &reset_bits_40nm },
98 { .compatible = "brcm,bcm7038-reboot", .data = &reset_bits_65nm },
105 struct device_node *np = pdev->dev.of_node; in brcmstb_reboot_probe()
111 return -EINVAL; in brcmstb_reboot_probe()
113 reset_masks = of_id->data; in brcmstb_reboot_probe()
[all …]
Darm-versatile-reboot.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/mfd/syscon.h>
9 #include <linux/reboot.h>
24 * We detect the different syscon types from the compatible strings.
42 .compatible = "arm,core-module-integrator",
46 .compatible = "arm,core-module-versatile",
50 .compatible = "arm,realview-eb-syscon",
54 .compatible = "arm,realview-pb1176-syscon",
58 .compatible = "arm,realview-pb11mp-syscon",
62 .compatible = "arm,realview-pba8-syscon",
[all …]
Daxxia-reset.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/mfd/syscon.h>
16 #include <linux/reboot.h>
29 static struct regmap *syscon; variable
32 unsigned long mode, void *cmd) in axxia_restart_handler() argument
35 regmap_write(syscon, SC_CRIT_WRITE_KEY, 0xab); in axxia_restart_handler()
37 regmap_write(syscon, SC_LATCH_ON_RESET, 0x00000040); in axxia_restart_handler()
39 regmap_write(syscon, SC_EFUSE_INT_STATUS, EFUSE_READ_DONE); in axxia_restart_handler()
41 regmap_update_bits(syscon, SC_RESET_CONTROL, in axxia_restart_handler()
54 struct device *dev = &pdev->dev; in axxia_reset_probe()
[all …]
Dkeystone-reset.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI keystone reboot driver
13 #include <linux/reboot.h>
15 #include <linux/mfd/syscon.h>
42 * rsctrl_enable_rspll_write - enable access to RSCTRL, RSCFG
53 unsigned long mode, void *cmd) in rsctrl_restart_handler() argument
71 {.compatible = "ti,keystone-reset", },
83 struct device *dev = &pdev->dev; in rsctrl_probe()
84 struct device_node *np = dev->of_node; in rsctrl_probe()
87 return -ENODEV; in rsctrl_probe()
[all …]
Docelot-reset.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
11 #include <linux/mfd/syscon.h>
15 #include <linux/reboot.h>
19 const char *syscon; member
41 unsigned long mode, void *cmd) in ocelot_restart_handle() argument
46 u32 if_si_owner_bit = ctx->props->if_si_owner_bit; in ocelot_restart_handle()
49 regmap_update_bits(ctx->cpu_ctrl, ctx->props->protect_reg, in ocelot_restart_handle()
50 ctx->props->vcore_protect, 0); in ocelot_restart_handle()
52 /* Make the SI back to boot mode */ in ocelot_restart_handle()
53 regmap_update_bits(ctx->cpu_ctrl, ICPU_CFG_CPU_SYSTEM_CTRL_GENERAL_CTRL, in ocelot_restart_handle()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/soc/samsung/
Dexynos-pmu.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/soc/samsung/exynos-pmu.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Krzysztof Kozlowski <krzk@kernel.org>
12 # Custom select to avoid matching all nodes with 'syscon'
18 - samsung,exynos3250-pmu
19 - samsung,exynos4210-pmu
20 - samsung,exynos4212-pmu
21 - samsung,exynos4412-pmu
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/sram/
Dqcom,imem.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
19 - enum:
20 - qcom,apq8064-imem
21 - qcom,msm8226-imem
22 - qcom,msm8974-imem
23 - qcom,qcs404-imem
24 - qcom,qdu1000-imem
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/soc/rockchip/
Dgrf.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Heiko Stuebner <heiko@sntech.de>
15 - items:
16 - enum:
17 - rockchip,rk3288-sgrf
18 - rockchip,rk3566-pipe-grf
19 - rockchip,rk3568-pcie3-phy-grf
20 - rockchip,rk3568-pipe-grf
[all …]

12345