qcom-ipq8068-ap3935.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qcom-ipq8064-v2.0.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. #include <dt-bindings/soc/qcom,tcsr.h>
  5. / {
  6. model = "Extreme Networks AP3935";
  7. compatible = "extreme,ap3935", "qcom,ipq8064";
  8. memory@0 {
  9. reg = <0x41400000 0x3ec00000>;
  10. device_type = "memory";
  11. };
  12. aliases {
  13. serial0 = &gsbi7_serial;
  14. serial1 = &gsbi2_serial;
  15. mdio-gpio0 = &mdio0;
  16. ethernet0 = &gmac0;
  17. ethernet1 = &gmac2;
  18. led-boot = &led_power_green;
  19. led-failsafe = &led_power_orange;
  20. led-running = &led_power_green;
  21. led-upgrade = &led_power_green;
  22. };
  23. chosen {
  24. stdout-path = "serial0:115200n8";
  25. bootargs-override = "ubi.block=0,0 root=/dev/ubiblock0_0";
  26. };
  27. keys {
  28. compatible = "gpio-keys";
  29. pinctrl-0 = <&button_pins>;
  30. pinctrl-names = "default";
  31. reset {
  32. label = "reset";
  33. gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_RESTART>;
  35. debounce-interval = <60>;
  36. wakeup-source;
  37. };
  38. };
  39. leds {
  40. compatible = "gpio-leds";
  41. pinctrl-0 = <&led_pins>;
  42. pinctrl-names = "default";
  43. led_power_green: power_green {
  44. label = "green:power";
  45. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_LOW>;
  46. };
  47. led_power_orange: power_orange {
  48. label = "orange:power";
  49. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_LOW>;
  50. };
  51. led_wlan2g_green {
  52. label = "green:wlan2g";
  53. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
  54. linux,default-trigger = "phy0tpt";
  55. };
  56. led_wlan5g_green {
  57. label = "green:wlan5g";
  58. gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
  59. linux,default-trigger = "phy1tpt";
  60. };
  61. led_lan1_green {
  62. label = "green:lan1";
  63. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
  64. };
  65. led_lan1_orange {
  66. label = "orange:lan1";
  67. gpios = <&qcom_pinmux 27 GPIO_ACTIVE_LOW>;
  68. };
  69. led_lan2_green {
  70. label = "green:lan2";
  71. gpios = <&qcom_pinmux 28 GPIO_ACTIVE_LOW>;
  72. };
  73. led_lan2_orange {
  74. label = "orange:lan2";
  75. gpios = <&qcom_pinmux 29 GPIO_ACTIVE_LOW>;
  76. };
  77. };
  78. };
  79. &qcom_pinmux {
  80. spi_pins: spi_pins {
  81. mux {
  82. pins = "gpio18", "gpio19";
  83. function = "gsbi5";
  84. drive-strength = <10>;
  85. bias-pull-down;
  86. };
  87. clk {
  88. pins = "gpio21";
  89. function = "gsbi5";
  90. drive-strength = <12>;
  91. bias-pull-down;
  92. };
  93. cs {
  94. pins = "gpio20";
  95. function = "gpio";
  96. drive-strength = <10>;
  97. bias-pull-up;
  98. };
  99. };
  100. led_pins: led_pins {
  101. mux {
  102. pins = "gpio22", "gpio23", "gpio24", "gpio25",
  103. "gpio26", "gpio27", "gpio28", "gpio29";
  104. function = "gpio";
  105. drive-strength = <10>;
  106. bias-pull-up;
  107. };
  108. };
  109. button_pins: button_pins {
  110. mux {
  111. pins = "gpio56";
  112. function = "gpio";
  113. bias-pull-up;
  114. };
  115. };
  116. };
  117. &gsbi2 {
  118. qcom,mode = <GSBI_PROT_I2C_UART>;
  119. status = "okay";
  120. gsbi2_serial: serial@12490000 {
  121. status = "okay";
  122. };
  123. };
  124. &gsbi4 {
  125. qcom,mode = <GSBI_PROT_I2C_UART>;
  126. status = "okay";
  127. serial@16340000 {
  128. status = "disabled";
  129. };
  130. };
  131. &gsbi7 {
  132. qcom,mode = <GSBI_PROT_I2C_UART>;
  133. status = "okay";
  134. gsbi7_serial: serial@16640000 {
  135. status = "okay";
  136. };
  137. };
  138. &gsbi5 {
  139. qcom,mode = <GSBI_PROT_SPI>;
  140. status = "okay";
  141. spi4: spi@1a280000 {
  142. status = "okay";
  143. spi-max-frequency = <50000000>;
  144. pinctrl-0 = <&spi_pins>;
  145. pinctrl-names = "default";
  146. cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
  147. flash@0 {
  148. compatible = "jedec,spi-nor";
  149. spi-max-frequency = <50000000>;
  150. reg = <0>;
  151. partitions {
  152. compatible = "fixed-partitions";
  153. #address-cells = <1>;
  154. #size-cells = <1>;
  155. cfg1@2a0000 {
  156. compatible = "u-boot,env-redundant-bool";
  157. label = "CFG1";
  158. reg = <0x2a0000 0x0010000>;
  159. ethaddr: ethaddr {
  160. #nvmem-cell-cells = <1>;
  161. };
  162. };
  163. bootpri@2b0000 {
  164. label = "BootPRI";
  165. reg = <0x2b0000 0x0080000>;
  166. };
  167. cfg2@330000 {
  168. label = "CFG2";
  169. reg = <0x330000 0x0010000>;
  170. };
  171. fs@340000 {
  172. label = "FS";
  173. reg = <0x340000 0x0080000>;
  174. };
  175. priimg@3c0000 {
  176. label = "PriImg";
  177. reg = <0x3c0000 0x0e10000>;
  178. };
  179. secimg@11d0000 {
  180. label = "SecImg";
  181. reg = <0x11d0000 0x0e10000>;
  182. };
  183. };
  184. };
  185. };
  186. };
  187. &pcie0 {
  188. status = "okay";
  189. /delete-property/ pinctrl-0;
  190. /delete-property/ pinctrl-names;
  191. bridge@0,0 {
  192. reg = <0x00000000 0 0 0 0>;
  193. #address-cells = <3>;
  194. #size-cells = <2>;
  195. ranges;
  196. wifi@1,0 {
  197. compatible = "qcom,ath10k";
  198. status = "okay";
  199. reg = <0x00010000 0 0 0 0>;
  200. };
  201. };
  202. };
  203. &pcie1 {
  204. status = "okay";
  205. /delete-property/ pinctrl-0;
  206. /delete-property/ pinctrl-names;
  207. bridge@0,0 {
  208. reg = <0x00000000 0 0 0 0>;
  209. #address-cells = <3>;
  210. #size-cells = <2>;
  211. ranges;
  212. wifi@1,0 {
  213. compatible = "qcom,ath10k";
  214. status = "okay";
  215. reg = <0x00010000 0 0 0 0>;
  216. };
  217. };
  218. };
  219. &nand {
  220. status = "okay";
  221. pinctrl-0 = <&nand_pins>;
  222. pinctrl-names = "default";
  223. nand@0 {
  224. compatible = "qcom,nandcs";
  225. reg = <0>;
  226. nand-ecc-strength = <8>;
  227. nand-bus-width = <8>;
  228. nand-ecc-step-size = <512>;
  229. partitions {
  230. compatible = "fixed-partitions";
  231. #address-cells = <1>;
  232. #size-cells = <1>;
  233. ubi@0 {
  234. label = "ubi";
  235. reg = <0x0000000 0x20000000>;
  236. };
  237. };
  238. };
  239. };
  240. &soc {
  241. mdio1: mdio {
  242. compatible = "virtual,mdio-gpio";
  243. #address-cells = <1>;
  244. #size-cells = <0>;
  245. status = "okay";
  246. pinctrl-0 = <&mdio0_pins>;
  247. pinctrl-names = "default";
  248. gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
  249. phy1: ethernet-phy@1 {
  250. reg = <1>;
  251. };
  252. phy2: ethernet-phy@2 {
  253. reg = <2>;
  254. };
  255. };
  256. };
  257. &gmac0 {
  258. status = "okay";
  259. qcom,id = <0>;
  260. mdiobus = <&mdio1>;
  261. phy-mode = "rgmii";
  262. phy-handle = <&phy1>;
  263. nvmem-cells = <&ethaddr 0>;
  264. nvmem-cell-names = "mac-address";
  265. fixed-link {
  266. speed = <1000>;
  267. full-duplex;
  268. };
  269. };
  270. &gmac2 {
  271. status = "okay";
  272. qcom,id = <2>;
  273. mdiobus = <&mdio1>;
  274. phy-mode = "sgmii";
  275. phy-handle = <&phy2>;
  276. nvmem-cells = <&ethaddr 1>;
  277. nvmem-cell-names = "mac-address";
  278. };
  279. &adm_dma {
  280. status = "okay";
  281. };