gpio-mm-lantiq.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Lantiq SoC External Bus memory mapped GPIO controller
  2. By attaching hardware latches to the EBU it is possible to create output
  3. only gpios. This driver configures a special memory address, which when
  4. written to outputs 16 bit to the latches.
  5. The node describing the memory mapped GPIOs needs to be a child of the node
  6. describing the "lantiq,localbus".
  7. Required properties:
  8. - compatible : Should be "lantiq,gpio-mm-lantiq"
  9. - reg : Address and length of the register set for the device
  10. - #gpio-cells : Should be two. The first cell is the pin number and
  11. the second cell is used to specify optional parameters (currently
  12. unused).
  13. - gpio-controller : Marks the device node as a gpio controller.
  14. Optional properties:
  15. - lantiq,shadow : The default value that we shall assume as already set on the
  16. shift register cascade.
  17. Example:
  18. localbus@0 {
  19. #address-cells = <2>;
  20. #size-cells = <1>;
  21. ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
  22. 1 0 0x4000000 0x4000010>; /* addsel1 */
  23. compatible = "lantiq,localbus", "simple-bus";
  24. gpio_mm0: gpio@4000000 {
  25. compatible = "lantiq,gpio-mm";
  26. reg = <1 0x0 0x10>;
  27. gpio-controller;
  28. #gpio-cells = <2>;
  29. lantiq,shadow = <0x77f>
  30. };
  31. }