162-dt-sun7i-add-usb-host-bindings.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. From 008dffff2fa751c988671c4fc0c9a404ea808280 Mon Sep 17 00:00:00 2001
  2. From: Roman Byshko <rbyshko@gmail.com>
  3. Date: Thu, 19 Sep 2013 21:36:10 +0200
  4. Subject: [PATCH] ARM: sun7i: dt: Add USB host bindings
  5. Add nodes for the usb-phy and ehci- and ohci-usb-host controllers.
  6. Signed-off-by: Roman Byshko <rbyshko@gmail.com>
  7. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  8. ---
  9. arch/arm/boot/dts/sun7i-a20.dtsi | 52 ++++++++++++++++++++++++++++++++++++++++
  10. 1 file changed, 52 insertions(+)
  11. --- a/arch/arm/boot/dts/sun7i-a20.dtsi
  12. +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
  13. @@ -439,6 +439,38 @@
  14. #size-cells = <0>;
  15. };
  16. + usbphy: phy@01c13400 {
  17. + #phy-cells = <1>;
  18. + compatible = "allwinner,sun7i-a20-usb-phy";
  19. + reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
  20. + reg-names = "phy_ctrl", "pmu1", "pmu2";
  21. + clocks = <&usb_clk 8>;
  22. + clock-names = "usb_phy";
  23. + resets = <&usb_clk 1>, <&usb_clk 2>;
  24. + reset-names = "usb1_reset", "usb2_reset";
  25. + status = "disabled";
  26. + };
  27. +
  28. + ehci0: usb@01c14000 {
  29. + compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
  30. + reg = <0x01c14000 0x100>;
  31. + interrupts = <0 39 4>;
  32. + clocks = <&ahb_gates 1>;
  33. + phys = <&usbphy 1>;
  34. + phy-names = "usb";
  35. + status = "disabled";
  36. + };
  37. +
  38. + ohci0: usb@01c14400 {
  39. + compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
  40. + reg = <0x01c14400 0x100>;
  41. + interrupts = <0 64 4>;
  42. + clocks = <&usb_clk 6>, <&ahb_gates 2>;
  43. + phys = <&usbphy 1>;
  44. + phy-names = "usb";
  45. + status = "disabled";
  46. + };
  47. +
  48. spi2: spi@01c17000 {
  49. compatible = "allwinner,sun4i-a10-spi";
  50. reg = <0x01c17000 0x1000>;
  51. @@ -458,6 +490,26 @@
  52. status = "disabled";
  53. };
  54. + ehci1: usb@01c1c000 {
  55. + compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
  56. + reg = <0x01c1c000 0x100>;
  57. + interrupts = <0 40 4>;
  58. + clocks = <&ahb_gates 3>;
  59. + phys = <&usbphy 2>;
  60. + phy-names = "usb";
  61. + status = "disabled";
  62. + };
  63. +
  64. + ohci1: usb@01c1c400 {
  65. + compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
  66. + reg = <0x01c1c400 0x100>;
  67. + interrupts = <0 65 4>;
  68. + clocks = <&usb_clk 7>, <&ahb_gates 4>;
  69. + phys = <&usbphy 2>;
  70. + phy-names = "usb";
  71. + status = "disabled";
  72. + };
  73. +
  74. spi3: spi@01c1f000 {
  75. compatible = "allwinner,sun4i-a10-spi";
  76. reg = <0x01c1f000 0x1000>;