0001 * Abilis TB10x GPIO controller
0002
0003 Required Properties:
0004 - compatible: Should be "abilis,tb10x-gpio"
0005 - reg: Address and length of the register set for the device
0006 - gpio-controller: Marks the device node as a gpio controller.
0007 - #gpio-cells: Should be <2>. The first cell is the pin number and the
0008 second cell is used to specify optional parameters:
0009 - bit 0 specifies polarity (0 for normal, 1 for inverted).
0010 - abilis,ngpio: the number of GPIO pins this driver controls.
0011
0012 Optional Properties:
0013 - interrupt-controller: Marks the device node as an interrupt controller.
0014 - #interrupt-cells: Should be <1>. Interrupts are triggered on both edges.
0015 - interrupts: Defines the interrupt line connecting this GPIO controller to
0016 its parent interrupt controller.
0017
0018 GPIO ranges are specified as described in
0019 Documentation/devicetree/bindings/gpio/gpio.txt
0020
0021 Example:
0022
0023 gpioa: gpio@ff140000 {
0024 compatible = "abilis,tb10x-gpio";
0025 interrupt-controller;
0026 #interrupt-cells = <1>;
0027 interrupt-parent = <&tb10x_ictl>;
0028 interrupts = <27 2>;
0029 reg = <0xFF140000 0x1000>;
0030 gpio-controller;
0031 #gpio-cells = <2>;
0032 abilis,ngpio = <3>;
0033 gpio-ranges = <&iomux 0 0 0>;
0034 gpio-ranges-group-names = "gpioa_pins";
0035 };