qcom-ipq4019-pa2200.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /* Copyright (c) 2017-2020, Sven Eckelmann <[email protected]>
  3. * Copyright (c) 2018, Marek Lindner <[email protected]>
  4. */
  5. #include "qcom-ipq4019.dtsi"
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/input/input.h>
  8. #include <dt-bindings/leds/common.h>
  9. #include <dt-bindings/soc/qcom,tcsr.h>
  10. / {
  11. model = "Plasma Cloud PA2200";
  12. compatible = "plasmacloud,pa2200";
  13. soc {
  14. rng@22000 {
  15. status = "okay";
  16. };
  17. tcsr@1949000 {
  18. compatible = "qcom,tcsr";
  19. reg = <0x1949000 0x100>;
  20. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  21. };
  22. ess_tcsr@1953000 {
  23. compatible = "qcom,tcsr";
  24. reg = <0x1953000 0x1000>;
  25. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  26. };
  27. tcsr@1957000 {
  28. compatible = "qcom,tcsr";
  29. reg = <0x1957000 0x100>;
  30. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  31. };
  32. crypto@8e3a000 {
  33. status = "okay";
  34. };
  35. watchdog@b017000 {
  36. status = "okay";
  37. };
  38. };
  39. keys {
  40. compatible = "gpio-keys";
  41. reset {
  42. label = "reset";
  43. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  44. linux,code = <KEY_RESTART >;
  45. };
  46. };
  47. aliases {
  48. led-boot = &led_power_orange;
  49. led-failsafe = &led_status_blue;
  50. led-running = &led_power_orange;
  51. led-upgrade = &led_status_blue;
  52. label-mac-device = &swport4;
  53. };
  54. leds {
  55. compatible = "gpio-leds";
  56. led_power_orange: power_orange {
  57. function = LED_FUNCTION_POWER;
  58. color = <LED_COLOR_ID_ORANGE>;
  59. gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
  60. };
  61. 2g_blue {
  62. label = "blue:2g";
  63. gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
  64. linux,default-trigger = "phy1tpt";
  65. };
  66. 2g_green {
  67. label = "green:5g1";
  68. gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
  69. linux,default-trigger = "phy0tpt";
  70. };
  71. 5g2_green {
  72. label = "green:5g2";
  73. gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
  74. linux,default-trigger = "phy2tpt";
  75. };
  76. led_status_blue: status_blue {
  77. function = LED_FUNCTION_STATUS;
  78. color = <LED_COLOR_ID_BLUE>;
  79. gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
  80. };
  81. };
  82. };
  83. &tlmm {
  84. serial_pins: serial_pinmux {
  85. mux {
  86. pins = "gpio16", "gpio17";
  87. function = "blsp_uart0";
  88. bias-disable;
  89. };
  90. };
  91. spi_0_pins: spi_0_pinmux {
  92. pin {
  93. function = "blsp_spi0";
  94. pins = "gpio13", "gpio14", "gpio15";
  95. drive-strength = <12>;
  96. bias-disable;
  97. };
  98. pin_cs {
  99. function = "gpio";
  100. pins = "gpio12";
  101. drive-strength = <2>;
  102. bias-disable;
  103. output-high;
  104. };
  105. };
  106. };
  107. &blsp_dma {
  108. status = "okay";
  109. };
  110. &blsp1_spi1 {
  111. pinctrl-0 = <&spi_0_pins>;
  112. pinctrl-names = "default";
  113. status = "okay";
  114. cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
  115. flash@0 {
  116. #address-cells = <1>;
  117. #size-cells = <1>;
  118. compatible = "jedec,spi-nor";
  119. reg = <0>;
  120. spi-max-frequency = <24000000>;
  121. /* partitions are passed via bootloader */
  122. partitions {
  123. partition-art {
  124. label = "0:ART";
  125. nvmem-layout {
  126. compatible = "fixed-layout";
  127. #address-cells = <1>;
  128. #size-cells = <1>;
  129. macaddr_gmac0: macaddr@0 {
  130. reg = <0x0 0x6>;
  131. };
  132. macaddr_gmac1: macaddr@6 {
  133. reg = <0x6 0x6>;
  134. };
  135. precal_art_1000: precal@1000 {
  136. reg = <0x1000 0x2f20>;
  137. };
  138. precal_art_5000: precal@5000 {
  139. reg = <0x5000 0x2f20>;
  140. };
  141. precal_art_9000: precal@9000 {
  142. reg = <0x9000 0x2f20>;
  143. };
  144. };
  145. };
  146. };
  147. };
  148. };
  149. &blsp1_uart1 {
  150. pinctrl-0 = <&serial_pins>;
  151. pinctrl-names = "default";
  152. status = "okay";
  153. };
  154. &cryptobam {
  155. status = "okay";
  156. };
  157. &pcie0 {
  158. status = "okay";
  159. perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
  160. wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
  161. bridge@0,0 {
  162. reg = <0x00000000 0 0 0 0>;
  163. #address-cells = <3>;
  164. #size-cells = <2>;
  165. ranges;
  166. wifi2: wifi@1,0 {
  167. compatible = "qcom,ath10k";
  168. status = "okay";
  169. reg = <0x00010000 0 0 0 0>;
  170. qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
  171. ieee80211-freq-limit = <5170000 5350000>;
  172. nvmem-cell-names = "pre-calibration";
  173. nvmem-cells = <&precal_art_9000>;
  174. };
  175. };
  176. };
  177. &mdio {
  178. status = "okay";
  179. };
  180. &gmac {
  181. status = "okay";
  182. };
  183. &switch {
  184. status = "okay";
  185. };
  186. &swport4 {
  187. status = "okay";
  188. label = "ethernet1";
  189. nvmem-cell-names = "mac-address";
  190. nvmem-cells = <&macaddr_gmac0>;
  191. };
  192. &swport5 {
  193. status = "okay";
  194. label = "ethernet2";
  195. nvmem-cell-names = "mac-address";
  196. nvmem-cells = <&macaddr_gmac1>;
  197. };
  198. &wifi0 {
  199. status = "okay";
  200. qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
  201. nvmem-cell-names = "pre-calibration";
  202. nvmem-cells = <&precal_art_1000>;
  203. };
  204. &wifi1 {
  205. status = "okay";
  206. qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
  207. ieee80211-freq-limit = <5470000 5875000>;
  208. nvmem-cell-names = "pre-calibration";
  209. nvmem-cells = <&precal_art_5000>;
  210. };