brcm,bcm6345-gpio.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Bindings for the Broadcom's brcm,bcm6345-gpio memory-mapped GPIO controllers.
  2. These bindings can be used on any BCM63xx SoC. However, BCM6338 and BCM6345
  3. are the only ones which don't need a pinctrl driver.
  4. BCM6338 have 8-bit data and dirout registers, where GPIO state can be read
  5. and/or written, and the direction changed from input to output.
  6. BCM6345 have 16-bit data and dirout registers, where GPIO state can be read
  7. and/or written, and the direction changed from input to output.
  8. Required properties:
  9. - compatible: should be "brcm,bcm6345-gpio"
  10. - reg-names: must contain
  11. "dat" - data register
  12. "dirout" - direction (output) register
  13. - reg: address + size pairs describing the GPIO register sets;
  14. order must correspond with the order of entries in reg-names
  15. - #gpio-cells: must be set to 2. The first cell is the pin number and
  16. the second cell is used to specify the gpio polarity:
  17. 0 = active high
  18. 1 = active low
  19. - gpio-controller: Marks the device node as a gpio controller.
  20. Optional properties:
  21. - native-endian: use native endian memory.
  22. Examples:
  23. - BCM6338:
  24. gpio: gpio-controller@fffe0407 {
  25. compatible = "brcm,bcm6345-gpio";
  26. reg-names = "dirout", "dat";
  27. reg = <0xfffe0407 1>, <0xfffe040f 1>;
  28. #gpio-cells = <2>;
  29. gpio-controller;
  30. };
  31. - BCM6345:
  32. gpio: gpio-controller@fffe0406 {
  33. compatible = "brcm,bcm6345-gpio";
  34. reg-names = "dirout", "dat";
  35. reg = <0xfffe0406 2>, <0xfffe040a 2>;
  36. native-endian;
  37. #gpio-cells = <2>;
  38. gpio-controller;
  39. };