qcom-ipq8068-ap3935.dts 5.8 KB

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