qcom-ipq4018-wap-ac.dtsi 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /* Copyright (c) 2020, Robert Marko <[email protected]> */
  3. #include "qcom-ipq4019.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/leds/common.h>
  7. #include <dt-bindings/soc/qcom,tcsr.h>
  8. / {
  9. memory {
  10. device_type = "memory";
  11. reg = <0x80000000 0x08000000>;
  12. };
  13. chosen {
  14. stdout-path = "serial0:115200n8";
  15. };
  16. aliases {
  17. led-boot = &led_user;
  18. led-failsafe = &led_user;
  19. led-running = &led_user;
  20. led-upgrade = &led_user;
  21. };
  22. soc {
  23. counter@4a1000 {
  24. compatible = "qcom,qca-gcnt";
  25. reg = <0x4a1000 0x4>;
  26. };
  27. tcsr@1949000 {
  28. compatible = "qcom,tcsr";
  29. reg = <0x1949000 0x100>;
  30. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  31. };
  32. ess_tcsr@1953000 {
  33. compatible = "qcom,tcsr";
  34. reg = <0x1953000 0x1000>;
  35. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  36. };
  37. tcsr@1957000 {
  38. compatible = "qcom,tcsr";
  39. reg = <0x1957000 0x100>;
  40. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  41. };
  42. };
  43. keys {
  44. compatible = "gpio-keys";
  45. reset {
  46. label = "reset";
  47. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  48. linux,code = <KEY_RESTART>;
  49. };
  50. };
  51. leds {
  52. compatible = "gpio-leds";
  53. power {
  54. function = LED_FUNCTION_POWER;
  55. color = <LED_COLOR_ID_BLUE>;
  56. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  57. default-state = "keep";
  58. };
  59. led_user: user {
  60. label = "green:user";
  61. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  62. panic-indicator;
  63. };
  64. };
  65. };
  66. &prng {
  67. status = "okay";
  68. };
  69. &tlmm {
  70. serial_pins: serial_pinmux {
  71. mux {
  72. pins = "gpio60", "gpio61";
  73. function = "blsp_uart0";
  74. bias-disable;
  75. };
  76. };
  77. spi_0_pins: spi_0_pinmux {
  78. pin {
  79. function = "blsp_spi0";
  80. pins = "gpio55", "gpio56", "gpio57";
  81. drive-strength = <2>;
  82. bias-disable;
  83. };
  84. pin_cs {
  85. function = "gpio";
  86. pins = "gpio54";
  87. drive-strength = <2>;
  88. bias-disable;
  89. output-high;
  90. };
  91. };
  92. };
  93. &blsp_dma {
  94. status = "okay";
  95. };
  96. &blsp1_spi1 {
  97. status = "okay";
  98. pinctrl-0 = <&spi_0_pins>;
  99. pinctrl-names = "default";
  100. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  101. flash@0 {
  102. reg = <0>;
  103. compatible = "jedec,spi-nor";
  104. spi-max-frequency = <40000000>;
  105. partitions {
  106. compatible = "fixed-partitions";
  107. #address-cells = <1>;
  108. #size-cells = <1>;
  109. partition@0 {
  110. label = "Qualcomm";
  111. reg = <0x0 0x80000>;
  112. read-only;
  113. };
  114. partition@80000 {
  115. compatible = "mikrotik,routerboot-partitions";
  116. #address-cells = <1>;
  117. #size-cells = <1>;
  118. label = "RouterBoot";
  119. reg = <0x80000 0x80000>;
  120. hard_config {
  121. read-only;
  122. size = <0x2000>;
  123. };
  124. dtb_config {
  125. read-only;
  126. };
  127. soft_config {
  128. };
  129. };
  130. partition@100000 {
  131. compatible = "mikrotik,minor";
  132. label = "firmware";
  133. reg = <0x100000 0xf00000>;
  134. };
  135. };
  136. };
  137. };
  138. &blsp1_uart1 {
  139. status = "okay";
  140. pinctrl-0 = <&serial_pins>;
  141. pinctrl-names = "default";
  142. };
  143. &cryptobam {
  144. status = "okay";
  145. };
  146. &crypto {
  147. status = "okay";
  148. };
  149. &watchdog {
  150. status = "okay";
  151. };
  152. &mdio {
  153. status = "okay";
  154. };
  155. &gmac {
  156. status = "okay";
  157. };
  158. &switch {
  159. status = "okay";
  160. };
  161. &swport4 {
  162. status = "okay";
  163. label = "sw-eth2";
  164. };
  165. &swport5 {
  166. status = "okay";
  167. label = "sw-eth1";
  168. };
  169. &wifi0 {
  170. status = "okay";
  171. qcom,ath10k-calibration-variant = "MikroTik-wAP-ac";
  172. };
  173. &wifi1 {
  174. status = "okay";
  175. qcom,ath10k-calibration-variant = "MikroTik-wAP-ac";
  176. };