qcom-ipq8065-tr4400-v2.dts 9.1 KB

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