qcom-ipq8065-tr4400-v2.dts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "qcom-ipq8065-smb208.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Arris TR4400 v2";
  6. compatible = "arris,tr4400-v2", "qcom,ipq8065", "qcom,ipq8064";
  7. memory@0 {
  8. reg = <0x42000000 0x1e000000>;
  9. device_type = "memory";
  10. };
  11. aliases {
  12. led-boot = &led_status_blue;
  13. led-failsafe = &led_status_red;
  14. led-running = &led_status_blue;
  15. led-upgrade = &led_status_red;
  16. };
  17. chosen {
  18. bootargs = "rootfstype=squashfs noinitrd";
  19. };
  20. keys {
  21. compatible = "gpio-keys";
  22. pinctrl-0 = <&button_pins>;
  23. pinctrl-names = "default";
  24. reset {
  25. label = "reset";
  26. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. debounce-interval = <60>;
  29. wakeup-source;
  30. };
  31. wps {
  32. label = "wps";
  33. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_WPS_BUTTON>;
  35. debounce-interval = <60>;
  36. wakeup-source;
  37. };
  38. };
  39. leds {
  40. compatible = "gpio-leds";
  41. pinctrl-0 = <&led_pins>;
  42. pinctrl-names = "default";
  43. led_status_red: status_red {
  44. label = "red:status";
  45. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  46. };
  47. led_status_blue: status_blue {
  48. label = "blue:status";
  49. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  50. };
  51. };
  52. };
  53. &qcom_pinmux {
  54. button_pins: button_pins {
  55. mux {
  56. pins = "gpio6", "gpio54";
  57. function = "gpio";
  58. drive-strength = <2>;
  59. bias-pull-up;
  60. };
  61. };
  62. led_pins: led_pins {
  63. mux {
  64. pins = "gpio7", "gpio8";
  65. function = "gpio";
  66. drive-strength = <2>;
  67. bias-pull-down;
  68. };
  69. };
  70. rgmii2_pins: rgmii2-pins {
  71. tx {
  72. pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32";
  73. input-disable;
  74. };
  75. };
  76. spi_pins: spi_pins {
  77. cs {
  78. pins = "gpio20";
  79. drive-strength = <12>;
  80. };
  81. };
  82. };
  83. &gsbi5 {
  84. qcom,mode = <GSBI_PROT_SPI>;
  85. status = "okay";
  86. spi@1a280000 {
  87. status = "okay";
  88. pinctrl-0 = <&spi_pins>;
  89. pinctrl-names = "default";
  90. cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
  91. flash@0 {
  92. compatible = "everspin,mr25h256";
  93. spi-max-frequency = <40000000>;
  94. reg = <0>;
  95. };
  96. };
  97. };
  98. &nand {
  99. status = "okay";
  100. nand@0 {
  101. reg = <0>;
  102. compatible = "qcom,nandcs";
  103. nand-ecc-strength = <4>;
  104. nand-bus-width = <8>;
  105. nand-ecc-step-size = <512>;
  106. qcom,boot-partitions = <0x0 0x1180000 0x5340000 0x6400000>;
  107. partitions {
  108. compatible = "fixed-partitions";
  109. #address-cells = <1>;
  110. #size-cells = <1>;
  111. partition@0 {
  112. label = "0:SBL1";
  113. reg = <0x0000000 0x0040000>;
  114. read-only;
  115. };
  116. partition@40000 {
  117. label = "0:MIBIB";
  118. reg = <0x0040000 0x0140000>;
  119. read-only;
  120. };
  121. partition@180000 {
  122. label = "0:SBL2";
  123. reg = <0x0180000 0x0140000>;
  124. read-only;
  125. };
  126. partition@2c0000 {
  127. label = "0:SBL3";
  128. reg = <0x02c0000 0x0280000>;
  129. read-only;
  130. };
  131. partition@540000 {
  132. label = "0:DDRCONFIG";
  133. reg = <0x0540000 0x0120000>;
  134. read-only;
  135. };
  136. partition@660000 {
  137. label = "0:SSD";
  138. reg = <0x0660000 0x0120000>;
  139. read-only;
  140. };
  141. partition@780000 {
  142. label = "0:TZ";
  143. reg = <0x0780000 0x0280000>;
  144. read-only;
  145. };
  146. partition@a00000 {
  147. label = "0:RPM";
  148. reg = <0x0a00000 0x0280000>;
  149. read-only;
  150. };
  151. partition@c80000 {
  152. label = "0:APPSBL";
  153. reg = <0x0c80000 0x0500000>;
  154. read-only;
  155. };
  156. partition@1180000 {
  157. label = "0:APPSBLENV";
  158. reg = <0x1180000 0x0080000>;
  159. };
  160. partition@1200000 {
  161. label = "0:ART";
  162. reg = <0x1200000 0x0140000>;
  163. read-only;
  164. compatible = "nvmem-cells";
  165. #address-cells = <1>;
  166. #size-cells = <1>;
  167. precal_ART_1000: precal@1000 {
  168. reg = <0x1000 0x2f20>;
  169. };
  170. precal_ART_5000: precal@5000 {
  171. reg = <0x5000 0x2f20>;
  172. };
  173. };
  174. stock_partition@1340000 {
  175. label = "stock_rootfs";
  176. reg = <0x1340000 0x4000000>;
  177. };
  178. partition@5340000 {
  179. label = "0:BOOTCONFIG";
  180. reg = <0x5340000 0x0060000>;
  181. read-only;
  182. };
  183. partition@53a0000 {
  184. label = "0:SBL2_1";
  185. reg = <0x53a0000 0x0140000>;
  186. read-only;
  187. };
  188. partition@54e0000 {
  189. label = "0:SBL3_1";
  190. reg = <0x54e0000 0x0280000>;
  191. read-only;
  192. };
  193. partition@5760000 {
  194. label = "0:DDRCONFIG_1";
  195. reg = <0x5760000 0x0120000>;
  196. read-only;
  197. };
  198. partition@5880000 {
  199. label = "0:SSD_1";
  200. reg = <0x5880000 0x0120000>;
  201. read-only;
  202. };
  203. partition@59a0000 {
  204. label = "0:TZ_1";
  205. reg = <0x59a0000 0x0280000>;
  206. read-only;
  207. };
  208. partition@5c20000 {
  209. label = "0:RPM_1";
  210. reg = <0x5c20000 0x0280000>;
  211. read-only;
  212. };
  213. partition@5ea0000 {
  214. label = "0:BOOTCONFIG1";
  215. reg = <0x5ea0000 0x0060000>;
  216. read-only;
  217. };
  218. partition@5f00000 {
  219. label = "0:APPSBL_1";
  220. reg = <0x5f00000 0x0500000>;
  221. read-only;
  222. };
  223. stock_partition@6400000 {
  224. label = "stock_rootfs_1";
  225. reg = <0x6400000 0x4000000>;
  226. };
  227. stock_partition@a400000 {
  228. label = "stock_fw_env";
  229. reg = <0xa400000 0x0100000>;
  230. };
  231. stock_partition@a500000 {
  232. label = "stock_config";
  233. reg = <0xa500000 0x0800000>;
  234. };
  235. stock_partition@ad00000 {
  236. label = "stock_PKI";
  237. reg = <0xad00000 0x0200000>;
  238. };
  239. stock_partition@af00000 {
  240. label = "stock_scfgmgr";
  241. reg = <0xaf00000 0x0100000>;
  242. };
  243. partition@6400000 {
  244. label = "fw_env";
  245. reg = <0x6400000 0x0100000>;
  246. compatible = "nvmem-cells";
  247. #address-cells = <1>;
  248. #size-cells = <1>;
  249. macaddr_fw_env_0: macaddr@0 {
  250. reg = <0x00 0x6>;
  251. };
  252. macaddr_fw_env_6: macaddr@6 {
  253. reg = <0x06 0x6>;
  254. };
  255. macaddr_fw_env_c: macaddr@c {
  256. reg = <0x0c 0x6>;
  257. };
  258. macaddr_fw_env_12: macaddr@12 {
  259. reg = <0x12 0x6>;
  260. };
  261. macaddr_fw_env_18: macaddr@18 {
  262. reg = <0x18 0x6>;
  263. };
  264. };
  265. partition@6500000 {
  266. label = "ubi";
  267. reg = <0x6500000 0x9b00000>;
  268. };
  269. partition@1340000 {
  270. label = "extra";
  271. reg = <0x1340000 0x4000000>;
  272. };
  273. };
  274. };
  275. };
  276. &mdio0 {
  277. status = "okay";
  278. pinctrl-0 = <&mdio0_pins>;
  279. pinctrl-names = "default";
  280. ethernet-phy@0 {
  281. reg = <0x0>;
  282. qca,ar8327-initvals = <
  283. 0x00004 0x7600000 /* PAD0_MODE */
  284. 0x00008 0x1000000 /* PAD5_MODE */
  285. 0x0000c 0x80 /* PAD6_MODE */
  286. 0x000e4 0xaa545 /* MAC_POWER_SEL */
  287. 0x000e0 0xc74164de /* SGMII_CTRL */
  288. 0x0007c 0x4e /* PORT0_STATUS */
  289. 0x00094 0x4e /* PORT6_STATUS */
  290. >;
  291. };
  292. phy7: ethernet-phy@7 {
  293. reg = <7>;
  294. };
  295. };
  296. &gmac0 {
  297. status = "okay";
  298. phy-mode = "rgmii";
  299. qcom,id = <0>;
  300. nvmem-cells = <&macaddr_fw_env_18>;
  301. nvmem-cell-names = "mac-address";
  302. pinctrl-0 = <&rgmii2_pins>;
  303. pinctrl-names = "default";
  304. fixed-link {
  305. speed = <1000>;
  306. full-duplex;
  307. };
  308. };
  309. &gmac1 {
  310. status = "okay";
  311. phy-mode = "sgmii";
  312. qcom,id = <1>;
  313. nvmem-cells = <&macaddr_fw_env_0>;
  314. nvmem-cell-names = "mac-address";
  315. fixed-link {
  316. speed = <1000>;
  317. full-duplex;
  318. };
  319. };
  320. &gmac3 {
  321. status = "okay";
  322. phy-mode = "sgmii";
  323. qcom,id = <3>;
  324. phy-handle = <&phy7>;
  325. nvmem-cells = <&macaddr_fw_env_6>;
  326. nvmem-cell-names = "mac-address";
  327. };
  328. &adm_dma {
  329. status = "okay";
  330. };
  331. &usb3_1 {
  332. status = "okay";
  333. };
  334. &pcie0 {
  335. status = "okay";
  336. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
  337. pinctrl-0 = <&pcie0_pins>;
  338. pinctrl-names = "default";
  339. bridge@0,0 {
  340. reg = <0x00000000 0 0 0 0>;
  341. #address-cells = <3>;
  342. #size-cells = <2>;
  343. ranges;
  344. wifi0: wifi@1,0 {
  345. compatible = "pci168c,0046";
  346. reg = <0x00010000 0 0 0 0>;
  347. nvmem-cells = <&precal_ART_1000>, <&macaddr_fw_env_12>;
  348. nvmem-cell-names = "pre-calibration", "mac-address";
  349. };
  350. };
  351. };
  352. &pcie1 {
  353. status = "okay";
  354. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
  355. pinctrl-0 = <&pcie1_pins>;
  356. pinctrl-names = "default";
  357. max-link-speed = <1>;
  358. bridge@0,0 {
  359. reg = <0x00000000 0 0 0 0>;
  360. #address-cells = <3>;
  361. #size-cells = <2>;
  362. ranges;
  363. wifi1: wifi@1,0 {
  364. compatible = "pci168c,0040";
  365. reg = <0x00010000 0 0 0 0>;
  366. nvmem-cells = <&precal_ART_5000>, <&macaddr_fw_env_c>;
  367. nvmem-cell-names = "pre-calibration", "mac-address";
  368. };
  369. };
  370. };