qcom-ipq4019-fritz4040.dts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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 "qcom-ipq4019-bus.dtsi"
  18. #include <dt-bindings/gpio/gpio.h>
  19. #include <dt-bindings/input/input.h>
  20. #include <dt-bindings/soc/qcom,tcsr.h>
  21. / {
  22. model = "AVM FRITZ!Box 4040";
  23. compatible = "avm,fritzbox-4040", "qcom,ipq4019";
  24. aliases {
  25. led-boot = &power;
  26. led-failsafe = &flash;
  27. led-running = &power;
  28. led-upgrade = &flash;
  29. };
  30. reserved-memory {
  31. #address-cells = <0x1>;
  32. #size-cells = <0x1>;
  33. ranges;
  34. tz_apps@87b80000 {
  35. reg = <0x87b80000 0x280000>;
  36. reusable;
  37. };
  38. smem@87e00000 {
  39. reg = <0x87e00000 0x080000>;
  40. no-map;
  41. };
  42. tz@87e80000 {
  43. reg = <0x87e80000 0x180000>;
  44. no-map;
  45. };
  46. };
  47. soc {
  48. mdio@90000 {
  49. status = "okay";
  50. };
  51. ess-psgmii@98000 {
  52. status = "okay";
  53. };
  54. tcsr@1949000 {
  55. compatible = "qcom,tcsr";
  56. reg = <0x1949000 0x100>;
  57. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  58. };
  59. tcsr@194b000 {
  60. compatible = "qcom,tcsr";
  61. reg = <0x194b000 0x100>;
  62. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  63. };
  64. ess_tcsr@1953000 {
  65. compatible = "qcom,tcsr";
  66. reg = <0x1953000 0x1000>;
  67. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  68. };
  69. tcsr@1957000 {
  70. compatible = "qcom,tcsr";
  71. reg = <0x1957000 0x100>;
  72. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  73. };
  74. usb2@60f8800 {
  75. status = "ok";
  76. };
  77. serial@78af000 {
  78. pinctrl-0 = <&serial_pins>;
  79. pinctrl-names = "default";
  80. status = "ok";
  81. };
  82. usb3@8af8800 {
  83. status = "ok";
  84. };
  85. crypto@8e3a000 {
  86. status = "ok";
  87. };
  88. wifi@a000000 {
  89. status = "okay";
  90. };
  91. wifi@a800000 {
  92. status = "okay";
  93. };
  94. watchdog@b017000 {
  95. status = "ok";
  96. };
  97. qca8075: ess-switch@c000000 {
  98. status = "okay";
  99. #gpio-cells = <2>;
  100. gpio-controller;
  101. enable-usb-power {
  102. gpio-hog;
  103. line-name = "enable USB3 power";
  104. gpios = <7 GPIO_ACTIVE_HIGH>;
  105. output-high;
  106. };
  107. };
  108. edma@c080000 {
  109. status = "okay";
  110. };
  111. };
  112. gpio-keys {
  113. compatible = "gpio-keys";
  114. wlan {
  115. label = "wlan";
  116. gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
  117. linux,code = <KEY_RFKILL>;
  118. };
  119. wps {
  120. label = "wps";
  121. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  122. linux,code = <KEY_WPS_BUTTON>;
  123. };
  124. };
  125. gpio-leds {
  126. compatible = "gpio-leds";
  127. wlan {
  128. label = "fritz4040:green:wlan";
  129. gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>;
  130. };
  131. panic: info_red {
  132. label = "fritz4040:red:info";
  133. gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>;
  134. panic-indicator;
  135. };
  136. wan {
  137. label = "fritz4040:green:wan";
  138. gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>;
  139. };
  140. power: power {
  141. label = "fritz4040:green:power";
  142. gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>;
  143. };
  144. lan {
  145. label = "fritz4040:green:lan";
  146. gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>;
  147. };
  148. flash: info_amber {
  149. label = "fritz4040:amber:info";
  150. gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>;
  151. };
  152. };
  153. };
  154. &tlmm {
  155. serial_pins: serial_pinmux {
  156. mux {
  157. pins = "gpio60", "gpio61";
  158. function = "blsp_uart0";
  159. bias-disable;
  160. };
  161. };
  162. spi_0_pins: spi_0_pinmux {
  163. mux {
  164. function = "blsp_spi0";
  165. pins = "gpio55", "gpio56", "gpio57";
  166. drive-strength = <12>;
  167. bias-disable;
  168. };
  169. mux_cs {
  170. function = "gpio";
  171. pins = "gpio54";
  172. drive-strength = <2>;
  173. bias-disable;
  174. output-high;
  175. };
  176. };
  177. };
  178. &cryptobam {
  179. status = "ok";
  180. };
  181. &blsp_dma {
  182. status = "ok";
  183. };
  184. &spi_0 { /* BLSP1 QUP1 */
  185. pinctrl-0 = <&spi_0_pins>;
  186. pinctrl-names = "default";
  187. status = "ok";
  188. cs-gpios = <&tlmm 54 0>;
  189. mx25l25635f@0 {
  190. compatible = "jedec,spi-nor";
  191. #address-cells = <1>;
  192. #size-cells = <0>;
  193. reg = <0>;
  194. spi-max-frequency = <24000000>;
  195. status = "ok";
  196. m25p,fast-read;
  197. partitions {
  198. compatible = "fixed-partitions";
  199. #address-cells = <1>;
  200. #size-cells = <1>;
  201. partition0@0 {
  202. label = "SBL1";
  203. reg = <0x00000000 0x00040000>;
  204. read-only;
  205. };
  206. partition1@40000 {
  207. label = "MIBIB";
  208. reg = <0x00040000 0x00020000>;
  209. read-only;
  210. };
  211. partition2@60000 {
  212. label = "QSEE";
  213. reg = <0x00060000 0x00060000>;
  214. read-only;
  215. };
  216. partition3@c0000 {
  217. label = "CDT";
  218. reg = <0x000c0000 0x00010000>;
  219. read-only;
  220. };
  221. partition4@d0000 {
  222. label = "DDRPARAMS";
  223. reg = <0x000d0000 0x00010000>;
  224. read-only;
  225. };
  226. partition5@e0000 {
  227. label = "APPSBLENV"; /* uboot env - empty */
  228. reg = <0x000e0000 0x00010000>;
  229. read-only;
  230. };
  231. partition6@f0000 {
  232. label = "urlader"; /* APPSBL */
  233. reg = <0x000f0000 0x0002dc000>;
  234. read-only;
  235. };
  236. partition7@11dc00 {
  237. /* make a backup of this partition! */
  238. label = "urlader_config";
  239. reg = <0x0011dc00 0x00002400>;
  240. read-only;
  241. };
  242. partition8@120000 {
  243. label = "tffs1";
  244. reg = <0x00120000 0x00080000>;
  245. read-only;
  246. };
  247. partition9@1a0000 {
  248. label = "tffs2";
  249. reg = <0x001a0000 0x00080000>;
  250. read-only;
  251. };
  252. partition10@220000 {
  253. label = "uboot";
  254. reg = <0x00220000 0x00080000>;
  255. read-only;
  256. };
  257. partition11@2A0000 {
  258. label = "firmware";
  259. reg = <0x002a0000 0x01c60000>;
  260. };
  261. partition12@1f00000 {
  262. label = "jffs2";
  263. reg = <0x01f00000 0x00100000>;
  264. };
  265. };
  266. };
  267. };
  268. &usb3_ss_phy {
  269. status = "ok";
  270. };
  271. &usb3_hs_phy {
  272. status = "ok";
  273. };
  274. &usb2_hs_phy {
  275. status = "ok";
  276. };