Lines Matching +full:syscon +full:- +full:poweroff
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Generic Syscon Poweroff Driver
12 #include <linux/mfd/syscon.h>
25 /* Issue the poweroff */ in syscon_poweroff()
30 pr_emerg("Unable to poweroff system\n"); in syscon_poweroff()
37 map = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, "regmap"); in syscon_poweroff_probe()
39 dev_err(&pdev->dev, "unable to get syscon"); in syscon_poweroff_probe()
43 if (of_property_read_u32(pdev->dev.of_node, "offset", &offset)) { in syscon_poweroff_probe()
44 dev_err(&pdev->dev, "unable to read 'offset'"); in syscon_poweroff_probe()
45 return -EINVAL; in syscon_poweroff_probe()
48 value_err = of_property_read_u32(pdev->dev.of_node, "value", &value); in syscon_poweroff_probe()
49 mask_err = of_property_read_u32(pdev->dev.of_node, "mask", &mask); in syscon_poweroff_probe()
51 dev_err(&pdev->dev, "unable to read 'value' and 'mask'"); in syscon_poweroff_probe()
52 return -EINVAL; in syscon_poweroff_probe()
65 dev_err(&pdev->dev, "pm_power_off already claimed for %ps", in syscon_poweroff_probe()
67 return -EBUSY; in syscon_poweroff_probe()
84 { .compatible = "syscon-poweroff" },
92 .name = "syscon-poweroff",