]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/mockup: add virtual gpio device
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Wed, 31 Aug 2016 09:45:46 +0000 (11:45 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Sep 2016 18:47:14 +0000 (11:47 -0700)
commit93f4b0eed12d3e54e4e3b37c7afd371396883313
treea26a7625f099135f2849cd5fdc86c75626fe518b
parentbe9cc189f647ff177e653038e5ee2ab7c8f3df43
gpio/mockup: add virtual gpio device

This patch add basic structure of a virtual gpio device(gpio-mockup)
for testing gpio subsystem. The tester could manipulate such device
through userspace(sysfs or char device) and check the result from
debugfs.

Currently, it support one or more gpiochip(determined by module
parameters with base,ngpio pair). One could test the overlap of
different gpiochip and test the direction and/or output values of
these chips.

Signed-off-by: Kamlakant Patel <kamlakant.patel@broadcom.com>
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/kernel-parameters.txt
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-mockup.c [new file with mode: 0644]