0001 * Technologic Systems I2C-FPGA's GPIO controller bindings
0002
0003 This bindings describes the GPIO controller for Technologic's FPGA core.
0004 TS-4900's FPGA encodes the GPIO state on 3 bits, whereas the TS-7970's FPGA
0005 uses 2 bits: it doesn't use a dedicated input bit.
0006
0007 Required properties:
0008 - compatible: Should be one of the following
0009 "technologic,ts4900-gpio"
0010 "technologic,ts7970-gpio"
0011 - reg: Physical base address of the controller and length
0012 of memory mapped region.
0013 - #gpio-cells: Should be two. The first cell is the pin number.
0014 - gpio-controller: Marks the device node as a gpio controller.
0015
0016 Optional property:
0017 - ngpios: Number of GPIOs this controller is instantiated with,
0018 the default is 32. See gpio.txt for more details.
0019
0020 Example:
0021
0022 &i2c2 {
0023 gpio8: gpio@28 {
0024 compatible = "technologic,ts4900-gpio";
0025 reg = <0x28>;
0026 #gpio-cells = <2>;
0027 gpio-controller;
0028 ngpios = <32>;
0029 };
0030 };