mrvl-gpio.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. * Marvell PXA GPIO controller
  2. Required properties:
  3. - compatible : Should be "intel,pxa25x-gpio", "intel,pxa26x-gpio",
  4. "intel,pxa27x-gpio", "intel,pxa3xx-gpio",
  5. "marvell,pxa93x-gpio", "marvell,mmp-gpio" or
  6. "marvell,mmp2-gpio".
  7. - reg : Address and length of the register set for the device
  8. - interrupts : Should be the port interrupt shared by all gpio pins.
  9. There're three gpio interrupts in arch-pxa, and they're gpio0,
  10. gpio1 and gpio_mux. There're only one gpio interrupt in arch-mmp,
  11. gpio_mux.
  12. - interrupt-name : Should be the name of irq resource. Each interrupt
  13. binds its interrupt-name.
  14. - interrupt-controller : Identifies the node as an interrupt controller.
  15. - #interrupt-cells: Specifies the number of cells needed to encode an
  16. interrupt source.
  17. - gpio-controller : Marks the device node as a gpio controller.
  18. - #gpio-cells : Should be one. It is the pin number.
  19. Example:
  20. gpio: gpio@d4019000 {
  21. compatible = "marvell,mmp-gpio";
  22. reg = <0xd4019000 0x1000>;
  23. interrupts = <49>;
  24. interrupt-name = "gpio_mux";
  25. gpio-controller;
  26. #gpio-cells = <1>;
  27. interrupt-controller;
  28. #interrupt-cells = <1>;
  29. };
  30. * Marvell Orion GPIO Controller
  31. Required properties:
  32. - compatible : Should be "marvell,orion-gpio"
  33. - reg : Address and length of the register set for controller.
  34. - gpio-controller : So we know this is a gpio controller.
  35. - ngpio : How many gpios this controller has.
  36. - interrupts : Up to 4 Interrupts for the controller.
  37. Optional properties:
  38. - mask-offset : For SMP Orions, offset for Nth CPU
  39. Example:
  40. gpio0: gpio@10100 {
  41. compatible = "marvell,orion-gpio";
  42. #gpio-cells = <2>;
  43. gpio-controller;
  44. reg = <0x10100 0x40>;
  45. ngpio = <32>;
  46. interrupts = <35>, <36>, <37>, <38>;
  47. };