new file mode 100644
@@ -0,0 +1,29 @@
+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.
+
+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: One. This is the pin number.
+- inverted-gpios: Array of GPIO pins required from consumers, whose polarity
+ has to be inverted in the driver.
+Note: gpio flag should be set as GPIO_ACTIVE_HIGH. Using GPIO_ACTICE_LOW will
+cause double inversion.
+
+Optional properties:
+- gpio-line-names: Refer to gpio.txt for details regarding this property.
+
+Example:
+
+gpio_inv: gpio-inv {
+ compatible = "gpio-inverter";
+ gpio-controller;
+ #gpio-cells = <1>;
+ inverted-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>,
+ <&gpio7 0 GPIO_ACTIVE_HIGH>, <&gpio7 1 GPIO_ACTIVE_HIGH>;
+ gpio-line-names = "JTAG_DNL_EN", "lvds-pwrdwn", "lcd-on";
+};
Document the device tree binding for the inverter gpio controller to configure the polarity of the gpio pins used by the consumers. Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com> --- .../devicetree/bindings/gpio/gpio-inverter.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-inverter.txt -- 2.7.4