qcom-ipq8064-wg2600hp.dts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. #include "qcom-ipq8064-v2.0.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. model = "NEC Aterm WG2600HP";
  5. compatible = "nec,wg2600hp", "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_green;
  23. led-failsafe = &power_red;
  24. led-running = &power_green;
  25. led-upgrade = &power_green;
  26. };
  27. chosen {
  28. stdout-path = "serial0:115200n8";
  29. };
  30. soc {
  31. mdio0: mdio {
  32. compatible = "virtual,mdio-gpio";
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
  36. <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
  37. pinctrl-0 = <&mdio0_pins>;
  38. pinctrl-names = "default";
  39. ethernet-phy@0 {
  40. reg = <0>;
  41. qca,ar8327-initvals = <
  42. 0x00004 0x06000000 /* PAD0_MODE */
  43. 0x0000c 0x00080080 /* PAD6_MODE */
  44. 0x000e4 0x0006a545 /* MAC_POWER_SEL */
  45. 0x000e0 0xc74164de /* SGMII_CTRL */
  46. 0x0007c 0x0000004e /* PORT0_STATUS */
  47. 0x00094 0x0000004e /* PORT6_STATUS */
  48. >;
  49. };
  50. ethernet-phy@4 {
  51. reg = <4>;
  52. };
  53. };
  54. };
  55. keys {
  56. compatible = "gpio-keys";
  57. pinctrl-0 = <&button_pins>;
  58. pinctrl-names = "default";
  59. wps {
  60. label = "wps";
  61. gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
  62. linux,code = <KEY_WPS_BUTTON>;
  63. };
  64. reset {
  65. label = "reset";
  66. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  67. linux,code = <KEY_RESTART>;
  68. };
  69. bridge {
  70. label = "bridge";
  71. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
  72. linux,code = <BTN_0>;
  73. linux,input-type = <EV_SW>;
  74. };
  75. converter {
  76. label = "converter";
  77. gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
  78. linux,code = <BTN_0>;
  79. linux,input-type = <EV_SW>;
  80. };
  81. };
  82. leds {
  83. compatible = "gpio-leds";
  84. pinctrl-0 = <&led_pins>;
  85. pinctrl-names = "default";
  86. converter_green {
  87. label = "green:converter";
  88. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
  89. };
  90. power_red: power_red {
  91. label = "red:power";
  92. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  93. };
  94. active_green {
  95. label = "green:active";
  96. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  97. };
  98. active_red {
  99. label = "red:active";
  100. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  101. };
  102. power_green: power_green {
  103. label = "green:power";
  104. gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
  105. };
  106. converter_red {
  107. label = "red:converter";
  108. gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
  109. };
  110. wlan2g_green {
  111. label = "green:wlan2g";
  112. gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
  113. };
  114. wlan2g_red {
  115. label = "red:wlan2g";
  116. gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
  117. };
  118. wlan5g_green {
  119. label = "green:wlan5g";
  120. gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
  121. };
  122. wlan5g_red {
  123. label = "red:wlan5g";
  124. gpios = <&qcom_pinmux 58 GPIO_ACTIVE_HIGH>;
  125. };
  126. tv_green {
  127. label = "green:tv";
  128. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
  129. };
  130. tv_red {
  131. label = "red:tv";
  132. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_HIGH>;
  133. };
  134. };
  135. };
  136. &adm_dma {
  137. status = "okay";
  138. };
  139. &gmac1 {
  140. status = "okay";
  141. phy-mode = "rgmii";
  142. qcom,id = <1>;
  143. pinctrl-0 = <&rgmii2_pins>;
  144. pinctrl-names = "default";
  145. mtd-mac-address = <&PRODUCTDATA 6>;
  146. fixed-link {
  147. speed = <1000>;
  148. full-duplex;
  149. };
  150. };
  151. &gmac2 {
  152. status = "okay";
  153. phy-mode = "sgmii";
  154. qcom,id = <2>;
  155. mtd-mac-address = <&PRODUCTDATA 0>;
  156. fixed-link {
  157. speed = <1000>;
  158. full-duplex;
  159. };
  160. };
  161. &gsbi4 {
  162. status = "okay";
  163. qcom,mode = <GSBI_PROT_I2C_UART>;
  164. };
  165. &gsbi4_serial {
  166. status = "okay";
  167. };
  168. &gsbi5 {
  169. status = "okay";
  170. qcom,mode = <GSBI_PROT_SPI>;
  171. spi@1a280000 {
  172. status = "okay";
  173. pinctrl-0 = <&spi_pins>;
  174. pinctrl-names = "default";
  175. cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
  176. flash@0 {
  177. compatible = "jedec,spi-nor";
  178. spi-max-frequency = <50000000>;
  179. reg = <0>;
  180. partitions {
  181. compatible = "fixed-partitions";
  182. #address-cells = <1>;
  183. #size-cells = <1>;
  184. SBL1@0 {
  185. label = "SBL1";
  186. reg = <0x0 0x20000>;
  187. read-only;
  188. };
  189. MIBIB@20000 {
  190. label = "MIBIB";
  191. reg = <0x20000 0x20000>;
  192. read-only;
  193. };
  194. SBL2@40000 {
  195. label = "SBL2";
  196. reg = <0x40000 0x40000>;
  197. read-only;
  198. };
  199. SBL3@80000 {
  200. label = "SBL3";
  201. reg = <0x80000 0x80000>;
  202. read-only;
  203. };
  204. DDRCONFIG@100000 {
  205. label = "DDRCONFIG";
  206. reg = <0x100000 0x10000>;
  207. read-only;
  208. };
  209. SSD@110000 {
  210. label = "SSD";
  211. reg = <0x110000 0x10000>;
  212. read-only;
  213. };
  214. TZ@120000 {
  215. label = "TZ";
  216. reg = <0x120000 0x80000>;
  217. read-only;
  218. };
  219. RPM@1a0000 {
  220. label = "RPM";
  221. reg = <0x1a0000 0x80000>;
  222. read-only;
  223. };
  224. APPSBL@220000 {
  225. label = "APPSBL";
  226. reg = <0x220000 0x80000>;
  227. read-only;
  228. };
  229. APPSBLENV@2a0000 {
  230. label = "APPSBLENV";
  231. reg = <0x2a0000 0x10000>;
  232. };
  233. PRODUCTDATA: PRODUCTDATA@2b0000 {
  234. label = "PRODUCTDATA";
  235. reg = <0x2b0000 0x30000>;
  236. read-only;
  237. };
  238. ART@2e0000 {
  239. label = "ART";
  240. reg = <0x2e0000 0x40000>;
  241. read-only;
  242. };
  243. TP@320000 {
  244. label = "TP";
  245. reg = <0x320000 0x40000>;
  246. read-only;
  247. };
  248. TINY@360000 {
  249. label = "TINY";
  250. reg = <0x360000 0x500000>;
  251. read-only;
  252. };
  253. firmware@860000 {
  254. compatible = "denx,uimage";
  255. label = "firmware";
  256. reg = <0x860000 0x17a0000>;
  257. };
  258. };
  259. };
  260. };
  261. };
  262. &usb3_0 {
  263. status = "okay";
  264. pinctrl-0 = <&usb_pwr_en_pins>;
  265. pinctrl-names = "default";
  266. };
  267. &usb3_1 {
  268. status = "okay";
  269. };
  270. &pcie0 {
  271. status = "okay";
  272. };
  273. &pcie1 {
  274. status = "okay";
  275. force_gen1 = <1>;
  276. };
  277. &qcom_pinmux {
  278. button_pins: button_pins {
  279. mux {
  280. pins = "gpio16", "gpio54", "gpio24", "gpio25";
  281. function = "gpio";
  282. drive-strength = <2>;
  283. bias-pull-up;
  284. };
  285. };
  286. i2c4_pins: i2c4_pinmux {
  287. mux {
  288. pins = "gpio12", "gpio13";
  289. function = "gsbi4";
  290. drive-strength = <12>;
  291. bias-disable;
  292. };
  293. };
  294. led_pins: led_pins {
  295. mux {
  296. pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio14",
  297. "gpio15", "gpio55", "gpio56", "gpio57", "gpio58",
  298. "gpio64", "gpio65";
  299. function = "gpio";
  300. drive-strength = <2>;
  301. bias-pull-down;
  302. };
  303. };
  304. spi_pins: spi_pins {
  305. mux {
  306. pins = "gpio18", "gpio19", "gpio21";
  307. function = "gsbi5";
  308. bias-pull-down;
  309. };
  310. data {
  311. pins = "gpio18", "gpio19";
  312. drive-strength = <10>;
  313. };
  314. cs {
  315. pins = "gpio20";
  316. drive-strength = <10>;
  317. bias-pull-up;
  318. };
  319. clk {
  320. pins = "gpio21";
  321. drive-strength = <12>;
  322. };
  323. };
  324. mdio0_pins: mdio0_pins {
  325. mux {
  326. pins = "gpio0", "gpio1";
  327. function = "gpio";
  328. drive-strength = <8>;
  329. bias-disable;
  330. };
  331. };
  332. rgmii2_pins: rgmii2_pins {
  333. mux {
  334. pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
  335. "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
  336. function = "rgmii2";
  337. drive-strength = <8>;
  338. bias-disable;
  339. };
  340. };
  341. usb_pwr_en_pins: usb_pwr_en_pins {
  342. mux {
  343. pins = "gpio22";
  344. function = "gpio";
  345. drive-strength = <2>;
  346. bias-pull-down;
  347. output-high;
  348. };
  349. };
  350. };