Merge remote-tracking branches 'regulator/fix/88pm800', 'regulator/fix/max8973',...
[linux-drm-fsl-dcu.git] / Documentation / devicetree / bindings / gpio / gpio-atlas7.txt
1 CSR SiRFatlas7 GPIO controller bindings
2
3 Required properties:
4 - compatible    : "sirf,atlas7-gpio"
5 - reg           : Address range of the pinctrl registers
6 - interrupts    : Interrupts used by every GPIO group
7 - gpio-banks    : How many gpio banks on this controller
8 - gpio-controller : Indicates this device is a GPIO controller
9 - interrupt-controller  : Marks the device node as an interrupt controller
10
11 The GPIO controller also acts as an interrupt controller. It uses the default
12 two cells specifier as described in Documentation/devicetree/bindings/
13 interrupt-controller/interrupts.txt.
14
15 Example:
16
17         gpio_0: gpio_mediam@17040000 {
18                 compatible = "sirf,atlas7-gpio";
19                 reg = <0x17040000 0x1000>;
20                 interrupts = <0 13 0>, <0 14 0>;
21
22                 #gpio-cells = <2>;
23                 #interrupt-cells = <2>;
24
25                 gpio-controller;
26                 interrupt-controller;
27
28                 gpio-banks = <2>;
29                 gpio-ranges = <&pinctrl 0 0 0>,
30                                 <&pinctrl 32 0 0>;
31                 gpio-ranges-group-names = "lvds_gpio_grp",
32                                         "uart_nand_gpio_grp";
33         };
34
35         leds {
36                 compatible = "gpio-leds";
37
38                 led1 {
39                         gpios = <&gpio_1 15 0>;
40                         ...
41                 };
42
43                 led2 {
44                         gpios = <&gpio_2 34 0>;
45                         ...
46                 };
47         };
48
49 Please refer to gpio.txt in this directory for details of the common
50 gpio properties used by devices.