xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/gpio-atlas7.txt (revision 95eb4b873b6a8b527c5bd78d7191975dfca38998)
1CSR SiRFatlas7 GPIO controller bindings
2
3Required 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
11The GPIO controller also acts as an interrupt controller. It uses the default
12two cells specifier as described in Documentation/devicetree/bindings/
13interrupt-controller/interrupts.txt.
14
15Example:
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
49Please refer to gpio.txt in this directory for details of the common
50gpio properties used by devices.
51