1*4882a593Smuzhiyun* Technologic Systems I2C-FPGA's GPIO controller bindings 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThis bindings describes the GPIO controller for Technologic's FPGA core. 4*4882a593SmuzhiyunTS-4900's FPGA encodes the GPIO state on 3 bits, whereas the TS-7970's FPGA 5*4882a593Smuzhiyunuses 2 bits: it doesn't use a dedicated input bit. 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunRequired properties: 8*4882a593Smuzhiyun- compatible: Should be one of the following 9*4882a593Smuzhiyun "technologic,ts4900-gpio" 10*4882a593Smuzhiyun "technologic,ts7970-gpio" 11*4882a593Smuzhiyun- reg: Physical base address of the controller and length 12*4882a593Smuzhiyun of memory mapped region. 13*4882a593Smuzhiyun- #gpio-cells: Should be two. The first cell is the pin number. 14*4882a593Smuzhiyun- gpio-controller: Marks the device node as a gpio controller. 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunOptional property: 17*4882a593Smuzhiyun- ngpios: Number of GPIOs this controller is instantiated with, 18*4882a593Smuzhiyun the default is 32. See gpio.txt for more details. 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunExample: 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun&i2c2 { 23*4882a593Smuzhiyun gpio8: gpio@28 { 24*4882a593Smuzhiyun compatible = "technologic,ts4900-gpio"; 25*4882a593Smuzhiyun reg = <0x28>; 26*4882a593Smuzhiyun #gpio-cells = <2>; 27*4882a593Smuzhiyun gpio-controller; 28*4882a593Smuzhiyun ngpios = <32>; 29*4882a593Smuzhiyun }; 30*4882a593Smuzhiyun}; 31