qcom-ipq8064-ea8500.dts 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. #include "qcom-ipq8064-v1.0.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. model = "Linksys EA8500 WiFi Router";
  5. compatible = "linksys,ea8500", "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. };
  23. chosen {
  24. bootargs = "console=ttyMSM0,115200n8";
  25. linux,stdout-path = "serial0:115200n8";
  26. append-rootblock = "ubi.mtd="; /* append to bootargs adding the root deviceblock nbr from bootloader */
  27. };
  28. soc {
  29. pinmux@800000 {
  30. i2c4_pins: i2c4_pinmux {
  31. pins = "gpio12", "gpio13";
  32. function = "gsbi4";
  33. bias-disable;
  34. };
  35. spi_pins: spi_pins {
  36. mux {
  37. pins = "gpio18", "gpio19", "gpio21";
  38. function = "gsbi5";
  39. drive-strength = <10>;
  40. bias-none;
  41. };
  42. };
  43. nand_pins: nand_pins {
  44. mux {
  45. pins = "gpio34", "gpio35", "gpio36",
  46. "gpio37", "gpio38", "gpio39",
  47. "gpio40", "gpio41", "gpio42",
  48. "gpio43", "gpio44", "gpio45",
  49. "gpio46", "gpio47";
  50. function = "nand";
  51. drive-strength = <10>;
  52. bias-disable;
  53. };
  54. pullups {
  55. pins = "gpio39";
  56. bias-pull-up;
  57. };
  58. hold {
  59. pins = "gpio40", "gpio41", "gpio42",
  60. "gpio43", "gpio44", "gpio45",
  61. "gpio46", "gpio47";
  62. bias-bus-hold;
  63. };
  64. };
  65. mdio0_pins: mdio0_pins {
  66. mux {
  67. pins = "gpio0", "gpio1";
  68. function = "gpio";
  69. drive-strength = <8>;
  70. bias-disable;
  71. };
  72. };
  73. rgmii2_pins: rgmii2_pins {
  74. mux {
  75. pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
  76. "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
  77. function = "rgmii2";
  78. drive-strength = <8>;
  79. bias-disable;
  80. };
  81. };
  82. };
  83. gsbi@16300000 {
  84. qcom,mode = <GSBI_PROT_I2C_UART>;
  85. status = "ok";
  86. serial@16340000 {
  87. status = "ok";
  88. };
  89. /*
  90. * The i2c device on gsbi4 should not be enabled.
  91. * On ipq806x designs gsbi4 i2c is meant for exclusive
  92. * RPM usage. Turning this on in kernel manifests as
  93. * i2c failure for the RPM.
  94. */
  95. };
  96. sata-phy@1b400000 {
  97. status = "ok";
  98. };
  99. sata@29000000 {
  100. status = "ok";
  101. };
  102. phy@100f8800 { /* USB3 port 1 HS phy */
  103. status = "ok";
  104. };
  105. phy@100f8830 { /* USB3 port 1 SS phy */
  106. status = "ok";
  107. };
  108. phy@110f8800 { /* USB3 port 0 HS phy */
  109. status = "ok";
  110. };
  111. phy@110f8830 { /* USB3 port 0 SS phy */
  112. status = "ok";
  113. };
  114. usb30@0 {
  115. status = "ok";
  116. };
  117. usb30@1 {
  118. status = "ok";
  119. };
  120. pcie0: pci@1b500000 {
  121. status = "ok";
  122. phy-tx0-term-offset = <7>;
  123. };
  124. pcie1: pci@1b700000 {
  125. status = "ok";
  126. phy-tx0-term-offset = <7>;
  127. };
  128. pcie2: pci@1b900000 {
  129. status = "ok";
  130. phy-tx0-term-offset = <7>;
  131. };
  132. nand@1ac00000 {
  133. status = "ok";
  134. pinctrl-0 = <&nand_pins>;
  135. pinctrl-names = "default";
  136. nand-ecc-strength = <4>;
  137. nand-bus-width = <8>;
  138. #address-cells = <1>;
  139. #size-cells = <1>;
  140. SBL1@0 {
  141. label = "SBL1";
  142. reg = <0x0000000 0x0040000>;
  143. read-only;
  144. };
  145. MIBIB@40000 {
  146. label = "MIBIB";
  147. reg = <0x0040000 0x0140000>;
  148. read-only;
  149. };
  150. SBL2@180000 {
  151. label = "SBL2";
  152. reg = <0x0180000 0x0140000>;
  153. read-only;
  154. };
  155. SBL3@2c0000 {
  156. label = "SBL3";
  157. reg = <0x02c0000 0x0280000>;
  158. read-only;
  159. };
  160. DDRCONFIG@540000 {
  161. label = "DDRCONFIG";
  162. reg = <0x0540000 0x0120000>;
  163. read-only;
  164. };
  165. SSD@660000 {
  166. label = "SSD";
  167. reg = <0x0660000 0x0120000>;
  168. read-only;
  169. };
  170. TZ@780000 {
  171. label = "TZ";
  172. reg = <0x0780000 0x0280000>;
  173. read-only;
  174. };
  175. RPM@a00000 {
  176. label = "RPM";
  177. reg = <0x0a00000 0x0280000>;
  178. read-only;
  179. };
  180. art: art@c80000 {
  181. label = "art";
  182. reg = <0x0c80000 0x0140000>;
  183. read-only;
  184. };
  185. APPSBL@dc0000 {
  186. label = "APPSBL";
  187. reg = <0x0dc0000 0x0100000>;
  188. read-only;
  189. };
  190. u_env@ec0000 {
  191. label = "u_env";
  192. reg = <0x0ec0000 0x0040000>;
  193. };
  194. s_env@f00000 {
  195. label = "s_env";
  196. reg = <0x0f00000 0x0040000>;
  197. };
  198. devinfo@f40000 {
  199. label = "devinfo";
  200. reg = <0x0f40000 0x0040000>;
  201. };
  202. linux@f80000 {
  203. label = "kernel1";
  204. reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
  205. };
  206. rootfs@1280000 {
  207. label = "rootfs1";
  208. reg = <0x1280000 0x2500000>;
  209. };
  210. linux2@3780000 {
  211. label = "kernel2";
  212. reg = <0x3780000 0x2800000>;
  213. };
  214. rootfs2@3a80000 {
  215. label = "rootfs2";
  216. reg = <0x3a80000 0x2500000>;
  217. };
  218. syscfg@5f80000 {
  219. label = "syscfg";
  220. reg = <0x5f80000 0x2080000>;
  221. };
  222. };
  223. mdio0: mdio {
  224. compatible = "virtual,mdio-gpio";
  225. #address-cells = <1>;
  226. #size-cells = <0>;
  227. gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
  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. qcom,phy_mdio_addr = <4>;
  253. qcom,poll_required = <1>;
  254. qcom,rgmii_delay = <0>;
  255. qcom,emulation = <0>;
  256. pinctrl-0 = <&rgmii2_pins>;
  257. pinctrl-names = "default";
  258. fixed-link {
  259. speed = <1000>;
  260. full-duplex;
  261. };
  262. };
  263. //lan
  264. gmac2: ethernet@37400000 {
  265. status = "ok";
  266. phy-mode = "sgmii";
  267. qcom,id = <2>;
  268. qcom,phy_mdio_addr = <0>; /* none */
  269. qcom,poll_required = <0>; /* no polling */
  270. qcom,rgmii_delay = <0>;
  271. qcom,emulation = <0>;
  272. fixed-link {
  273. speed = <1000>;
  274. full-duplex;
  275. };
  276. };
  277. adm_dma: dma@18300000 {
  278. status = "ok";
  279. };
  280. };
  281. gpio-keys {
  282. compatible = "gpio-keys";
  283. rfkill {
  284. label = "rfkill"; /* WIFI on-off*/
  285. gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
  286. linux,code = <KEY_RFKILL>;
  287. };
  288. reset {
  289. label = "reset";
  290. gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
  291. linux,code = <KEY_RESTART >;
  292. };
  293. wps {
  294. label = "wps";
  295. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  296. linux,code = <KEY_WPS_BUTTON>;
  297. };
  298. };
  299. gpio-leds {
  300. compatible = "gpio-leds";
  301. wps {
  302. label = "ea8500:green:wps";
  303. gpios = <&qcom_pinmux 53 0>;
  304. default-state = "off";
  305. };
  306. power {
  307. label = "ea8500:white:power";
  308. gpios = <&qcom_pinmux 6 1>;
  309. default-state = "off";
  310. linux,default-trigger = "heartbeat";
  311. };
  312. wifi {
  313. label = "ea8500:green:wifi";
  314. gpios = <&qcom_pinmux 54 0>;
  315. default-state = "off";
  316. };
  317. };
  318. };