Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: gpio: Add binding for Wii GPIO controller

The Nintendo Wii game console has a GPIO controller, which is used for
the optical disk slot LED, buttons, poweroff, etc. This patch adds a
binding for this GPIO controller.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Jonathan Neuschäfer and committed by
Linus Walleij
4760b6fa b5cd7802

+28 -8
+27
Documentation/devicetree/bindings/gpio/nintendo,hollywood-gpio.txt
··· 1 + Nintendo Wii (Hollywood) GPIO controller 2 + 3 + Required properties: 4 + - compatible: "nintendo,hollywood-gpio 5 + - reg: Physical base address and length of the controller's registers. 6 + - gpio-controller: Marks the device node as a GPIO controller. 7 + - #gpio-cells: Should be <2>. The first cell is the pin number and the 8 + second cell is used to specify optional parameters: 9 + - bit 0 specifies polarity (0 for normal, 1 for inverted). 10 + 11 + Optional properties: 12 + - ngpios: see Documentation/devicetree/bindings/gpio/gpio.txt 13 + - interrupt-controller: Marks the device node as an interrupt controller. 14 + - #interrupt-cells: Should be two. 15 + - interrupts: Interrupt specifier for the controller's Broadway (PowerPC) 16 + interrupt. 17 + - interrupt-parent: phandle of the parent interrupt controller. 18 + 19 + Example: 20 + 21 + GPIO: gpio@d8000c0 { 22 + #gpio-cells = <2>; 23 + compatible = "nintendo,hollywood-gpio"; 24 + reg = <0x0d8000c0 0x40>; 25 + gpio-controller; 26 + ngpios = <24>; 27 + }
+1 -8
Documentation/devicetree/bindings/powerpc/nintendo/wii.txt
··· 152 152 153 153 1.l) The General Purpose I/O (GPIO) controller node 154 154 155 - Represents the dual access 32 GPIO controller interface. 156 - 157 - Required properties: 158 - 159 - - #gpio-cells : <2> 160 - - compatible : should be "nintendo,hollywood-gpio" 161 - - reg : should contain the IPC registers location and length 162 - - gpio-controller 155 + see Documentation/devicetree/bindings/gpio/nintendo,hollywood-gpio.txt 163 156 164 157 1.m) The control node 165 158