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. crypto@8e3a000 {
  40. status = "okay";
  41. };
  42. watchdog@b017000 {
  43. status = "okay";
  44. };
  45. };
  46. keys {
  47. compatible = "gpio-keys";
  48. reset {
  49. label = "reset";
  50. gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
  51. linux,code = <KEY_RESTART>;
  52. };
  53. };
  54. aliases {
  55. led-boot = &led_status_purple;
  56. led-failsafe = &led_status_yellow;
  57. led-running = &led_status_cyan;
  58. led-upgrade = &led_status_yellow;
  59. label-mac-device = &swport5;
  60. };
  61. leds {
  62. compatible = "gpio-leds";
  63. led_status_cyan: status_cyan {
  64. function = LED_FUNCTION_STATUS;
  65. color = <LED_COLOR_ID_CYAN>;
  66. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  67. };
  68. led_status_purple: status_purple {
  69. function = LED_FUNCTION_STATUS;
  70. color = <LED_COLOR_ID_PURPLE>;
  71. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  72. };
  73. led_status_yellow: status_yellow {
  74. function = LED_FUNCTION_STATUS;
  75. color = <LED_COLOR_ID_YELLOW>;
  76. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  77. };
  78. };
  79. };
  80. &tlmm {
  81. serial_pins: serial_pinmux {
  82. mux {
  83. pins = "gpio60", "gpio61";
  84. function = "blsp_uart0";
  85. bias-disable;
  86. };
  87. };
  88. spi_0_pins: spi_0_pinmux {
  89. pin {
  90. function = "blsp_spi0";
  91. pins = "gpio55", "gpio56", "gpio57";
  92. drive-strength = <12>;
  93. bias-disable;
  94. };
  95. pin_cs {
  96. function = "gpio";
  97. pins = "gpio54";
  98. drive-strength = <2>;
  99. bias-disable;
  100. output-high;
  101. };
  102. };
  103. };
  104. &blsp_dma {
  105. status = "okay";
  106. };
  107. &blsp1_spi1 {
  108. pinctrl-0 = <&spi_0_pins>;
  109. pinctrl-names = "default";
  110. status = "okay";
  111. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  112. flash@0 {
  113. #address-cells = <1>;
  114. #size-cells = <1>;
  115. compatible = "jedec,spi-nor";
  116. reg = <0>;
  117. spi-max-frequency = <24000000>;
  118. /* partitions are passed via bootloader */
  119. partitions {
  120. partition-art {
  121. label = "0:ART";
  122. nvmem-layout {
  123. compatible = "fixed-layout";
  124. #address-cells = <1>;
  125. #size-cells = <1>;
  126. macaddr_gmac0: macaddr@0 {
  127. reg = <0x0 0x6>;
  128. };
  129. macaddr_gmac1: macaddr@6 {
  130. reg = <0x6 0x6>;
  131. };
  132. precal_art_1000: precal@1000 {
  133. reg = <0x1000 0x2f20>;
  134. };
  135. precal_art_5000: precal@5000 {
  136. reg = <0x5000 0x2f20>;
  137. };
  138. };
  139. };
  140. };
  141. };
  142. };
  143. &blsp1_uart1 {
  144. pinctrl-0 = <&serial_pins>;
  145. pinctrl-names = "default";
  146. status = "okay";
  147. };
  148. &cryptobam {
  149. status = "okay";
  150. };
  151. &usb2 {
  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. };