ibm,ppc4xx-gpio.txt 799 B

12345678910111213141516171819202122232425
  1. * IBM/AMCC/APM GPIO Controller for PowerPC 4XX series and compatible SoCs
  2. All GPIOs are pin-shared with other functions. DCRs control whether a
  3. particular pin that has GPIO capabilities acts as a GPIO or is used for
  4. another purpose. GPIO outputs are separately programmable to emulate
  5. an open-drain driver.
  6. Required properties:
  7. - compatible: must be "ibm,ppc4xx-gpio"
  8. - reg: address and length of the register set for the device
  9. - #gpio-cells: must be set to 2. The first cell is the pin number
  10. and the second cell is used to specify the gpio polarity:
  11. 0 = active high
  12. 1 = active low
  13. - gpio-controller: marks the device node as a gpio controller.
  14. Example:
  15. GPIO0: gpio@ef600b00 {
  16. compatible = "ibm,ppc4xx-gpio";
  17. reg = <0xef600b00 0x00000048>;
  18. #gpio-cells = <2>;
  19. gpio-controller;
  20. };