qcom-ipq8064-wg2600hp.dts 7.3 KB

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