summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/gpio/gpio-aspeed.txt
blob: fc6378c778c55b3f0fe7d8f2bff1826060ff9ef5 (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
34
35
36
37
Aspeed GPIO controller Device Tree Bindings
-------------------------------------------

Required properties:
- compatible		: Either "aspeed,ast2400-gpio" or "aspeed,ast2500-gpio"

- #gpio-cells 		: Should be two
			  - First cell is the GPIO line number
			  - Second cell is used to specify optional
			    parameters (unused)

- reg			: Address and length of the register set for the device
- gpio-controller	: Marks the device node as a GPIO controller.
- interrupts		: Interrupt specifier (see interrupt bindings for
			  details)
- interrupt-controller	: Mark the GPIO controller as an interrupt-controller

Optional properties:

- interrupt-parent      : The parent interrupt controller, optional if inherited
- clocks                : A phandle to the clock to use for debounce timings

The gpio and interrupt properties are further described in their respective
bindings documentation:

- Documentation/devicetree/bindings/gpio/gpio.txt
- Documentation/devicetree/bindings/interrupt-controller/interrupts.txt

  Example:
	gpio@1e780000 {
		#gpio-cells = <2>;
		compatible = "aspeed,ast2400-gpio";
		gpio-controller;
		interrupts = <20>;
		reg = <0x1e780000 0x1000>;
		interrupt-controller;
	};