161-dt-sun5i-add-usb-host-bindings.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. From 1b5a1b92147936c5aa2acec1683663b4d22e9ae6 Mon Sep 17 00:00:00 2001
  2. From: Roman Byshko <rbyshko@gmail.com>
  3. Date: Tue, 24 Sep 2013 20:03:40 +0200
  4. Subject: [PATCH] ARM: sun5i: 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/sun5i-a10s.dtsi | 32 ++++++++++++++++++++++++++++++++
  10. arch/arm/boot/dts/sun5i-a13.dtsi | 32 ++++++++++++++++++++++++++++++++
  11. 2 files changed, 64 insertions(+)
  12. --- a/arch/arm/boot/dts/sun5i-a13.dtsi
  13. +++ b/arch/arm/boot/dts/sun5i-a13.dtsi
  14. @@ -320,6 +320,38 @@
  15. #size-cells = <0>;
  16. };
  17. + usbphy: phy@01c13400 {
  18. + #phy-cells = <1>;
  19. + compatible = "allwinner,sun5i-a13-usb-phy";
  20. + reg = <0x01c13400 0x10 0x01c14800 0x4>;
  21. + reg-names = "phy_ctrl", "pmu1";
  22. + clocks = <&usb_clk 8>;
  23. + clock-names = "usb_phy";
  24. + resets = <&usb_clk 1>;
  25. + reset-names = "usb1_reset";
  26. + status = "disabled";
  27. + };
  28. +
  29. + ehci0: usb@01c14000 {
  30. + compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
  31. + reg = <0x01c14000 0x100>;
  32. + interrupts = <39>;
  33. + clocks = <&ahb_gates 1>;
  34. + phys = <&usbphy 1>;
  35. + phy-names = "usb";
  36. + status = "disabled";
  37. + };
  38. +
  39. + ohci0: usb@01c14400 {
  40. + compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
  41. + reg = <0x01c14400 0x100>;
  42. + interrupts = <40>;
  43. + clocks = <&usb_clk 6>, <&ahb_gates 2>;
  44. + phys = <&usbphy 1>;
  45. + phy-names = "usb";
  46. + status = "disabled";
  47. + };
  48. +
  49. spi2: spi@01c17000 {
  50. compatible = "allwinner,sun4i-a10-spi";
  51. reg = <0x01c17000 0x1000>;