xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/nintendo,hollywood-gpio.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunNintendo Wii (Hollywood) GPIO controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: "nintendo,hollywood-gpio"
5*4882a593Smuzhiyun- reg: Physical base address and length of the controller's registers.
6*4882a593Smuzhiyun- gpio-controller: Marks the device node as a GPIO controller.
7*4882a593Smuzhiyun- #gpio-cells: Should be <2>. The first cell is the pin number and the
8*4882a593Smuzhiyun  second cell is used to specify optional parameters:
9*4882a593Smuzhiyun   - bit 0 specifies polarity (0 for normal, 1 for inverted).
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunOptional properties:
12*4882a593Smuzhiyun- ngpios: see Documentation/devicetree/bindings/gpio/gpio.txt
13*4882a593Smuzhiyun- interrupt-controller: Marks the device node as an interrupt controller.
14*4882a593Smuzhiyun- #interrupt-cells: Should be two.
15*4882a593Smuzhiyun- interrupts: Interrupt specifier for the controller's Broadway (PowerPC)
16*4882a593Smuzhiyun  interrupt.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunExample:
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun	GPIO: gpio@d8000c0 {
21*4882a593Smuzhiyun		#gpio-cells = <2>;
22*4882a593Smuzhiyun		compatible = "nintendo,hollywood-gpio";
23*4882a593Smuzhiyun		reg = <0x0d8000c0 0x40>;
24*4882a593Smuzhiyun		gpio-controller;
25*4882a593Smuzhiyun		ngpios = <24>;
26*4882a593Smuzhiyun	}
27