aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/gpio/gpio-pl061.txt
blob: 687206727bd3e62fef19d824d66c8beba0dab53e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PL061 GPIO controller bindings

Required properties:
- compatible:
  - "arm,pl061", "arm,primecell".
- #gpio-cells : Should be two.
  - first cell is the gpio pin number
  - second cell is used to specify the gpio polarity:
      0 = active high
      1 = active low
- gpio-controller : Marks the device node as a GPIO controller.
- interrupt-controller : Marks the device node as an interrupt controller.
- #interrupt-cells : Should be two.
  - first cell is the hw irq number
  - second cell is used to specify the interrupt type:
      0 = default, unspecified type
      1 = rising edge triggered
      2 = falling edge triggered
      4 = high level triggered
      8 = low level triggered
- linux,gpio-base : Should be the global GPIO number.

Example:
	gpio0: gpio@fc806000 {
		compatible = "arm,pl061", "arm,primecell";
		reg = <0xfc806000 0x1000>;
		interrupts = <0 64 0x4>;
		gpio-controller;
		#gpio-cells = <2>;
		interrupt-controller;
		#interrupt-cells = <2>;
		linux,gpio-base = <0>;
	};