qcom-ipq8064-vr2600v.dts 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. #include "qcom-ipq8064-v1.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. reserved-memory {
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. ranges;
  14. rsvd@41200000 {
  15. reg = <0x41200000 0x300000>;
  16. no-map;
  17. };
  18. };
  19. aliases {
  20. serial0 = &uart4;
  21. mdio-gpio0 = &mdio0;
  22. led-boot = &power;
  23. led-failsafe = &general;
  24. led-running = &power;
  25. led-upgrade = &general;
  26. };
  27. chosen {
  28. linux,stdout-path = "serial0:115200n8";
  29. };
  30. soc {
  31. pinmux@800000 {
  32. led_pins: led_pins {
  33. mux {
  34. pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
  35. "gpio26", "gpio53", "gpio56", "gpio66";
  36. function = "gpio";
  37. drive-strength = <2>;
  38. bias-pull-up;
  39. };
  40. };
  41. i2c4_pins: i2c4_pinmux {
  42. mux {
  43. pins = "gpio12", "gpio13";
  44. function = "gsbi4";
  45. drive-strength = <12>;
  46. bias-disable;
  47. };
  48. };
  49. button_pins: button_pins {
  50. mux {
  51. pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
  52. function = "gpio";
  53. drive-strength = <2>;
  54. bias-pull-up;
  55. };
  56. };
  57. spi_pins: spi_pins {
  58. mux {
  59. pins = "gpio18", "gpio19", "gpio21";
  60. function = "gsbi5";
  61. bias-pull-down;
  62. };
  63. data {
  64. pins = "gpio18", "gpio19";
  65. drive-strength = <10>;
  66. };
  67. cs {
  68. pins = "gpio20";
  69. drive-strength = <10>;
  70. bias-pull-up;
  71. };
  72. clk {
  73. pins = "gpio21";
  74. drive-strength = <12>;
  75. };
  76. };
  77. mdio0_pins: mdio0_pins {
  78. mux {
  79. pins = "gpio0", "gpio1";
  80. function = "gpio";
  81. drive-strength = <8>;
  82. bias-disable;
  83. };
  84. };
  85. rgmii2_pins: rgmii2_pins {
  86. mux {
  87. pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
  88. "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
  89. function = "rgmii2";
  90. drive-strength = <8>;
  91. bias-disable;
  92. };
  93. };
  94. };
  95. gsbi@16300000 {
  96. qcom,mode = <GSBI_PROT_I2C_UART>;
  97. status = "ok";
  98. serial@16340000 {
  99. status = "ok";
  100. };
  101. /*
  102. * The i2c device on gsbi4 should not be enabled.
  103. * On ipq806x designs gsbi4 i2c is meant for exclusive
  104. * RPM usage. Turning this on in kernel manifests as
  105. * i2c failure for the RPM.
  106. */
  107. };
  108. gsbi5: gsbi@1a200000 {
  109. qcom,mode = <GSBI_PROT_SPI>;
  110. status = "ok";
  111. spi4: spi@1a280000 {
  112. status = "ok";
  113. pinctrl-0 = <&spi_pins>;
  114. pinctrl-names = "default";
  115. cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
  116. flash: W25Q128@0 {
  117. compatible = "jedec,spi-nor";
  118. #address-cells = <1>;
  119. #size-cells = <1>;
  120. spi-max-frequency = <50000000>;
  121. reg = <0>;
  122. SBL1@0 {
  123. label = "SBL1";
  124. reg = <0x0 0x20000>;
  125. read-only;
  126. };
  127. MIBIB@20000 {
  128. label = "MIBIB";
  129. reg = <0x20000 0x20000>;
  130. read-only;
  131. };
  132. SBL2@40000 {
  133. label = "SBL2";
  134. reg = <0x40000 0x40000>;
  135. read-only;
  136. };
  137. SBL3@80000 {
  138. label = "SBL3";
  139. reg = <0x80000 0x80000>;
  140. read-only;
  141. };
  142. DDRCONFIG@100000 {
  143. label = "DDRCONFIG";
  144. reg = <0x100000 0x10000>;
  145. read-only;
  146. };
  147. SSD@110000 {
  148. label = "SSD";
  149. reg = <0x110000 0x10000>;
  150. read-only;
  151. };
  152. TZ@120000 {
  153. label = "TZ";
  154. reg = <0x120000 0x80000>;
  155. read-only;
  156. };
  157. RPM@1a0000 {
  158. label = "RPM";
  159. reg = <0x1a0000 0x80000>;
  160. read-only;
  161. };
  162. APPSBL@220000 {
  163. label = "APPSBL";
  164. reg = <0x220000 0x80000>;
  165. read-only;
  166. };
  167. APPSBLENV@2a0000 {
  168. label = "APPSBLENV";
  169. reg = <0x2a0000 0x40000>;
  170. read-only;
  171. };
  172. OLDART@2e0000 {
  173. label = "OLDART";
  174. reg = <0x2e0000 0x40000>;
  175. read-only;
  176. };
  177. kernel@320000 {
  178. label = "kernel";
  179. reg = <0x320000 0x200000>;
  180. };
  181. rootfs@520000 {
  182. label = "rootfs";
  183. reg = <0x520000 0xa60000>;
  184. };
  185. defaultmac: default-mac@0xfaf100 {
  186. label = "default-mac";
  187. reg = <0xfaf100 0x00200>;
  188. read-only;
  189. };
  190. ART@fc0000 {
  191. label = "ART";
  192. reg = <0xfc0000 0x40000>;
  193. read-only;
  194. };
  195. };
  196. };
  197. };
  198. phy@100f8800 { /* USB3 port 1 HS phy */
  199. status = "ok";
  200. };
  201. phy@100f8830 { /* USB3 port 1 SS phy */
  202. status = "ok";
  203. };
  204. phy@110f8800 { /* USB3 port 0 HS phy */
  205. status = "ok";
  206. };
  207. phy@110f8830 { /* USB3 port 0 SS phy */
  208. status = "ok";
  209. };
  210. usb30@0 {
  211. status = "ok";
  212. };
  213. usb30@1 {
  214. status = "ok";
  215. };
  216. pcie0: pci@1b500000 {
  217. status = "ok";
  218. phy-tx0-term-offset = <7>;
  219. };
  220. pcie1: pci@1b700000 {
  221. status = "ok";
  222. phy-tx0-term-offset = <7>;
  223. };
  224. mdio0: mdio {
  225. compatible = "virtual,mdio-gpio";
  226. #address-cells = <1>;
  227. #size-cells = <0>;
  228. gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
  229. pinctrl-0 = <&mdio0_pins>;
  230. pinctrl-names = "default";
  231. phy0: ethernet-phy@0 {
  232. device_type = "ethernet-phy";
  233. reg = <0>;
  234. qca,ar8327-initvals = <
  235. 0x00004 0x7600000 /* PAD0_MODE */
  236. 0x00008 0x1000000 /* PAD5_MODE */
  237. 0x0000c 0x80 /* PAD6_MODE */
  238. 0x000e4 0x6a545 /* MAC_POWER_SEL */
  239. 0x000e0 0xc74164de /* SGMII_CTRL */
  240. 0x0007c 0x4e /* PORT0_STATUS */
  241. 0x00094 0x4e /* PORT6_STATUS */
  242. >;
  243. };
  244. phy4: ethernet-phy@4 {
  245. device_type = "ethernet-phy";
  246. reg = <4>;
  247. };
  248. };
  249. gmac1: ethernet@37200000 {
  250. status = "ok";
  251. phy-mode = "rgmii";
  252. qcom,id = <1>;
  253. pinctrl-0 = <&rgmii2_pins>;
  254. pinctrl-names = "default";
  255. mtd-mac-address = <&defaultmac 0>;
  256. mtd-mac-address-increment = <1>;
  257. fixed-link {
  258. speed = <1000>;
  259. full-duplex;
  260. };
  261. };
  262. gmac2: ethernet@37400000 {
  263. status = "ok";
  264. phy-mode = "sgmii";
  265. qcom,id = <2>;
  266. mtd-mac-address = <&defaultmac 0>;
  267. fixed-link {
  268. speed = <1000>;
  269. full-duplex;
  270. };
  271. };
  272. rpm@108000 {
  273. pinctrl-0 = <&i2c4_pins>;
  274. pinctrl-names = "default";
  275. };
  276. };
  277. gpio-keys {
  278. compatible = "gpio-keys";
  279. pinctrl-0 = <&button_pins>;
  280. pinctrl-names = "default";
  281. wifi {
  282. label = "wifi";
  283. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  284. linux,code = <KEY_RFKILL>;
  285. };
  286. reset {
  287. label = "reset";
  288. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
  289. linux,code = <KEY_RESTART>;
  290. };
  291. wps {
  292. label = "wps";
  293. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  294. linux,code = <KEY_WPS_BUTTON>;
  295. };
  296. dect {
  297. label = "dect";
  298. gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
  299. linux,code = <KEY_PHONE>;
  300. };
  301. ledswitch {
  302. label = "ledswitch";
  303. gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
  304. linux,code = <KEY_LIGHTS_TOGGLE>;
  305. };
  306. };
  307. gpio-leds {
  308. compatible = "gpio-leds";
  309. pinctrl-0 = <&led_pins>;
  310. pinctrl-names = "default";
  311. dsl {
  312. label = "vr2600v:white:dsl";
  313. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  314. };
  315. usb {
  316. label = "vr2600v:white:usb";
  317. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  318. };
  319. lan {
  320. label = "vr2600v:white:lan";
  321. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  322. };
  323. wlan2g {
  324. label = "vr2600v:white:wlan2g";
  325. gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
  326. };
  327. wlan5g {
  328. label = "vr2600v:white:wlan5g";
  329. gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
  330. };
  331. power: power {
  332. label = "vr2600v:white:power";
  333. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  334. default-state = "keep";
  335. };
  336. phone {
  337. label = "vr2600v:white:phone";
  338. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  339. };
  340. wan {
  341. label = "vr2600v:white:wan";
  342. gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
  343. };
  344. general: general {
  345. label = "vr2600v:white:general";
  346. gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
  347. };
  348. };
  349. };
  350. &adm_dma {
  351. status = "ok";
  352. };