2
0

qcom-ipq8064-wg2600hp.dts 6.0 KB

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