qcom-ipq8064-vr2600v.dts 7.5 KB

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