qcom-ipq4018-sxtsq-5-ac.dts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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/soc/qcom,tcsr.h>
  7. / {
  8. model = "MikroTik SXTsq 5 ac (RBSXTsqG-5acD)";
  9. compatible = "mikrotik,sxtsq-5-ac";
  10. memory {
  11. device_type = "memory";
  12. reg = <0x80000000 0x10000000>;
  13. };
  14. chosen {
  15. stdout-path = "serial0:115200n8";
  16. };
  17. aliases {
  18. led-boot = &led_user;
  19. led-failsafe = &led_user;
  20. led-running = &led_user;
  21. led-upgrade = &led_user;
  22. };
  23. soc {
  24. rng@22000 {
  25. status = "okay";
  26. };
  27. mdio@90000 {
  28. status = "okay";
  29. };
  30. counter@4a1000 {
  31. compatible = "qcom,qca-gcnt";
  32. reg = <0x4a1000 0x4>;
  33. };
  34. tcsr@1949000 {
  35. compatible = "qcom,tcsr";
  36. reg = <0x1949000 0x100>;
  37. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  38. };
  39. ess_tcsr@1953000 {
  40. compatible = "qcom,tcsr";
  41. reg = <0x1953000 0x1000>;
  42. qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII4>;
  43. };
  44. tcsr@1957000 {
  45. compatible = "qcom,tcsr";
  46. reg = <0x1957000 0x100>;
  47. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  48. };
  49. crypto@8e3a000 {
  50. status = "okay";
  51. };
  52. watchdog@b017000 {
  53. status = "okay";
  54. };
  55. };
  56. keys {
  57. compatible = "gpio-keys";
  58. reset {
  59. label = "reset";
  60. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  61. linux,code = <KEY_RESTART>;
  62. };
  63. };
  64. leds {
  65. compatible = "gpio-leds";
  66. power {
  67. label = "blue:power";
  68. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  69. default-state = "keep";
  70. panic-indicator;
  71. };
  72. led_user: user {
  73. label = "green:user";
  74. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  75. };
  76. rssilow {
  77. label = "green:rssilow";
  78. gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
  79. };
  80. rssimediumlow {
  81. label = "green:rssimediumlow";
  82. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  83. };
  84. rssimedium {
  85. label = "green:rssimedium";
  86. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  87. };
  88. rssimediumhigh {
  89. label = "green:rssimediumhigh";
  90. gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
  91. };
  92. rssihigh {
  93. label = "green:rssihigh";
  94. gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
  95. };
  96. };
  97. };
  98. &tlmm {
  99. serial_pins: serial_pinmux {
  100. mux {
  101. pins = "gpio60", "gpio61";
  102. function = "blsp_uart0";
  103. bias-disable;
  104. };
  105. };
  106. spi_0_pins: spi_0_pinmux {
  107. pin {
  108. function = "blsp_spi0";
  109. pins = "gpio55", "gpio56", "gpio57";
  110. drive-strength = <2>;
  111. bias-disable;
  112. };
  113. pin_cs {
  114. function = "gpio";
  115. pins = "gpio54";
  116. drive-strength = <2>;
  117. bias-disable;
  118. output-high;
  119. };
  120. };
  121. };
  122. &blsp_dma {
  123. status = "okay";
  124. };
  125. &blsp1_spi1 {
  126. status = "okay";
  127. pinctrl-0 = <&spi_0_pins>;
  128. pinctrl-names = "default";
  129. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  130. flash@0 {
  131. reg = <0>;
  132. compatible = "jedec,spi-nor";
  133. spi-max-frequency = <40000000>;
  134. partitions {
  135. compatible = "fixed-partitions";
  136. #address-cells = <1>;
  137. #size-cells = <1>;
  138. partition@0 {
  139. label = "Qualcomm";
  140. reg = <0x0 0x80000>;
  141. read-only;
  142. };
  143. partition@80000 {
  144. compatible = "mikrotik,routerboot-partitions";
  145. #address-cells = <1>;
  146. #size-cells = <1>;
  147. label = "RouterBoot";
  148. reg = <0x80000 0x80000>;
  149. hard_config {
  150. read-only;
  151. };
  152. dtb_config {
  153. read-only;
  154. };
  155. soft_config {
  156. };
  157. };
  158. partition@100000 {
  159. compatible = "mikrotik,minor";
  160. label = "firmware";
  161. reg = <0x100000 0xf00000>;
  162. };
  163. };
  164. };
  165. };
  166. &blsp1_uart1 {
  167. status = "okay";
  168. pinctrl-0 = <&serial_pins>;
  169. pinctrl-names = "default";
  170. };
  171. &cryptobam {
  172. status = "okay";
  173. };
  174. &wifi1 {
  175. status = "okay";
  176. qcom,ath10k-calibration-variant = "MikroTik-SXTsq-5-ac";
  177. };
  178. &mdio {
  179. status = "okay";
  180. };
  181. &gmac {
  182. status = "okay";
  183. };
  184. &switch {
  185. status = "okay";
  186. /delete-property/ psgmii-ethphy;
  187. };
  188. &swport5 {
  189. status = "okay";
  190. label = "lan";
  191. phy-mode = "rgmii";
  192. };