new file mode 100644
@@ -0,0 +1,30 @@
+GPIO-INVERTER
+======
+This binding defines the gpio-inverter. The gpio-inverter is a driver that
+allows to properly describe the gpio polarities on the hardware for those gpio
+pins which are used only from userspace
+
+Please refer to gpio.txt for generic information regarding GPIO bindings.
+
+Required properties:
+- compatible : "gpio-inverter".
+- gpio-controller: Marks the port as GPIO controller.
+- #gpio-cells: Two. The first cell is the pin number and
+ the second cell is used to specify the gpio polarity as defined in
+ defined in <dt-bindings/gpio/gpio.h>:
+ 0 = GPIO_ACTIVE_HIGH
+ 1 = GPIO_ACTIVE_LOW
+- mapped-gpios: Array of GPIO pins required from userspace, whose polarity has
+ to be configured in the driver.
+- gpio-line-names: This is an array of strings defining the names for the
+ mapped-gpios correspondingly. Name should be defined for each gpio pin.
+
+Example:
+
+gpio_inv: gpio-inv {
+ compatible = "gpio-inverter";
+ gpio-controller;
+ #gpio-cell = <2>;
+ mapped-gpios = <&gpio5 24 1>, <&gpio7 0 1>, <&gpio7 1 1>;
+ gpio-line-names = "JTAG_DNL_EN", "lvds-pwrdwn", "lcd-on";
+};
Document the device tree binding for the virtual gpio controller to configure the polarity of the gpio pins used by the userspace. Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com> --- .../devicetree/bindings/gpio/gpio-inverter.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-inverter.txt -- 2.7.4