2
0

0014-usb-host-add-DT-bindings-for-faraday-fotg2.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. From f9cfc45c57227448d4239e9582258587aacf34e7 Mon Sep 17 00:00:00 2001
  2. From: Hans Ulli Kroll <[email protected]>
  3. Date: Wed, 8 Feb 2017 21:00:09 +0100
  4. Subject: [PATCH 14/18] usb: host: add DT bindings for faraday fotg2
  5. This adds device tree bindings for the Faraday FOTG2
  6. dual-mode host controller.
  7. Cc: [email protected]
  8. Signed-off-by: Hans Ulli Kroll <[email protected]>
  9. Acked-by: Rob Herring <[email protected]>
  10. Signed-off-by: Linus Walleij <[email protected]>
  11. ---
  12. ChangeLog v1->v2:
  13. - Changed "OTH" to "OTG"
  14. - Collected Rob's ACK.
  15. - I don't see any problem with these bindings, but IIRC Hans
  16. had some reservations for the OTG mode, maybe we can strip
  17. some properties like the mini-usb thing and use as a starter
  18. so we can add host mode at least?
  19. ---
  20. .../bindings/usb/faraday,fotg210.txt | 35 +++++++++++++++++++
  21. 1 file changed, 35 insertions(+)
  22. create mode 100644 Documentation/devicetree/bindings/usb/faraday,fotg210.txt
  23. --- /dev/null
  24. +++ b/Documentation/devicetree/bindings/usb/faraday,fotg210.txt
  25. @@ -0,0 +1,35 @@
  26. +Faraday FOTG Host controller
  27. +
  28. +This OTG-capable USB host controller is found in Cortina Systems
  29. +Gemini and other SoC products.
  30. +
  31. +Required properties:
  32. +- compatible: should be one of:
  33. + "faraday,fotg210"
  34. + "cortina,gemini-usb", "faraday,fotg210"
  35. +- reg: should contain one register range i.e. start and length
  36. +- interrupts: description of the interrupt line
  37. +
  38. +Optional properties:
  39. +- clocks: should contain the IP block clock
  40. +- clock-names: should be "PCLK" for the IP block clock
  41. +
  42. +Required properties for "cortina,gemini-usb" compatible:
  43. +- syscon: a phandle to the system controller to access PHY registers
  44. +
  45. +Optional properties for "cortina,gemini-usb" compatible:
  46. +- cortina,gemini-mini-b: boolean property that indicates that a Mini-B
  47. + OTG connector is in use
  48. +- wakeup-source: see power/wakeup-source.txt
  49. +
  50. +Example for Gemini:
  51. +
  52. +usb@68000000 {
  53. + compatible = "cortina,gemini-usb", "faraday,fotg210";
  54. + reg = <0x68000000 0x1000>;
  55. + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
  56. + clocks = <&cc 12>;
  57. + clock-names = "PCLK";
  58. + syscon = <&syscon>;
  59. + wakeup-source;
  60. +};