qcom-ipq8064-vr2600v.dts 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  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. 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 = &gsbi4_serial;
  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 0x300000>;
  180. };
  181. rootfs@620000 {
  182. label = "rootfs";
  183. reg = <0x620000 0x960000>;
  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. };
  219. pcie1: pci@1b700000 {
  220. status = "ok";
  221. force_gen1 = <1>;
  222. };
  223. mdio0: mdio {
  224. compatible = "virtual,mdio-gpio";
  225. #address-cells = <1>;
  226. #size-cells = <0>;
  227. gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
  228. pinctrl-0 = <&mdio0_pins>;
  229. pinctrl-names = "default";
  230. phy0: ethernet-phy@0 {
  231. device_type = "ethernet-phy";
  232. reg = <0>;
  233. qca,ar8327-initvals = <
  234. 0x00004 0x7600000 /* PAD0_MODE */
  235. 0x00008 0x1000000 /* PAD5_MODE */
  236. 0x0000c 0x80 /* PAD6_MODE */
  237. 0x000e4 0x6a545 /* MAC_POWER_SEL */
  238. 0x000e0 0xc74164de /* SGMII_CTRL */
  239. 0x0007c 0x4e /* PORT0_STATUS */
  240. 0x00094 0x4e /* PORT6_STATUS */
  241. >;
  242. };
  243. phy4: ethernet-phy@4 {
  244. device_type = "ethernet-phy";
  245. reg = <4>;
  246. };
  247. };
  248. gmac1: ethernet@37200000 {
  249. status = "ok";
  250. phy-mode = "rgmii";
  251. qcom,id = <1>;
  252. pinctrl-0 = <&rgmii2_pins>;
  253. pinctrl-names = "default";
  254. mtd-mac-address = <&defaultmac 0>;
  255. mtd-mac-address-increment = <1>;
  256. fixed-link {
  257. speed = <1000>;
  258. full-duplex;
  259. };
  260. };
  261. gmac2: ethernet@37400000 {
  262. status = "ok";
  263. phy-mode = "sgmii";
  264. qcom,id = <2>;
  265. mtd-mac-address = <&defaultmac 0>;
  266. fixed-link {
  267. speed = <1000>;
  268. full-duplex;
  269. };
  270. };
  271. };
  272. gpio-keys {
  273. compatible = "gpio-keys";
  274. pinctrl-0 = <&button_pins>;
  275. pinctrl-names = "default";
  276. wifi {
  277. label = "wifi";
  278. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  279. linux,code = <KEY_RFKILL>;
  280. };
  281. reset {
  282. label = "reset";
  283. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
  284. linux,code = <KEY_RESTART>;
  285. };
  286. wps {
  287. label = "wps";
  288. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  289. linux,code = <KEY_WPS_BUTTON>;
  290. };
  291. dect {
  292. label = "dect";
  293. gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
  294. linux,code = <KEY_PHONE>;
  295. };
  296. ledswitch {
  297. label = "ledswitch";
  298. gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
  299. linux,code = <KEY_LIGHTS_TOGGLE>;
  300. };
  301. };
  302. gpio-leds {
  303. compatible = "gpio-leds";
  304. pinctrl-0 = <&led_pins>;
  305. pinctrl-names = "default";
  306. dsl {
  307. label = "vr2600v:white:dsl";
  308. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  309. };
  310. usb {
  311. label = "vr2600v:white:usb";
  312. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  313. };
  314. lan {
  315. label = "vr2600v:white:lan";
  316. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  317. };
  318. wlan2g {
  319. label = "vr2600v:white:wlan2g";
  320. gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
  321. };
  322. wlan5g {
  323. label = "vr2600v:white:wlan5g";
  324. gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
  325. };
  326. power: power {
  327. label = "vr2600v:white:power";
  328. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  329. default-state = "keep";
  330. };
  331. phone {
  332. label = "vr2600v:white:phone";
  333. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  334. };
  335. wan {
  336. label = "vr2600v:white:wan";
  337. gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
  338. };
  339. general: general {
  340. label = "vr2600v:white:general";
  341. gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
  342. };
  343. };
  344. };
  345. &adm_dma {
  346. status = "ok";
  347. };