This is a dummy GPIO controller which can be used in place of the real hardware GPIO controller (for example, an external GPIO expander) before actual hardware is available. Signed-off-by: Vincent Whitchurch <vincent.whitchurch@xxxxxxxx> --- .../devicetree/bindings/gpio/gpio-mockup.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-mockup.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-mockup.txt b/Documentation/devicetree/bindings/gpio/gpio-mockup.txt new file mode 100644 index 000000000000..585f04e356fc --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-mockup.txt @@ -0,0 +1,22 @@ +Mockup GPIO controller bindings + +This creates a dummy GPIO controller which can be used for testing higher level +drivers or userspace before actual hardware is available. + +Required properties: +- compatible: Should contain "gpio-mockup" +- gpio-controller : Marks the device node as a gpio controller. +- #gpio-cells : Should be two. The first cell is the pin number and + the second cell is used to specify the gpio polarity: + 0 = active high + 1 = active low +- nr-gpios: The number of dummy GPIOs + +Example: + + gpio-mockup0 { + compatible = "gpio-mockup"; + nr-gpios = <32>; + gpio-controller; + #gpio-cells = <2>; + }; -- 2.11.0