blob: cf71eb28248e7a0800bbdaad7c6be42f165524df [file] [log] [blame]
Thomas Choufb1a4bf2015-10-21 21:33:45 +08001Altera GPIO controller bindings
2
3Required properties:
4- compatible:
5 - "altr,pio-1.0"
6- reg: Physical base address and length of the controller's registers.
7
8Optional properties:
9- altr,gpio-bank-width: Width of the GPIO bank. This defines how many pins the
10 GPIO device has. Ranges between 1-32. Optional and defaults to 32 if not
11 specified.
12- gpio-bank-name: bank name attached to this device.
13
14Example:
15
16user_led_pio_8out: gpio@0x4cc0 {
17 compatible = "altr,pio-1.0";
18 reg = <0x00004cc0 0x00000010>;
19 resetvalue = <255>;
20 altr,gpio-bank-width = <8>;
21 #gpio-cells = <2>;
22 gpio-controller;
23 gpio-bank-name = "led";
24};
25
26In this example, the gpio can be accessed as led[0..7] using gpio command of
27u-boot.
28==> gpio clear led0