Lines Matching +full:timeout +full:- +full:ms
1 // SPDX-License-Identifier: GPL-2.0-only
24 static u32 timeout = DEFAULT_TIMEOUT_MS; variable
32 /* drive it active, also inactive->active edge */ in gpio_poweroff_do_poweroff()
36 /* drive inactive, also active->inactive edge */ in gpio_poweroff_do_poweroff()
40 /* drive it active, also inactive->active edge */ in gpio_poweroff_do_poweroff()
44 mdelay(timeout); in gpio_poweroff_do_poweroff()
56 dev_err(&pdev->dev, in gpio_poweroff_probe()
59 return -EBUSY; in gpio_poweroff_probe()
62 input = device_property_read_bool(&pdev->dev, "input"); in gpio_poweroff_probe()
68 device_property_read_u32(&pdev->dev, "active-delay-ms", &active_delay); in gpio_poweroff_probe()
69 device_property_read_u32(&pdev->dev, "inactive-delay-ms", in gpio_poweroff_probe()
71 device_property_read_u32(&pdev->dev, "timeout-ms", &timeout); in gpio_poweroff_probe()
73 reset_gpio = devm_gpiod_get(&pdev->dev, NULL, flags); in gpio_poweroff_probe()
90 { .compatible = "gpio-poweroff", },
98 .name = "poweroff-gpio",
108 MODULE_ALIAS("platform:poweroff-gpio");