qcom-ipq4019-a62.dts 3.9 KB

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