qcom-ipq4018-pa1200.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. mdio@90000 {
  17. status = "okay";
  18. };
  19. ess-psgmii@98000 {
  20. status = "okay";
  21. };
  22. tcsr@194b000 {
  23. /* select hostmode */
  24. compatible = "qcom,tcsr";
  25. reg = <0x194b000 0x100>;
  26. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  27. status = "okay";
  28. };
  29. tcsr@1949000 {
  30. compatible = "qcom,tcsr";
  31. reg = <0x1949000 0x100>;
  32. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  33. };
  34. ess_tcsr@1953000 {
  35. compatible = "qcom,tcsr";
  36. reg = <0x1953000 0x1000>;
  37. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  38. };
  39. tcsr@1957000 {
  40. compatible = "qcom,tcsr";
  41. reg = <0x1957000 0x100>;
  42. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  43. };
  44. usb2: usb2@60f8800 {
  45. status = "okay";
  46. };
  47. crypto@8e3a000 {
  48. status = "okay";
  49. };
  50. watchdog@b017000 {
  51. status = "okay";
  52. };
  53. ess-switch@c000000 {
  54. status = "okay";
  55. };
  56. edma@c080000 {
  57. status = "okay";
  58. };
  59. };
  60. keys {
  61. compatible = "gpio-keys";
  62. reset {
  63. label = "reset";
  64. gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
  65. linux,code = <KEY_RESTART>;
  66. };
  67. };
  68. aliases {
  69. led-boot = &led_status_purple;
  70. led-failsafe = &led_status_yellow;
  71. led-running = &led_status_cyan;
  72. led-upgrade = &led_status_yellow;
  73. };
  74. leds {
  75. compatible = "gpio-leds";
  76. led_status_cyan: status_cyan {
  77. label = "cyan:status";
  78. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  79. };
  80. led_status_purple: status_purple {
  81. label = "purple:status";
  82. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  83. };
  84. led_status_yellow: status_yellow {
  85. label = "yellow:status";
  86. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  87. };
  88. };
  89. };
  90. &tlmm {
  91. serial_pins: serial_pinmux {
  92. mux {
  93. pins = "gpio60", "gpio61";
  94. function = "blsp_uart0";
  95. bias-disable;
  96. };
  97. };
  98. spi_0_pins: spi_0_pinmux {
  99. pin {
  100. function = "blsp_spi0";
  101. pins = "gpio55", "gpio56", "gpio57";
  102. drive-strength = <12>;
  103. bias-disable;
  104. };
  105. pin_cs {
  106. function = "gpio";
  107. pins = "gpio54";
  108. drive-strength = <2>;
  109. bias-disable;
  110. output-high;
  111. };
  112. };
  113. };
  114. &blsp_dma {
  115. status = "okay";
  116. };
  117. &blsp1_spi1 {
  118. pinctrl-0 = <&spi_0_pins>;
  119. pinctrl-names = "default";
  120. status = "okay";
  121. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  122. flash@0 {
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. compatible = "jedec,spi-nor";
  126. reg = <0>;
  127. spi-max-frequency = <24000000>;
  128. /* partitions are passed via bootloader */
  129. };
  130. };
  131. &blsp1_uart1 {
  132. pinctrl-0 = <&serial_pins>;
  133. pinctrl-names = "default";
  134. status = "okay";
  135. };
  136. &cryptobam {
  137. status = "okay";
  138. };
  139. &gmac0 {
  140. qcom,phy_mdio_addr = <4>;
  141. qcom,poll_required = <1>;
  142. qcom,forced_speed = <1000>;
  143. qcom,forced_duplex = <1>;
  144. vlan_tag = <2 0x20>;
  145. };
  146. &gmac1 {
  147. qcom,phy_mdio_addr = <3>;
  148. qcom,poll_required = <1>;
  149. qcom,forced_speed = <1000>;
  150. qcom,forced_duplex = <1>;
  151. vlan_tag = <1 0x10>;
  152. };
  153. &usb2_hs_phy {
  154. status = "okay";
  155. };
  156. &wifi0 {
  157. status = "okay";
  158. qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
  159. };
  160. &wifi1 {
  161. status = "okay";
  162. qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
  163. };