135-Documentation-add-BCM6358-pincontroller-binding-docu.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. From c7c8fa7f5b5ee9bea751fa7bdae8ff4acde8f26e Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <[email protected]>
  3. Date: Wed, 27 Jul 2016 11:36:00 +0200
  4. Subject: [PATCH 06/16] Documentation: add BCM6358 pincontroller binding
  5. documentation
  6. Add binding documentation for the pincontrol core found in BCM6358 SoCs.
  7. Signed-off-by: Jonas Gorski <[email protected]>
  8. ---
  9. .../bindings/pinctrl/brcm,bcm6358-pinctrl.txt | 44 ++++++++++++++++++++++
  10. 1 file changed, 44 insertions(+)
  11. create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.txt
  12. --- /dev/null
  13. +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.txt
  14. @@ -0,0 +1,44 @@
  15. +* Broadcom BCM6358 pin controller
  16. +
  17. +Required properties:
  18. +- compatible: Must be "brcm,bcm6358-pinctrl".
  19. +- reg: Register specifiers of dirout, dat registers.
  20. +- reg-names: Must be "dirout", "dat".
  21. +- brcm,gpiomode: Phandle to the shared gpiomode register.
  22. +- gpio-controller: Identifies this node as a gpio-controller.
  23. +- #gpio-cells: Must be <2>.
  24. +
  25. +Example:
  26. +
  27. +pinctrl: pin-controller@fffe0080 {
  28. + compatible = "brcm,bcm6358-pinctrl";
  29. + reg = <0xfffe0080 0x8>,
  30. + <0xfffe0088 0x8>,
  31. + <0xfffe0098 0x4>;
  32. + reg-names = "dirout", "dat";
  33. + brcm,gpiomode = <&gpiomode>;
  34. +
  35. + gpio-controller;
  36. + #gpio-cells = <2>;
  37. +};
  38. +
  39. +gpiomode: syscon@fffe0098 {
  40. + compatible = "brcm,bcm6358-gpiomode", "syscon";
  41. + reg = <0xfffe0098 0x4>;
  42. + native-endian;
  43. +};
  44. +
  45. +Available pins/groups and functions:
  46. +
  47. +name pins functions
  48. +-----------------------------------------------------------
  49. +ebi_cs_grp 30-31 ebi_cs
  50. +uart1_grp 28-31 uart1
  51. +spi_cs_grp 32-33 spi_cs
  52. +async_modem_grp 12-15 async_modem
  53. +legacy_led_grp 9-15 legacy_led
  54. +serial_led_grp 6-7 serial_led
  55. +led_grp 0-3 led
  56. +utopia_grp 12-15, 22-31 utopia
  57. +pwm_syn_clk_grp 8 pwm_syn_clk
  58. +sys_irq_grp 5 sys_irq