162306a36Sopenharmony_ci* Technologic Systems I2C-FPGA's GPIO controller bindings 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciThis bindings describes the GPIO controller for Technologic's FPGA core. 462306a36Sopenharmony_ciTS-4900's FPGA encodes the GPIO state on 3 bits, whereas the TS-7970's FPGA 562306a36Sopenharmony_ciuses 2 bits: it doesn't use a dedicated input bit. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ciRequired properties: 862306a36Sopenharmony_ci- compatible: Should be one of the following 962306a36Sopenharmony_ci "technologic,ts4900-gpio" 1062306a36Sopenharmony_ci "technologic,ts7970-gpio" 1162306a36Sopenharmony_ci- reg: Physical base address of the controller and length 1262306a36Sopenharmony_ci of memory mapped region. 1362306a36Sopenharmony_ci- #gpio-cells: Should be two. The first cell is the pin number. 1462306a36Sopenharmony_ci- gpio-controller: Marks the device node as a gpio controller. 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ciOptional property: 1762306a36Sopenharmony_ci- ngpios: Number of GPIOs this controller is instantiated with, 1862306a36Sopenharmony_ci the default is 32. See gpio.txt for more details. 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciExample: 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci&i2c2 { 2362306a36Sopenharmony_ci gpio8: gpio@28 { 2462306a36Sopenharmony_ci compatible = "technologic,ts4900-gpio"; 2562306a36Sopenharmony_ci reg = <0x28>; 2662306a36Sopenharmony_ci #gpio-cells = <2>; 2762306a36Sopenharmony_ci gpio-controller; 2862306a36Sopenharmony_ci ngpios = <32>; 2962306a36Sopenharmony_ci }; 3062306a36Sopenharmony_ci}; 31