raspberrypi,firmware-gpio.txt 815 B

123456789101112131415161718192021222324252627282930
  1. Raspberry Pi GPIO expander
  2. The Raspberry Pi 3 GPIO expander is controlled by the VC4 firmware. The
  3. firmware exposes a mailbox interface that allows the ARM core to control the
  4. GPIO lines on the expander.
  5. The Raspberry Pi GPIO expander node must be a child node of the Raspberry Pi
  6. firmware node.
  7. Required properties:
  8. - compatible : Should be "raspberrypi,firmware-gpio"
  9. - gpio-controller : Marks the device node as a gpio controller
  10. - #gpio-cells : Should be two. The first cell is the pin number, and
  11. the second cell is used to specify the gpio polarity:
  12. 0 = active high
  13. 1 = active low
  14. Example:
  15. firmware: firmware-rpi {
  16. compatible = "raspberrypi,bcm2835-firmware";
  17. mboxes = <&mailbox>;
  18. expgpio: gpio {
  19. compatible = "raspberrypi,firmware-gpio";
  20. gpio-controller;
  21. #gpio-cells = <2>;
  22. };
  23. };