qcom-ipq4018-pa1200.dts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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 PA1200";
  12. compatible = "plasmacloud,pa1200";
  13. soc {
  14. rng@22000 {
  15. status = "okay";
  16. };
  17. tcsr@194b000 {
  18. /* select hostmode */
  19. compatible = "qcom,tcsr";
  20. reg = <0x194b000 0x100>;
  21. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  22. status = "okay";
  23. };
  24. tcsr@1949000 {
  25. compatible = "qcom,tcsr";
  26. reg = <0x1949000 0x100>;
  27. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  28. };
  29. ess_tcsr@1953000 {
  30. compatible = "qcom,tcsr";
  31. reg = <0x1953000 0x1000>;
  32. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  33. };
  34. tcsr@1957000 {
  35. compatible = "qcom,tcsr";
  36. reg = <0x1957000 0x100>;
  37. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  38. };
  39. usb2: usb2@60f8800 {
  40. status = "okay";
  41. };
  42. crypto@8e3a000 {
  43. status = "okay";
  44. };
  45. watchdog@b017000 {
  46. status = "okay";
  47. };
  48. };
  49. keys {
  50. compatible = "gpio-keys";
  51. reset {
  52. label = "reset";
  53. gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
  54. linux,code = <KEY_RESTART>;
  55. };
  56. };
  57. aliases {
  58. led-boot = &led_status_purple;
  59. led-failsafe = &led_status_yellow;
  60. led-running = &led_status_cyan;
  61. led-upgrade = &led_status_yellow;
  62. label-mac-device = &swport5;
  63. };
  64. leds {
  65. compatible = "gpio-leds";
  66. led_status_cyan: status_cyan {
  67. function = LED_FUNCTION_STATUS;
  68. color = <LED_COLOR_ID_CYAN>;
  69. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  70. };
  71. led_status_purple: status_purple {
  72. function = LED_FUNCTION_STATUS;
  73. color = <LED_COLOR_ID_PURPLE>;
  74. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  75. };
  76. led_status_yellow: status_yellow {
  77. function = LED_FUNCTION_STATUS;
  78. color = <LED_COLOR_ID_YELLOW>;
  79. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  80. };
  81. };
  82. };
  83. &tlmm {
  84. serial_pins: serial_pinmux {
  85. mux {
  86. pins = "gpio60", "gpio61";
  87. function = "blsp_uart0";
  88. bias-disable;
  89. };
  90. };
  91. spi_0_pins: spi_0_pinmux {
  92. pin {
  93. function = "blsp_spi0";
  94. pins = "gpio55", "gpio56", "gpio57";
  95. drive-strength = <12>;
  96. bias-disable;
  97. };
  98. pin_cs {
  99. function = "gpio";
  100. pins = "gpio54";
  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 54 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. };
  142. };
  143. };
  144. };
  145. };
  146. &blsp1_uart1 {
  147. pinctrl-0 = <&serial_pins>;
  148. pinctrl-names = "default";
  149. status = "okay";
  150. };
  151. &cryptobam {
  152. status = "okay";
  153. };
  154. &usb2_hs_phy {
  155. status = "okay";
  156. };
  157. &mdio {
  158. status = "okay";
  159. };
  160. &gmac {
  161. status = "okay";
  162. };
  163. &switch {
  164. status = "okay";
  165. };
  166. &swport4 {
  167. status = "okay";
  168. label = "ethernet2";
  169. nvmem-cell-names = "mac-address";
  170. nvmem-cells = <&macaddr_gmac1>;
  171. };
  172. &swport5 {
  173. status = "okay";
  174. label = "ethernet1";
  175. nvmem-cell-names = "mac-address";
  176. nvmem-cells = <&macaddr_gmac0>;
  177. };
  178. &wifi0 {
  179. status = "okay";
  180. qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
  181. nvmem-cell-names = "pre-calibration";
  182. nvmem-cells = <&precal_art_1000>;
  183. };
  184. &wifi1 {
  185. status = "okay";
  186. qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
  187. nvmem-cell-names = "pre-calibration";
  188. nvmem-cells = <&precal_art_5000>;
  189. };