gpio-atlas7.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. CSR SiRFatlas7 GPIO controller bindings
  2. Required properties:
  3. - compatible : "sirf,atlas7-gpio"
  4. - reg : Address range of the pinctrl registers
  5. - interrupts : Interrupts used by every GPIO group
  6. - gpio-banks : How many gpio banks on this controller
  7. - gpio-controller : Indicates this device is a GPIO controller
  8. - interrupt-controller : Marks the device node as an interrupt controller
  9. The GPIO controller also acts as an interrupt controller. It uses the default
  10. two cells specifier as described in Documentation/devicetree/bindings/
  11. interrupt-controller/interrupts.txt.
  12. Example:
  13. gpio_0: gpio_mediam@17040000 {
  14. compatible = "sirf,atlas7-gpio";
  15. reg = <0x17040000 0x1000>;
  16. interrupts = <0 13 0>, <0 14 0>;
  17. #gpio-cells = <2>;
  18. #interrupt-cells = <2>;
  19. gpio-controller;
  20. interrupt-controller;
  21. gpio-banks = <2>;
  22. gpio-ranges = <&pinctrl 0 0 0>,
  23. <&pinctrl 32 0 0>;
  24. gpio-ranges-group-names = "lvds_gpio_grp",
  25. "uart_nand_gpio_grp";
  26. };
  27. leds {
  28. compatible = "gpio-leds";
  29. led1 {
  30. gpios = <&gpio_1 15 0>;
  31. ...
  32. };
  33. led2 {
  34. gpios = <&gpio_2 34 0>;
  35. ...
  36. };
  37. };
  38. Please refer to gpio.txt in this directory for details of the common
  39. gpio properties used by devices.