1Netlogic XLP Family GPIO 2======================== 3 4This GPIO driver is used for following Netlogic XLP SoCs: 5 XLP832, XLP316, XLP208, XLP980, XLP532 6 7Required properties: 8------------------- 9 10- compatible: Should be one of the following: 11 - "netlogic,xlp832-gpio": For Netlogic XLP832 12 - "netlogic,xlp316-gpio": For Netlogic XLP316 13 - "netlogic,xlp208-gpio": For Netlogic XLP208 14 - "netlogic,xlp980-gpio": For Netlogic XLP980 15 - "netlogic,xlp532-gpio": For Netlogic XLP532 16- reg: Physical base address and length of the controller's registers. 17- #gpio-cells: Should be two. The first cell is the pin number and the second 18 cell is used to specify optional parameters (currently unused). 19- gpio-controller: Marks the device node as a GPIO controller. 20- nr-gpios: Number of GPIO pins supported by the controller. 21- interrupt-cells: Should be two. The first cell is the GPIO Number. The 22 second cell is used to specify flags. The following subset of flags is 23 supported: 24 - trigger type: 25 1 = low to high edge triggered. 26 2 = high to low edge triggered. 27 4 = active high level-sensitive. 28 8 = active low level-sensitive. 29- interrupts: Interrupt number for this device. 30- interrupt-parent: phandle of the parent interrupt controller. 31- interrupt-controller: Identifies the node as an interrupt controller. 32 33Example: 34 35 gpio: xlp_gpio@34000 { 36 compatible = "netlogic,xlp316-gpio"; 37 reg = <0 0x34100 0x1000 38 0 0x35100 0x1000>; 39 #gpio-cells = <2>; 40 gpio-controller; 41 nr-gpios = <57>; 42 43 #interrupt-cells = <2>; 44 interrupt-parent = <&pic>; 45 interrupts = <39>; 46 interrupt-controller; 47 }; 48