qcom-ipq8064-r7500.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. #include "qcom-ipq8064-v1.0.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. #include <dt-bindings/soc/qcom,tcsr.h>
  4. / {
  5. model = "Netgear Nighthawk X4 R7500";
  6. compatible = "netgear,r7500", "qcom,ipq8064";
  7. memory@0 {
  8. reg = <0x42000000 0xe000000>;
  9. device_type = "memory";
  10. };
  11. reserved-memory {
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. ranges;
  15. rsvd@41200000 {
  16. reg = <0x41200000 0x300000>;
  17. no-map;
  18. };
  19. };
  20. aliases {
  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. };
  30. keys {
  31. compatible = "gpio-keys";
  32. pinctrl-0 = <&button_pins>;
  33. pinctrl-names = "default";
  34. wifi {
  35. label = "wifi";
  36. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  37. linux,code = <KEY_RFKILL>;
  38. debounce-interval = <60>;
  39. wakeup-source;
  40. };
  41. reset {
  42. label = "reset";
  43. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  44. linux,code = <KEY_RESTART>;
  45. debounce-interval = <60>;
  46. wakeup-source;
  47. };
  48. wps {
  49. label = "wps";
  50. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  51. linux,code = <KEY_WPS_BUTTON>;
  52. debounce-interval = <60>;
  53. wakeup-source;
  54. };
  55. };
  56. leds {
  57. compatible = "gpio-leds";
  58. pinctrl-0 = <&led_pins>;
  59. pinctrl-names = "default";
  60. usb1 {
  61. label = "white:usb1";
  62. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  63. };
  64. usb2 {
  65. label = "white:usb2";
  66. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  67. };
  68. power_amber: power_amber {
  69. label = "amber:power";
  70. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  71. };
  72. wan_white {
  73. label = "white:wan";
  74. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  75. };
  76. wan_amber {
  77. label = "amber:wan";
  78. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  79. };
  80. wps {
  81. label = "white:wps";
  82. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  83. };
  84. esata {
  85. label = "white:esata";
  86. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  87. };
  88. power_white: power_white {
  89. label = "white:power";
  90. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  91. default-state = "keep";
  92. };
  93. wifi {
  94. label = "white:wifi";
  95. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
  96. };
  97. };
  98. };
  99. &qcom_pinmux {
  100. button_pins: button_pins {
  101. mux {
  102. pins = "gpio6", "gpio54", "gpio65";
  103. function = "gpio";
  104. drive-strength = <2>;
  105. bias-pull-up;
  106. };
  107. };
  108. led_pins: led_pins {
  109. mux {
  110. pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
  111. "gpio24","gpio26", "gpio53", "gpio64";
  112. function = "gpio";
  113. drive-strength = <2>;
  114. bias-pull-up;
  115. };
  116. };
  117. };
  118. &gsbi5 {
  119. status = "disabled";
  120. spi@1a280000 {
  121. status = "disabled";
  122. };
  123. };
  124. &usb3_0 {
  125. status = "okay";
  126. };
  127. &usb3_1 {
  128. status = "okay";
  129. };
  130. &pcie0 {
  131. status = "okay";
  132. };
  133. &pcie1 {
  134. status = "okay";
  135. max-link-speed = <1>;
  136. };
  137. &nand {
  138. status = "okay";
  139. pinctrl-0 = <&nand_pins>;
  140. pinctrl-names = "default";
  141. nand@0 {
  142. reg = <0>;
  143. compatible = "qcom,nandcs";
  144. nand-ecc-strength = <4>;
  145. nand-bus-width = <8>;
  146. nand-ecc-step-size = <512>;
  147. nand-is-boot-medium;
  148. qcom,boot_pages_size = <0x1180000>;
  149. partitions {
  150. compatible = "fixed-partitions";
  151. #address-cells = <1>;
  152. #size-cells = <1>;
  153. qcadata@0 {
  154. label = "qcadata";
  155. reg = <0x0000000 0x0c80000>;
  156. read-only;
  157. };
  158. APPSBL@c80000 {
  159. label = "APPSBL";
  160. reg = <0x0c80000 0x0500000>;
  161. read-only;
  162. };
  163. APPSBLENV@1180000 {
  164. label = "APPSBLENV";
  165. reg = <0x1180000 0x0080000>;
  166. read-only;
  167. };
  168. art: art@1200000 {
  169. label = "art";
  170. reg = <0x1200000 0x0140000>;
  171. read-only;
  172. };
  173. kernel@1340000 {
  174. label = "kernel";
  175. reg = <0x1340000 0x0400000>;
  176. };
  177. ubi@1740000 {
  178. label = "ubi";
  179. reg = <0x1740000 0x1600000>;
  180. };
  181. netgear@2d40000 {
  182. label = "netgear";
  183. reg = <0x2d40000 0x0c00000>;
  184. read-only;
  185. };
  186. reserve@3940000 {
  187. label = "reserve";
  188. reg = <0x3940000 0x46c0000>;
  189. read-only;
  190. };
  191. };
  192. };
  193. };
  194. &mdio0 {
  195. status = "okay";
  196. pinctrl-0 = <&mdio0_pins>;
  197. pinctrl-names = "default";
  198. phy0: ethernet-phy@0 {
  199. reg = <0>;
  200. qca,ar8327-initvals = <
  201. 0x00004 0x7600000 /* PAD0_MODE */
  202. 0x00008 0x1000000 /* PAD5_MODE */
  203. 0x0000c 0x80 /* PAD6_MODE */
  204. 0x000e4 0x6a545 /* MAC_POWER_SEL */
  205. 0x000e0 0xc74164de /* SGMII_CTRL */
  206. 0x0007c 0x4e /* PORT0_STATUS */
  207. 0x00094 0x4e /* PORT6_STATUS */
  208. >;
  209. };
  210. phy4: ethernet-phy@4 {
  211. reg = <4>;
  212. };
  213. };
  214. &gmac1 {
  215. status = "okay";
  216. phy-mode = "rgmii";
  217. qcom,id = <1>;
  218. pinctrl-0 = <&rgmii2_pins>;
  219. pinctrl-names = "default";
  220. nvmem-cells = <&macaddr_art_6>;
  221. nvmem-cell-names = "mac-address";
  222. fixed-link {
  223. speed = <1000>;
  224. full-duplex;
  225. };
  226. };
  227. &gmac2 {
  228. status = "okay";
  229. phy-mode = "sgmii";
  230. qcom,id = <2>;
  231. nvmem-cells = <&macaddr_art_0>;
  232. nvmem-cell-names = "mac-address";
  233. fixed-link {
  234. speed = <1000>;
  235. full-duplex;
  236. };
  237. };
  238. &tcsr {
  239. qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
  240. compatible = "qcom,tcsr";
  241. };
  242. &adm_dma {
  243. status = "okay";
  244. };
  245. &art {
  246. compatible = "nvmem-cells";
  247. #address-cells = <1>;
  248. #size-cells = <1>;
  249. macaddr_art_0: macaddr@0 {
  250. reg = <0x0 0x6>;
  251. };
  252. macaddr_art_6: macaddr@6 {
  253. reg = <0x6 0x6>;
  254. };
  255. };