nintendo,hollywood-gpio.txt 866 B

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