qcom-ipq8064-ea8500.dts 7.1 KB

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