qcom-ipq8064-wg2600hp.dts 8.1 KB

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