qcom-ipq4019-a62.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. // SPDX-License-Identifier: ISC
  2. /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2017-2018, Sven Eckelmann <[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 = "OpenMesh A62";
  11. compatible = "openmesh,a62";
  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 18 GPIO_ACTIVE_LOW>;
  53. linux,code = <KEY_RESTART >;
  54. };
  55. };
  56. aliases {
  57. led-boot = &led_status_green;
  58. led-failsafe = &led_status_green;
  59. led-running = &led_status_green;
  60. led-upgrade = &led_status_green;
  61. };
  62. leds {
  63. compatible = "gpio-leds";
  64. status_red {
  65. label = "red:status";
  66. gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
  67. };
  68. led_status_green: status_green {
  69. label = "green:status";
  70. gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
  71. };
  72. status_blue {
  73. label = "blue:status";
  74. gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
  75. };
  76. };
  77. watchdog {
  78. compatible = "linux,wdt-gpio";
  79. gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
  80. hw_algo = "toggle";
  81. /* hw_margin_ms is actually 300s but driver limits it to 60s */
  82. hw_margin_ms = <60000>;
  83. always-running;
  84. };
  85. };
  86. &tlmm {
  87. serial_pins: serial_pinmux {
  88. mux {
  89. pins = "gpio16", "gpio17";
  90. function = "blsp_uart0";
  91. bias-disable;
  92. };
  93. };
  94. spi_0_pins: spi_0_pinmux {
  95. pin {
  96. function = "blsp_spi0";
  97. pins = "gpio13", "gpio14", "gpio15";
  98. drive-strength = <12>;
  99. bias-disable;
  100. };
  101. pin_cs {
  102. function = "gpio";
  103. pins = "gpio12";
  104. drive-strength = <2>;
  105. bias-disable;
  106. output-high;
  107. };
  108. };
  109. enable-usb-power {
  110. gpio-hog;
  111. gpios = <58 GPIO_ACTIVE_HIGH>;
  112. output-low;
  113. line-name = "enable USB2 power";
  114. };
  115. };
  116. &blsp_dma {
  117. status = "okay";
  118. };
  119. &blsp1_spi1 {
  120. pinctrl-0 = <&spi_0_pins>;
  121. pinctrl-names = "default";
  122. status = "okay";
  123. cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
  124. flash@0 {
  125. #address-cells = <1>;
  126. #size-cells = <1>;
  127. compatible = "jedec,spi-nor";
  128. reg = <0>;
  129. spi-max-frequency = <24000000>;
  130. /* partitions are passed via bootloader */
  131. };
  132. };
  133. &blsp1_uart1 {
  134. pinctrl-0 = <&serial_pins>;
  135. pinctrl-names = "default";
  136. status = "okay";
  137. };
  138. &cryptobam {
  139. status = "okay";
  140. };
  141. &usb2_hs_phy {
  142. status = "okay";
  143. };
  144. &pcie0 {
  145. status = "okay";
  146. perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
  147. wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
  148. bridge@0,0 {
  149. reg = <0x00000000 0 0 0 0>;
  150. #address-cells = <3>;
  151. #size-cells = <2>;
  152. ranges;
  153. wifi2: wifi@1,0 {
  154. compatible = "qcom,ath10k";
  155. status = "okay";
  156. reg = <0x00010000 0 0 0 0>;
  157. qcom,ath10k-calibration-variant = "OM-A62";
  158. ieee80211-freq-limit = <5170000 5350000>;
  159. };
  160. };
  161. };
  162. &mdio {
  163. status = "okay";
  164. };
  165. &gmac {
  166. status = "okay";
  167. };
  168. &switch {
  169. status = "okay";
  170. };
  171. &swport4 {
  172. status = "okay";
  173. label = "ethernet1";
  174. };
  175. &swport5 {
  176. status = "okay";
  177. label = "ethernet2";
  178. };
  179. &wifi0 {
  180. status = "okay";
  181. qcom,ath10k-calibration-variant = "OM-A62";
  182. };
  183. &wifi1 {
  184. status = "okay";
  185. qcom,ath10k-calibration-variant = "OM-A62";
  186. ieee80211-freq-limit = <5470000 5875000>;
  187. };