Lines Matching +full:reboot +full:- +full:offset
1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI keystone reboot driver
14 #include <linux/reboot.h>
43 * rsctrl_enable_rspll_write - enable access to RSCTRL, RSCFG
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()
92 pllctrl_regs = syscon_regmap_lookup_by_phandle(np, "ti,syscon-pll"); in rsctrl_probe()
96 devctrl_regs = syscon_regmap_lookup_by_phandle(np, "ti,syscon-dev"); in rsctrl_probe()
100 ret = of_property_read_u32_index(np, "ti,syscon-pll", 1, &rspll_offset); in rsctrl_probe()
102 dev_err(dev, "couldn't read the reset pll offset!\n"); in rsctrl_probe()
103 return -EINVAL; in rsctrl_probe()
106 ret = of_property_read_u32_index(np, "ti,syscon-dev", 1, &rsmux_offset); in rsctrl_probe()
108 dev_err(dev, "couldn't read the rsmux offset!\n"); in rsctrl_probe()
109 return -EINVAL; in rsctrl_probe()
113 val = of_property_read_bool(np, "ti,soft-reset"); in rsctrl_probe()
129 /* enable a reset for watchdogs from wdt-list */ in rsctrl_probe()
131 ret = of_property_read_u32_index(np, "ti,wdt-list", i, &val); in rsctrl_probe()
132 if (ret == -EOVERFLOW && !i) { in rsctrl_probe()
133 dev_err(dev, "ti,wdt-list property has to contain at" in rsctrl_probe()
135 return -EINVAL; in rsctrl_probe()
141 dev_err(dev, "ti,wdt-list property can contain " in rsctrl_probe()
143 return -EINVAL; in rsctrl_probe()