035-ARM-BCM5301X-Set-vcc-gpio-for-USB-controllers-of-few.patch 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. From dd70ccfaa79189feaa78609d44f7c3e7fa1dc6ff Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  3. Date: Wed, 23 Mar 2016 16:52:47 +0100
  4. Subject: [PATCH] ARM: BCM5301X: Set vcc-gpio for USB controllers of few
  5. devices
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. There are few devices that have USB power controlled using GPIO. Linux
  10. USB host driver (bcma-hcd) already supports this by reading vcc-gpio
  11. from DT. Set it properly for all known devices.
  12. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  13. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  14. ---
  15. --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  16. +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  17. @@ -139,3 +139,11 @@
  18. &uart0 {
  19. status = "okay";
  20. };
  21. +
  22. +&usb2 {
  23. + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  24. +};
  25. +
  26. +&usb3 {
  27. + vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  28. +};
  29. --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  30. +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  31. @@ -24,17 +24,6 @@
  32. reg = <0x00000000 0x08000000>;
  33. };
  34. - axi@18000000 {
  35. - usb3@23000 {
  36. - reg = <0x00023000 0x1000>;
  37. -
  38. - #address-cells = <1>;
  39. - #size-cells = <1>;
  40. -
  41. - vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  42. - };
  43. - };
  44. -
  45. leds {
  46. compatible = "gpio-leds";
  47. @@ -97,3 +86,7 @@
  48. &uart0 {
  49. status = "okay";
  50. };
  51. +
  52. +&usb3 {
  53. + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  54. +};
  55. --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
  56. +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
  57. @@ -126,3 +126,8 @@
  58. };
  59. };
  60. };
  61. +
  62. +
  63. +&usb2 {
  64. + vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  65. +};
  66. --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
  67. +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
  68. @@ -106,3 +106,11 @@
  69. };
  70. };
  71. };
  72. +
  73. +&usb2 {
  74. + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  75. +};
  76. +
  77. +&usb3 {
  78. + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  79. +};
  80. --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  81. +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  82. @@ -109,3 +109,7 @@
  83. status = "okay";
  84. clock-frequency = <125000000>;
  85. };
  86. +
  87. +&usb3 {
  88. + vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
  89. +};
  90. --- a/arch/arm/boot/dts/bcm5301x.dtsi
  91. +++ b/arch/arm/boot/dts/bcm5301x.dtsi
  92. @@ -207,6 +207,20 @@
  93. gpio-controller;
  94. #gpio-cells = <2>;
  95. };
  96. +
  97. + usb2: usb2@21000 {
  98. + reg = <0x00021000 0x1000>;
  99. +
  100. + #address-cells = <1>;
  101. + #size-cells = <1>;
  102. + };
  103. +
  104. + usb3: usb3@23000 {
  105. + reg = <0x00023000 0x1000>;
  106. +
  107. + #address-cells = <1>;
  108. + #size-cells = <1>;
  109. + };
  110. };
  111. lcpll0: lcpll0@1800c100 {