/* * FPC1020 Fingerprint sensor device driver * * This driver will control the platform resources that the FPC fingerprint * sensor needs to operate. The major things are probing the sensor to check * that it is actually connected and let the Kernel know this and with that also * enabling and disabling of regulators, enabling and disabling of platform * clocks, controlling GPIOs such as SPI chip select, sensor reset line, sensor * IRQ line, MISO and MOSI lines. * * The driver will expose most of its available functionality in sysfs which * enables dynamic control of these features from eg. a user space process. * * The sensor's IRQ events will be pushed to Kernel's event handling system and * are exposed in the drivers event node. This makes it possible for a user * space process to poll the input node and receive IRQ events easily. Usually * this node is available under /dev/input/eventX where 'X' is a number given by * the event system. A user space process will need to traverse all the event * nodes and ask for its parent's name (through EVIOCGNAME) which should match * the value in device tree named input-device-name. * * This driver will NOT send any SPI commands to the sensor it only controls the * electrical parts. * * * Copyright (c) 2015 Fingerprint Cards AB <[email protected]> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License Version 2 * as published by the Free Software Foundation. *//* * FPC1020 Fingerprint sensor device driv