Lines Matching +full:keystone +full:- +full:wdt
1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI keystone reboot driver
41 * rsctrl_enable_rspll_write - enable access to RSCTRL, RSCFG
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(np, "ti,syscon-pll"); in rsctrl_probe()
94 devctrl_regs = syscon_regmap_lookup_by_phandle(np, "ti,syscon-dev"); in rsctrl_probe()
98 ret = of_property_read_u32_index(np, "ti,syscon-pll", 1, &rspll_offset); in rsctrl_probe()
101 return -EINVAL; in rsctrl_probe()
104 ret = of_property_read_u32_index(np, "ti,syscon-dev", 1, &rsmux_offset); in rsctrl_probe()
107 return -EINVAL; in rsctrl_probe()
111 val = of_property_read_bool(np, "ti,soft-reset"); in rsctrl_probe()
127 /* enable a reset for watchdogs from wdt-list */ in rsctrl_probe()
129 ret = of_property_read_u32_index(np, "ti,wdt-list", i, &val); in rsctrl_probe()
130 if (ret == -EOVERFLOW && !i) { in rsctrl_probe()
131 dev_err(dev, "ti,wdt-list property has to contain at" in rsctrl_probe()
133 return -EINVAL; in rsctrl_probe()
139 dev_err(dev, "ti,wdt-list property can contain " in rsctrl_probe()
141 return -EINVAL; in rsctrl_probe()
170 MODULE_DESCRIPTION("Texas Instruments keystone reset driver");