qcom-ipq8064-d7800.dts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. #include "qcom-ipq8064-v2.0.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. model = "Netgear Nighthawk X4 D7800";
  5. compatible = "netgear,d7800", "qcom,ipq8064";
  6. memory@0 {
  7. reg = <0x42000000 0xe000000>;
  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_white;
  23. led-failsafe = &power_amber;
  24. led-running = &power_white;
  25. led-upgrade = &power_amber;
  26. };
  27. chosen {
  28. bootargs = "rootfstype=squashfs noinitrd";
  29. stdout-path = "serial0:115200n8";
  30. };
  31. soc {
  32. pinmux@800000 {
  33. button_pins: button_pins {
  34. mux {
  35. pins = "gpio6", "gpio54", "gpio65";
  36. function = "gpio";
  37. drive-strength = <2>;
  38. bias-pull-up;
  39. };
  40. };
  41. i2c4_pins: i2c4_pinmux {
  42. mux {
  43. pins = "gpio12", "gpio13";
  44. function = "gsbi4";
  45. drive-strength = <12>;
  46. bias-disable;
  47. };
  48. };
  49. led_pins: led_pins {
  50. mux {
  51. pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
  52. "gpio24","gpio26", "gpio53", "gpio64";
  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. usb0_pwr_en_pins: usb0_pwr_en_pins {
  99. mux {
  100. pins = "gpio15";
  101. function = "gpio";
  102. drive-strength = <12>;
  103. bias-pull-down;
  104. output-high;
  105. };
  106. };
  107. usb1_pwr_en_pins: usb1_pwr_en_pins {
  108. mux {
  109. pins = "gpio16", "gpio68";
  110. function = "gpio";
  111. drive-strength = <12>;
  112. bias-pull-down;
  113. output-high;
  114. };
  115. };
  116. };
  117. gsbi@16300000 {
  118. qcom,mode = <GSBI_PROT_I2C_UART>;
  119. status = "okay";
  120. serial@16340000 {
  121. status = "okay";
  122. };
  123. /*
  124. * The i2c device on gsbi4 should not be enabled.
  125. * On ipq806x designs gsbi4 i2c is meant for exclusive
  126. * RPM usage. Turning this on in kernel manifests as
  127. * i2c failure for the RPM.
  128. */
  129. };
  130. sata-phy@1b400000 {
  131. status = "okay";
  132. };
  133. sata@29000000 {
  134. ports-implemented = <0x1>;
  135. status = "okay";
  136. };
  137. usb3_0: usb3@110f8800 {
  138. status = "okay";
  139. pinctrl-0 = <&usb0_pwr_en_pins>;
  140. pinctrl-names = "default";
  141. };
  142. usb3_1: usb3@100f8800 {
  143. status = "okay";
  144. pinctrl-0 = <&usb1_pwr_en_pins>;
  145. pinctrl-names = "default";
  146. };
  147. pcie0: pci@1b500000 {
  148. status = "okay";
  149. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
  150. pinctrl-0 = <&pcie0_pins>;
  151. pinctrl-names = "default";
  152. };
  153. pcie1: pci@1b700000 {
  154. status = "okay";
  155. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
  156. pinctrl-0 = <&pcie1_pins>;
  157. pinctrl-names = "default";
  158. force_gen1 = <1>;
  159. };
  160. nand@1ac00000 {
  161. status = "okay";
  162. pinctrl-0 = <&nand_pins>;
  163. pinctrl-names = "default";
  164. #address-cells = <1>;
  165. #size-cells = <0>;
  166. cs0 {
  167. reg = <0>;
  168. compatible = "qcom,nandcs";
  169. nand-ecc-strength = <4>;
  170. nand-bus-width = <8>;
  171. nand-ecc-step-size = <512>;
  172. partitions {
  173. compatible = "fixed-partitions";
  174. #address-cells = <1>;
  175. #size-cells = <1>;
  176. qcadata@0 {
  177. label = "qcadata";
  178. reg = <0x0000000 0x0c80000>;
  179. read-only;
  180. };
  181. APPSBL@c80000 {
  182. label = "APPSBL";
  183. reg = <0x0c80000 0x0500000>;
  184. read-only;
  185. };
  186. APPSBLENV@1180000 {
  187. label = "APPSBLENV";
  188. reg = <0x1180000 0x0080000>;
  189. read-only;
  190. };
  191. art: art@1200000 {
  192. label = "art";
  193. reg = <0x1200000 0x0140000>;
  194. read-only;
  195. };
  196. artbak: art@1340000 {
  197. label = "artbak";
  198. reg = <0x1340000 0x0140000>;
  199. read-only;
  200. };
  201. kernel@1480000 {
  202. label = "kernel";
  203. reg = <0x1480000 0x0400000>;
  204. };
  205. ubi@1880000 {
  206. label = "ubi";
  207. reg = <0x1880000 0x1C00000>;
  208. };
  209. netgear@3480000 {
  210. label = "netgear";
  211. reg = <0x3480000 0x4480000>;
  212. read-only;
  213. };
  214. reserve@7900000 {
  215. label = "reserve";
  216. reg = <0x7900000 0x0700000>;
  217. read-only;
  218. };
  219. };
  220. };
  221. };
  222. mdio0: mdio {
  223. compatible = "virtual,mdio-gpio";
  224. #address-cells = <1>;
  225. #size-cells = <0>;
  226. gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
  227. <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
  228. pinctrl-0 = <&mdio0_pins>;
  229. pinctrl-names = "default";
  230. phy0: ethernet-phy@0 {
  231. reg = <0>;
  232. qca,ar8327-initvals = <
  233. 0x00004 0x7600000 /* PAD0_MODE */
  234. 0x00008 0x1000000 /* PAD5_MODE */
  235. 0x0000c 0x80 /* PAD6_MODE */
  236. 0x000e4 0x6a545 /* MAC_POWER_SEL */
  237. 0x000e0 0xc74164de /* SGMII_CTRL */
  238. 0x0007c 0x4e /* PORT0_STATUS */
  239. 0x00094 0x4e /* PORT6_STATUS */
  240. >;
  241. };
  242. phy4: ethernet-phy@4 {
  243. reg = <4>;
  244. };
  245. };
  246. gmac1: ethernet@37200000 {
  247. status = "okay";
  248. phy-mode = "rgmii";
  249. phy-handle = <&phy4>;
  250. qcom,id = <1>;
  251. pinctrl-0 = <&rgmii2_pins>;
  252. pinctrl-names = "default";
  253. mtd-mac-address = <&art 6>;
  254. };
  255. gmac2: ethernet@37400000 {
  256. status = "okay";
  257. phy-mode = "sgmii";
  258. qcom,id = <2>;
  259. mtd-mac-address = <&art 0>;
  260. fixed-link {
  261. speed = <1000>;
  262. full-duplex;
  263. };
  264. };
  265. };
  266. keys {
  267. compatible = "gpio-keys";
  268. pinctrl-0 = <&button_pins>;
  269. pinctrl-names = "default";
  270. wifi {
  271. label = "wifi";
  272. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  273. linux,code = <KEY_RFKILL>;
  274. };
  275. reset {
  276. label = "reset";
  277. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  278. linux,code = <KEY_RESTART>;
  279. };
  280. wps {
  281. label = "wps";
  282. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  283. linux,code = <KEY_WPS_BUTTON>;
  284. };
  285. };
  286. leds {
  287. compatible = "gpio-leds";
  288. pinctrl-0 = <&led_pins>;
  289. pinctrl-names = "default";
  290. usb1 {
  291. label = "d7800:white:usb1";
  292. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  293. };
  294. usb2 {
  295. label = "d7800:white:usb2";
  296. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  297. };
  298. power_amber: power_amber {
  299. label = "d7800:amber:power";
  300. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  301. };
  302. wan_white {
  303. label = "d7800:white:wan";
  304. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  305. };
  306. wan_amber {
  307. label = "d7800:amber:wan";
  308. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  309. };
  310. wps {
  311. label = "d7800:white:wps";
  312. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  313. };
  314. esata {
  315. label = "d7800:white:esata";
  316. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  317. };
  318. power_white: power_white {
  319. label = "d7800:white:power";
  320. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  321. default-state = "keep";
  322. };
  323. wifi {
  324. label = "d7800:white:wifi";
  325. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
  326. };
  327. };
  328. };
  329. &adm_dma {
  330. status = "okay";
  331. };