qcom-ipq8064-r7500.dts 4.7 KB

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