Lines Matching +full:wdt +full:- +full:gpio
1 // SPDX-License-Identifier: GPL-2.0+
3 * Driver for the MTX-1 Watchdog.
5 * (C) Copyright 2005 4G Systems <info@4g-systems.biz>,
7 * http://www.4g-systems.biz
10 * (c) Copyright 2005 4G Systems <info@4g-systems.biz>
13 * Author: Michael Stickel michael.stickel@4g-systems.biz
19 * The Watchdog is configured to reset the MTX-1
42 #include <linux/gpio/consumer.h>
64 ticks--; in mtx1_wdt_trigger()
66 /* toggle wdt gpio */ in mtx1_wdt_trigger()
118 return -EBUSY; in mtx1_wdt_open()
137 .identity = "MTX-1 WDT", in mtx1_wdt_ioctl()
143 return -EFAULT; in mtx1_wdt_ioctl()
151 return -EFAULT; in mtx1_wdt_ioctl()
157 return -EINVAL; in mtx1_wdt_ioctl()
163 return -ENOTTY; in mtx1_wdt_ioctl()
173 return -EIO; in mtx1_wdt_write()
199 mtx1_wdt_device.gpiod = devm_gpiod_get(&pdev->dev, in mtx1_wdt_probe()
202 dev_err(&pdev->dev, "failed to request gpio"); in mtx1_wdt_probe()
215 dev_err(&pdev->dev, "failed to register\n"); in mtx1_wdt_probe()
219 dev_info(&pdev->dev, "MTX-1 Watchdog driver\n"); in mtx1_wdt_probe()
237 .driver.name = "mtx1-wdt",
243 MODULE_DESCRIPTION("Driver for the MTX-1 watchdog");
245 MODULE_ALIAS("platform:mtx1-wdt");