qcom-ipq4018-pa1200.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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/soc/qcom,tcsr.h>
  9. / {
  10. model = "Plasma Cloud PA1200";
  11. compatible = "plasmacloud,pa1200";
  12. soc {
  13. rng@22000 {
  14. status = "okay";
  15. };
  16. tcsr@194b000 {
  17. /* select hostmode */
  18. compatible = "qcom,tcsr";
  19. reg = <0x194b000 0x100>;
  20. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  21. status = "okay";
  22. };
  23. tcsr@1949000 {
  24. compatible = "qcom,tcsr";
  25. reg = <0x1949000 0x100>;
  26. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  27. };
  28. ess_tcsr@1953000 {
  29. compatible = "qcom,tcsr";
  30. reg = <0x1953000 0x1000>;
  31. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  32. };
  33. tcsr@1957000 {
  34. compatible = "qcom,tcsr";
  35. reg = <0x1957000 0x100>;
  36. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  37. };
  38. usb2: usb2@60f8800 {
  39. status = "okay";
  40. };
  41. crypto@8e3a000 {
  42. status = "okay";
  43. };
  44. watchdog@b017000 {
  45. status = "okay";
  46. };
  47. };
  48. keys {
  49. compatible = "gpio-keys";
  50. reset {
  51. label = "reset";
  52. gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
  53. linux,code = <KEY_RESTART>;
  54. };
  55. };
  56. aliases {
  57. led-boot = &led_status_purple;
  58. led-failsafe = &led_status_yellow;
  59. led-running = &led_status_cyan;
  60. led-upgrade = &led_status_yellow;
  61. label-mac-device = &swport5;
  62. };
  63. leds {
  64. compatible = "gpio-leds";
  65. led_status_cyan: status_cyan {
  66. label = "cyan:status";
  67. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  68. };
  69. led_status_purple: status_purple {
  70. label = "purple:status";
  71. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  72. };
  73. led_status_yellow: status_yellow {
  74. label = "yellow:status";
  75. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  76. };
  77. };
  78. };
  79. &tlmm {
  80. serial_pins: serial_pinmux {
  81. mux {
  82. pins = "gpio60", "gpio61";
  83. function = "blsp_uart0";
  84. bias-disable;
  85. };
  86. };
  87. spi_0_pins: spi_0_pinmux {
  88. pin {
  89. function = "blsp_spi0";
  90. pins = "gpio55", "gpio56", "gpio57";
  91. drive-strength = <12>;
  92. bias-disable;
  93. };
  94. pin_cs {
  95. function = "gpio";
  96. pins = "gpio54";
  97. drive-strength = <2>;
  98. bias-disable;
  99. output-high;
  100. };
  101. };
  102. };
  103. &blsp_dma {
  104. status = "okay";
  105. };
  106. &blsp1_spi1 {
  107. pinctrl-0 = <&spi_0_pins>;
  108. pinctrl-names = "default";
  109. status = "okay";
  110. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  111. flash@0 {
  112. #address-cells = <1>;
  113. #size-cells = <1>;
  114. compatible = "jedec,spi-nor";
  115. reg = <0>;
  116. spi-max-frequency = <24000000>;
  117. /* partitions are passed via bootloader */
  118. partitions {
  119. partition-art {
  120. compatible = "nvmem-cells";
  121. #address-cells = <1>;
  122. #size-cells = <1>;
  123. label = "0:ART";
  124. precal_art_1000: precal@1000 {
  125. reg = <0x1000 0x2f20>;
  126. };
  127. precal_art_5000: precal@5000 {
  128. reg = <0x5000 0x2f20>;
  129. };
  130. macaddr_gmac0: macaddr@0 {
  131. reg = <0x0 0x6>;
  132. };
  133. macaddr_gmac1: macaddr@6 {
  134. reg = <0x6 0x6>;
  135. };
  136. };
  137. };
  138. };
  139. };
  140. &blsp1_uart1 {
  141. pinctrl-0 = <&serial_pins>;
  142. pinctrl-names = "default";
  143. status = "okay";
  144. };
  145. &cryptobam {
  146. status = "okay";
  147. };
  148. &usb2_hs_phy {
  149. status = "okay";
  150. };
  151. &mdio {
  152. status = "okay";
  153. };
  154. &gmac {
  155. status = "okay";
  156. };
  157. &switch {
  158. status = "okay";
  159. };
  160. &swport4 {
  161. status = "okay";
  162. label = "ethernet2";
  163. nvmem-cell-names = "mac-address";
  164. nvmem-cells = <&macaddr_gmac1>;
  165. };
  166. &swport5 {
  167. status = "okay";
  168. label = "ethernet1";
  169. nvmem-cell-names = "mac-address";
  170. nvmem-cells = <&macaddr_gmac0>;
  171. };
  172. &wifi0 {
  173. status = "okay";
  174. qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
  175. nvmem-cell-names = "pre-calibration";
  176. nvmem-cells = <&precal_art_1000>;
  177. };
  178. &wifi1 {
  179. status = "okay";
  180. qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
  181. nvmem-cell-names = "pre-calibration";
  182. nvmem-cells = <&precal_art_5000>;
  183. };