wd,mbl-gpio.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Bindings for the Western Digital's MyBook Live memory-mapped GPIO controllers.
  2. The Western Digital MyBook Live has two memory-mapped GPIO controllers.
  3. Both GPIO controller only have a single 8-bit data register, where GPIO
  4. state can be read and/or written.
  5. Required properties:
  6. - compatible: should be "wd,mbl-gpio"
  7. - reg-names: must contain
  8. "dat" - data register
  9. - reg: address + size pairs describing the GPIO register sets;
  10. order must correspond with the order of entries in reg-names
  11. - #gpio-cells: must be set to 2. The first cell is the pin number and
  12. the second cell is used to specify the gpio polarity:
  13. 0 = active high
  14. 1 = active low
  15. - gpio-controller: Marks the device node as a gpio controller.
  16. Optional properties:
  17. - no-output: GPIOs are read-only.
  18. Examples:
  19. gpio0: gpio0@e0000000 {
  20. compatible = "wd,mbl-gpio";
  21. reg-names = "dat";
  22. reg = <0xe0000000 0x1>;
  23. #gpio-cells = <2>;
  24. gpio-controller;
  25. };
  26. gpio1: gpio1@e0100000 {
  27. compatible = "wd,mbl-gpio";
  28. reg-names = "dat";
  29. reg = <0xe0100000 0x1>;
  30. #gpio-cells = <2>;
  31. gpio-controller;
  32. no-output;
  33. };