Lines Matching +full:syscon +full:- +full:reboot +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI keystone reboot driver
14 #include <linux/reboot.h>
16 #include <linux/mfd/syscon.h>
41 * rsctrl_enable_rspll_write - enable access to RSCTRL, RSCFG
52 unsigned long mode, void *cmd) in rsctrl_restart_handler() argument
70 {.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()
90 pllctrl_regs = syscon_regmap_lookup_by_phandle_args(np, "ti,syscon-pll", in rsctrl_probe()
95 devctrl_regs = syscon_regmap_lookup_by_phandle_args(np, "ti,syscon-dev", in rsctrl_probe()
101 val = of_property_read_bool(np, "ti,soft-reset"); in rsctrl_probe()
117 /* enable a reset for watchdogs from wdt-list */ in rsctrl_probe()
119 ret = of_property_read_u32_index(np, "ti,wdt-list", i, &val); in rsctrl_probe()
120 if (ret == -EOVERFLOW && !i) { in rsctrl_probe()
121 dev_err(dev, "ti,wdt-list property has to contain at" in rsctrl_probe()
123 return -EINVAL; in rsctrl_probe()
129 dev_err(dev, "ti,wdt-list property can contain " in rsctrl_probe()
131 return -EINVAL; in rsctrl_probe()