1*4882a593SmuzhiyunCSR SiRFatlas7 GPIO controller bindings 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired properties: 4*4882a593Smuzhiyun- compatible : "sirf,atlas7-gpio" 5*4882a593Smuzhiyun- reg : Address range of the pinctrl registers 6*4882a593Smuzhiyun- interrupts : Interrupts used by every GPIO group 7*4882a593Smuzhiyun- gpio-banks : How many gpio banks on this controller 8*4882a593Smuzhiyun- gpio-controller : Indicates this device is a GPIO controller 9*4882a593Smuzhiyun- interrupt-controller : Marks the device node as an interrupt controller 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunThe GPIO controller also acts as an interrupt controller. It uses the default 12*4882a593Smuzhiyuntwo cells specifier as described in Documentation/devicetree/bindings/ 13*4882a593Smuzhiyuninterrupt-controller/interrupts.txt. 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunExample: 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun gpio_0: gpio_mediam@17040000 { 18*4882a593Smuzhiyun compatible = "sirf,atlas7-gpio"; 19*4882a593Smuzhiyun reg = <0x17040000 0x1000>; 20*4882a593Smuzhiyun interrupts = <0 13 0>, <0 14 0>; 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun #gpio-cells = <2>; 23*4882a593Smuzhiyun #interrupt-cells = <2>; 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun gpio-controller; 26*4882a593Smuzhiyun interrupt-controller; 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun gpio-banks = <2>; 29*4882a593Smuzhiyun gpio-ranges = <&pinctrl 0 0 0>, 30*4882a593Smuzhiyun <&pinctrl 32 0 0>; 31*4882a593Smuzhiyun gpio-ranges-group-names = "lvds_gpio_grp", 32*4882a593Smuzhiyun "uart_nand_gpio_grp"; 33*4882a593Smuzhiyun }; 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun leds { 36*4882a593Smuzhiyun compatible = "gpio-leds"; 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun led1 { 39*4882a593Smuzhiyun gpios = <&gpio_1 15 0>; 40*4882a593Smuzhiyun ... 41*4882a593Smuzhiyun }; 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun led2 { 44*4882a593Smuzhiyun gpios = <&gpio_2 34 0>; 45*4882a593Smuzhiyun ... 46*4882a593Smuzhiyun }; 47*4882a593Smuzhiyun }; 48*4882a593Smuzhiyun 49*4882a593SmuzhiyunPlease refer to gpio.txt in this directory for details of the common 50*4882a593Smuzhiyungpio properties used by devices. 51