qcom-ipq4018-fritz4040.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. *
  15. */
  16. #include "qcom-ipq4019.dtsi"
  17. #include <dt-bindings/gpio/gpio.h>
  18. #include <dt-bindings/input/input.h>
  19. #include <dt-bindings/soc/qcom,tcsr.h>
  20. / {
  21. model = "AVM FRITZ!Box 4040";
  22. compatible = "avm,fritzbox-4040", "qcom,ipq4019";
  23. aliases {
  24. led-boot = &power;
  25. led-failsafe = &flash;
  26. led-running = &power;
  27. led-upgrade = &flash;
  28. };
  29. soc {
  30. mdio@90000 {
  31. status = "okay";
  32. };
  33. ess-psgmii@98000 {
  34. status = "okay";
  35. };
  36. tcsr@1949000 {
  37. compatible = "qcom,tcsr";
  38. reg = <0x1949000 0x100>;
  39. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  40. };
  41. tcsr@194b000 {
  42. compatible = "qcom,tcsr";
  43. reg = <0x194b000 0x100>;
  44. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  45. };
  46. ess_tcsr@1953000 {
  47. compatible = "qcom,tcsr";
  48. reg = <0x1953000 0x1000>;
  49. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  50. };
  51. tcsr@1957000 {
  52. compatible = "qcom,tcsr";
  53. reg = <0x1957000 0x100>;
  54. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  55. };
  56. usb2@60f8800 {
  57. status = "okay";
  58. };
  59. serial@78af000 {
  60. pinctrl-0 = <&serial_pins>;
  61. pinctrl-names = "default";
  62. status = "okay";
  63. };
  64. usb3@8af8800 {
  65. status = "okay";
  66. };
  67. crypto@8e3a000 {
  68. status = "okay";
  69. };
  70. wifi@a000000 {
  71. status = "okay";
  72. qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
  73. };
  74. wifi@a800000 {
  75. status = "okay";
  76. qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
  77. };
  78. watchdog@b017000 {
  79. status = "okay";
  80. };
  81. qca8075: ess-switch@c000000 {
  82. status = "okay";
  83. #gpio-cells = <2>;
  84. gpio-controller;
  85. enable-usb-power {
  86. gpio-hog;
  87. line-name = "enable USB3 power";
  88. gpios = <7 GPIO_ACTIVE_HIGH>;
  89. output-high;
  90. };
  91. };
  92. edma@c080000 {
  93. status = "okay";
  94. };
  95. };
  96. gpio-keys {
  97. compatible = "gpio-keys";
  98. wlan {
  99. label = "wlan";
  100. gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
  101. linux,code = <KEY_RFKILL>;
  102. };
  103. wps {
  104. label = "wps";
  105. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  106. linux,code = <KEY_WPS_BUTTON>;
  107. };
  108. };
  109. gpio-leds {
  110. compatible = "gpio-leds";
  111. wlan {
  112. label = "fritz4040:green:wlan";
  113. gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>;
  114. };
  115. panic: info_red {
  116. label = "fritz4040:red:info";
  117. gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>;
  118. panic-indicator;
  119. };
  120. wan {
  121. label = "fritz4040:green:wan";
  122. gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>;
  123. };
  124. power: power {
  125. label = "fritz4040:green:power";
  126. gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>;
  127. };
  128. lan {
  129. label = "fritz4040:green:lan";
  130. gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>;
  131. };
  132. flash: info_amber {
  133. label = "fritz4040:amber:info";
  134. gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>;
  135. };
  136. };
  137. };
  138. &tlmm {
  139. serial_pins: serial_pinmux {
  140. mux {
  141. pins = "gpio60", "gpio61";
  142. function = "blsp_uart0";
  143. bias-disable;
  144. };
  145. };
  146. spi_0_pins: spi_0_pinmux {
  147. mux {
  148. function = "blsp_spi0";
  149. pins = "gpio55", "gpio56", "gpio57";
  150. drive-strength = <12>;
  151. bias-disable;
  152. };
  153. mux_cs {
  154. function = "gpio";
  155. pins = "gpio54";
  156. drive-strength = <2>;
  157. bias-disable;
  158. output-high;
  159. };
  160. };
  161. };
  162. &cryptobam {
  163. status = "okay";
  164. };
  165. &blsp_dma {
  166. status = "okay";
  167. };
  168. &spi_0 { /* BLSP1 QUP1 */
  169. pinctrl-0 = <&spi_0_pins>;
  170. pinctrl-names = "default";
  171. status = "okay";
  172. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  173. mx25l25635f@0 {
  174. compatible = "jedec,spi-nor";
  175. #address-cells = <1>;
  176. #size-cells = <0>;
  177. reg = <0>;
  178. spi-max-frequency = <24000000>;
  179. status = "okay";
  180. m25p,fast-read;
  181. partitions {
  182. compatible = "fixed-partitions";
  183. #address-cells = <1>;
  184. #size-cells = <1>;
  185. partition0@0 {
  186. label = "SBL1";
  187. reg = <0x00000000 0x00040000>;
  188. read-only;
  189. };
  190. partition1@40000 {
  191. label = "MIBIB";
  192. reg = <0x00040000 0x00020000>;
  193. read-only;
  194. };
  195. partition2@60000 {
  196. label = "QSEE";
  197. reg = <0x00060000 0x00060000>;
  198. read-only;
  199. };
  200. partition3@c0000 {
  201. label = "CDT";
  202. reg = <0x000c0000 0x00010000>;
  203. read-only;
  204. };
  205. partition4@d0000 {
  206. label = "DDRPARAMS";
  207. reg = <0x000d0000 0x00010000>;
  208. read-only;
  209. };
  210. partition5@e0000 {
  211. label = "APPSBLENV"; /* uboot env - empty */
  212. reg = <0x000e0000 0x00010000>;
  213. read-only;
  214. };
  215. partition6@f0000 {
  216. label = "urlader"; /* APPSBL */
  217. reg = <0x000f0000 0x0002dc000>;
  218. read-only;
  219. };
  220. partition7@11dc00 {
  221. /* make a backup of this partition! */
  222. label = "urlader_config";
  223. reg = <0x0011dc00 0x00002400>;
  224. read-only;
  225. };
  226. partition8@120000 {
  227. label = "tffs1";
  228. reg = <0x00120000 0x00080000>;
  229. read-only;
  230. };
  231. partition9@1a0000 {
  232. label = "tffs2";
  233. reg = <0x001a0000 0x00080000>;
  234. read-only;
  235. };
  236. partition10@220000 {
  237. label = "uboot";
  238. reg = <0x00220000 0x00080000>;
  239. read-only;
  240. };
  241. partition11@2A0000 {
  242. label = "firmware";
  243. reg = <0x002a0000 0x01c60000>;
  244. };
  245. partition12@1f00000 {
  246. label = "jffs2";
  247. reg = <0x01f00000 0x00100000>;
  248. };
  249. };
  250. };
  251. };
  252. &usb3_ss_phy {
  253. status = "okay";
  254. };
  255. &usb3_hs_phy {
  256. status = "okay";
  257. };
  258. &usb2_hs_phy {
  259. status = "okay";
  260. };