qcom-ipq8064-vr2600v.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. #include "qcom-ipq8064-v2.0.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. model = "TP-Link Archer VR2600v";
  5. compatible = "tplink,vr2600v", "qcom,ipq8064";
  6. memory@0 {
  7. reg = <0x42000000 0x1e000000>;
  8. device_type = "memory";
  9. };
  10. aliases {
  11. mdio-gpio0 = &mdio0;
  12. led-boot = &power;
  13. led-failsafe = &general;
  14. led-running = &power;
  15. led-upgrade = &general;
  16. };
  17. keys {
  18. compatible = "gpio-keys";
  19. pinctrl-0 = <&button_pins>;
  20. pinctrl-names = "default";
  21. wifi {
  22. label = "wifi";
  23. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_RFKILL>;
  25. };
  26. reset {
  27. label = "reset";
  28. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
  29. linux,code = <KEY_RESTART>;
  30. };
  31. wps {
  32. label = "wps";
  33. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_WPS_BUTTON>;
  35. };
  36. dect {
  37. label = "dect";
  38. gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
  39. linux,code = <KEY_PHONE>;
  40. };
  41. ledswitch {
  42. label = "ledswitch";
  43. gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
  44. linux,code = <KEY_LIGHTS_TOGGLE>;
  45. };
  46. };
  47. leds {
  48. compatible = "gpio-leds";
  49. pinctrl-0 = <&led_pins>;
  50. pinctrl-names = "default";
  51. dsl {
  52. label = "white:dsl";
  53. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  54. };
  55. usb {
  56. label = "white:usb";
  57. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  58. };
  59. lan {
  60. label = "white:lan";
  61. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  62. };
  63. wlan2g {
  64. label = "white:wlan2g";
  65. gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
  66. };
  67. wlan5g {
  68. label = "white:wlan5g";
  69. gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
  70. };
  71. power: power {
  72. label = "white:power";
  73. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  74. default-state = "keep";
  75. };
  76. phone {
  77. label = "white:phone";
  78. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  79. };
  80. wan {
  81. label = "white:wan";
  82. gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
  83. };
  84. general: general {
  85. label = "white:general";
  86. gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
  87. };
  88. };
  89. };
  90. &qcom_pinmux {
  91. led_pins: led_pins {
  92. mux {
  93. pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
  94. "gpio26", "gpio53", "gpio56", "gpio66";
  95. function = "gpio";
  96. drive-strength = <2>;
  97. bias-pull-up;
  98. };
  99. };
  100. button_pins: button_pins {
  101. mux {
  102. pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
  103. function = "gpio";
  104. drive-strength = <2>;
  105. bias-pull-up;
  106. };
  107. };
  108. spi_pins: spi_pins {
  109. mux {
  110. pins = "gpio18", "gpio19", "gpio21";
  111. function = "gsbi5";
  112. bias-pull-down;
  113. };
  114. data {
  115. pins = "gpio18", "gpio19";
  116. drive-strength = <10>;
  117. };
  118. cs {
  119. pins = "gpio20";
  120. drive-strength = <10>;
  121. bias-pull-up;
  122. };
  123. clk {
  124. pins = "gpio21";
  125. drive-strength = <12>;
  126. };
  127. };
  128. };
  129. &gsbi5 {
  130. qcom,mode = <GSBI_PROT_SPI>;
  131. status = "okay";
  132. spi4: spi@1a280000 {
  133. status = "okay";
  134. pinctrl-0 = <&spi_pins>;
  135. pinctrl-names = "default";
  136. cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
  137. W25Q128@0 {
  138. compatible = "jedec,spi-nor";
  139. #address-cells = <1>;
  140. #size-cells = <1>;
  141. spi-max-frequency = <50000000>;
  142. reg = <0>;
  143. SBL1@0 {
  144. label = "SBL1";
  145. reg = <0x0 0x20000>;
  146. read-only;
  147. };
  148. MIBIB@20000 {
  149. label = "MIBIB";
  150. reg = <0x20000 0x20000>;
  151. read-only;
  152. };
  153. SBL2@40000 {
  154. label = "SBL2";
  155. reg = <0x40000 0x40000>;
  156. read-only;
  157. };
  158. SBL3@80000 {
  159. label = "SBL3";
  160. reg = <0x80000 0x80000>;
  161. read-only;
  162. };
  163. DDRCONFIG@100000 {
  164. label = "DDRCONFIG";
  165. reg = <0x100000 0x10000>;
  166. read-only;
  167. };
  168. SSD@110000 {
  169. label = "SSD";
  170. reg = <0x110000 0x10000>;
  171. read-only;
  172. };
  173. TZ@120000 {
  174. label = "TZ";
  175. reg = <0x120000 0x80000>;
  176. read-only;
  177. };
  178. RPM@1a0000 {
  179. label = "RPM";
  180. reg = <0x1a0000 0x80000>;
  181. read-only;
  182. };
  183. APPSBL@220000 {
  184. label = "APPSBL";
  185. reg = <0x220000 0x80000>;
  186. read-only;
  187. };
  188. APPSBLENV@2a0000 {
  189. label = "APPSBLENV";
  190. reg = <0x2a0000 0x40000>;
  191. read-only;
  192. };
  193. OLDART@2e0000 {
  194. label = "OLDART";
  195. reg = <0x2e0000 0x40000>;
  196. read-only;
  197. };
  198. kernel@320000 {
  199. label = "kernel";
  200. reg = <0x320000 0x300000>;
  201. };
  202. rootfs@620000 {
  203. label = "rootfs";
  204. reg = <0x620000 0x960000>;
  205. };
  206. defaultmac: default-mac@0xfaf100 {
  207. label = "default-mac";
  208. reg = <0xfaf100 0x00200>;
  209. read-only;
  210. };
  211. ART@fc0000 {
  212. label = "ART";
  213. reg = <0xfc0000 0x40000>;
  214. read-only;
  215. };
  216. };
  217. };
  218. };
  219. &usb3_0 {
  220. status = "okay";
  221. };
  222. &usb3_1 {
  223. status = "okay";
  224. };
  225. &pcie0 {
  226. status = "okay";
  227. };
  228. &pcie1 {
  229. status = "okay";
  230. max-link-speed = <1>;
  231. };
  232. &mdio0 {
  233. status = "okay";
  234. pinctrl-0 = <&mdio0_pins>;
  235. pinctrl-names = "default";
  236. phy0: ethernet-phy@0 {
  237. reg = <0>;
  238. qca,ar8327-initvals = <
  239. 0x00004 0x7600000 /* PAD0_MODE */
  240. 0x00008 0x1000000 /* PAD5_MODE */
  241. 0x0000c 0x80 /* PAD6_MODE */
  242. 0x000e4 0x6a545 /* MAC_POWER_SEL */
  243. 0x000e0 0xc74164de /* SGMII_CTRL */
  244. 0x0007c 0x4e /* PORT0_STATUS */
  245. 0x00094 0x4e /* PORT6_STATUS */
  246. >;
  247. };
  248. phy4: ethernet-phy@4 {
  249. reg = <4>;
  250. };
  251. };
  252. &gmac1 {
  253. status = "okay";
  254. phy-mode = "rgmii";
  255. qcom,id = <1>;
  256. pinctrl-0 = <&rgmii2_pins>;
  257. pinctrl-names = "default";
  258. mtd-mac-address = <&defaultmac 0>;
  259. mtd-mac-address-increment = <1>;
  260. fixed-link {
  261. speed = <1000>;
  262. full-duplex;
  263. };
  264. };
  265. &gmac2 {
  266. status = "okay";
  267. phy-mode = "sgmii";
  268. qcom,id = <2>;
  269. mtd-mac-address = <&defaultmac 0>;
  270. fixed-link {
  271. speed = <1000>;
  272. full-duplex;
  273. };
  274. };
  275. &adm_dma {
  276. status = "okay";
  277. };