sodaville.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. GPIO controller on CE4100 / Sodaville SoCs
  2. ==========================================
  3. The bindings for CE4100's GPIO controller match the generic description
  4. which is covered by the gpio.txt file in this folder.
  5. The only additional property is the intel,muxctl property which holds the
  6. value which is written into the MUXCNTL register.
  7. There is no compatible property for now because the driver is probed via
  8. PCI id (vendor 0x8086 device 0x2e67).
  9. The interrupt specifier consists of two cells encoded as follows:
  10. - <1st cell>: The interrupt-number that identifies the interrupt source.
  11. - <2nd cell>: The level-sense information, encoded as follows:
  12. 4 - active high level-sensitive
  13. 8 - active low level-sensitive
  14. Example of the GPIO device and one user:
  15. pcigpio: gpio@b,1 {
  16. /* two cells for GPIO and interrupt */
  17. #gpio-cells = <2>;
  18. #interrupt-cells = <2>;
  19. compatible = "pci8086,2e67.2",
  20. "pci8086,2e67",
  21. "pciclassff0000",
  22. "pciclassff00";
  23. reg = <0x15900 0x0 0x0 0x0 0x0>;
  24. /* Interrupt line of the gpio device */
  25. interrupts = <15 1>;
  26. /* It is an interrupt and GPIO controller itself */
  27. interrupt-controller;
  28. gpio-controller;
  29. intel,muxctl = <0>;
  30. };
  31. testuser@20 {
  32. compatible = "example,testuser";
  33. /* User the 11th GPIO line as an active high triggered
  34. * level interrupt
  35. */
  36. interrupts = <11 8>;
  37. interrupt-parent = <&pcigpio>;
  38. /* Use this GPIO also with the gpio functions */
  39. gpios = <&pcigpio 11 0>;
  40. };