ipq8072-haze.dts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "ipq8074.dtsi"
  4. #include "ipq8074-hk-cpu.dtsi"
  5. #include "ipq8074-ess.dtsi"
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/input/input.h>
  8. #include <dt-bindings/leds/common.h>
  9. / {
  10. model = "prpl Foundation Haze";
  11. compatible = "prpl,haze", "qcom,ipq8074";
  12. aliases {
  13. serial0 = &blsp1_uart5;
  14. /* Aliases are required by U-Boot to patch MAC addresses */
  15. ethernet0 = &dp6_syn;
  16. ethernet1 = &dp4;
  17. ethernet2 = &dp3;
  18. ethernet3 = &dp2;
  19. label-mac-device = &dp6_syn;
  20. };
  21. chosen {
  22. stdout-path = "serial0:115200n8";
  23. };
  24. keys {
  25. compatible = "gpio-keys";
  26. pinctrl-0 = <&button_pins>;
  27. pinctrl-names = "default";
  28. wps-button {
  29. label = "wps";
  30. gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_WPS_BUTTON>;
  32. };
  33. reset-button {
  34. label = "reset";
  35. gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
  36. linux,code = <KEY_RESTART>;
  37. };
  38. };
  39. };
  40. &tlmm {
  41. mdio_pins: mdio-state {
  42. mdc-pins {
  43. pins = "gpio68";
  44. function = "mdc";
  45. drive-strength = <8>;
  46. bias-pull-up;
  47. };
  48. mdio-pins {
  49. pins = "gpio69";
  50. function = "mdio";
  51. drive-strength = <8>;
  52. bias-pull-up;
  53. };
  54. };
  55. button_pins: button-state {
  56. wps-pins {
  57. pins = "gpio42";
  58. function = "gpio";
  59. drive-strength = <8>;
  60. bias-pull-up;
  61. };
  62. rst-pins {
  63. pins = "gpio44";
  64. function = "gpio";
  65. drive-strength = <8>;
  66. bias-pull-up;
  67. };
  68. };
  69. };
  70. &blsp1_uart5 {
  71. status = "okay";
  72. };
  73. &prng {
  74. status = "okay";
  75. };
  76. &ssphy_0 {
  77. status = "okay";
  78. };
  79. &qusb_phy_0 {
  80. status = "okay";
  81. };
  82. &ssphy_1 {
  83. status = "okay";
  84. };
  85. &qusb_phy_1 {
  86. status = "okay";
  87. };
  88. &usb_0 {
  89. status = "okay";
  90. };
  91. &usb_1 {
  92. status = "okay";
  93. };
  94. &cryptobam {
  95. status = "okay";
  96. };
  97. &crypto {
  98. status = "okay";
  99. };
  100. &qpic_bam {
  101. status = "okay";
  102. };
  103. &blsp1_spi1 { /* BLSP1 QUP1 */
  104. pinctrl-0 = <&spi_0_pins>;
  105. pinctrl-names = "default";
  106. cs-gpios = <0>;
  107. status = "okay";
  108. flash@0 {
  109. #address-cells = <1>;
  110. #size-cells = <1>;
  111. reg = <0>;
  112. compatible = "jedec,spi-nor";
  113. spi-max-frequency = <50000000>;
  114. partitions {
  115. compatible = "qcom,smem-part";
  116. };
  117. };
  118. };
  119. &mdio {
  120. status = "okay";
  121. pinctrl-0 = <&mdio_pins>;
  122. pinctrl-names = "default";
  123. reset-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
  124. qca8075_1: ethernet-phy@0 {
  125. compatible = "ethernet-phy-ieee802.3-c22";
  126. reg = <0>;
  127. };
  128. qca8075_2: ethernet-phy@1 {
  129. compatible = "ethernet-phy-ieee802.3-c22";
  130. reg = <1>;
  131. };
  132. qca8075_3: ethernet-phy@2 {
  133. compatible = "ethernet-phy-ieee802.3-c22";
  134. reg = <2>;
  135. };
  136. qca8075_4: ethernet-phy@3 {
  137. compatible = "ethernet-phy-ieee802.3-c22";
  138. reg = <3>;
  139. };
  140. aqr113c: ethernet-phy@5 {
  141. compatible ="ethernet-phy-ieee802.3-c45";
  142. reg = <8>;
  143. reset-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
  144. };
  145. };
  146. &sdhc_1 {
  147. status = "okay";
  148. vqmmc-supply = <&l11>;
  149. };
  150. &switch {
  151. status = "okay";
  152. switch_cpu_bmp = <0x1>; /* cpu port bitmap */
  153. switch_lan_bmp = <0x1e>; /* lan port bitmap */
  154. switch_wan_bmp = <0x60>; /* wan port bitmap */
  155. switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
  156. switch_mac_mode1 = <0xe>; /* mac mode for uniphy instance1*/
  157. switch_mac_mode2 = <0xd>; /* mac mode for uniphy instance2*/
  158. bm_tick_mode = <0>; /* bm tick mode */
  159. tm_tick_mode = <0>; /* tm tick mode */
  160. qcom,port_phyinfo {
  161. port@0 {
  162. port_id = <1>;
  163. phy_address = <0>;
  164. };
  165. port@1 {
  166. port_id = <2>;
  167. phy_address = <1>;
  168. };
  169. port@2 {
  170. port_id = <3>;
  171. phy_address = <2>;
  172. };
  173. port@3 {
  174. port_id = <4>;
  175. phy_address = <3>;
  176. };
  177. port@4 {
  178. port_id = <6>;
  179. phy_address = <8>;
  180. compatible = "ethernet-phy-ieee802.3-c45";
  181. ethernet-phy-ieee802.3-c45;
  182. };
  183. };
  184. };
  185. &edma {
  186. status = "okay";
  187. };
  188. /* Dummy LAN port */
  189. &dp1 {
  190. status = "disabled";
  191. phy-handle = <&qca8075_1>;
  192. label = "lan4";
  193. };
  194. &dp2 {
  195. status = "okay";
  196. phy-handle = <&qca8075_2>;
  197. label = "lan3";
  198. };
  199. &dp3 {
  200. status = "okay";
  201. phy-handle = <&qca8075_3>;
  202. label = "lan2";
  203. };
  204. &dp4 {
  205. status = "okay";
  206. phy-handle = <&qca8075_4>;
  207. label = "lan1";
  208. };
  209. &dp6_syn {
  210. status = "okay";
  211. qcom,mactype = <1>;
  212. phy-handle = <&aqr113c>;
  213. label = "wan";
  214. };
  215. &pcie_qmp0 {
  216. status = "okay";
  217. };
  218. &pcie0 {
  219. status = "okay";
  220. perst-gpio = <&tlmm 58 GPIO_ACTIVE_LOW>;
  221. bridge@0,0 {
  222. reg = <0x00020000 0 0 0 0>;
  223. #address-cells = <3>;
  224. #size-cells = <2>;
  225. ranges;
  226. };
  227. };
  228. &pcie_qmp1 {
  229. status = "okay";
  230. };
  231. &pcie1 {
  232. status = "okay";
  233. perst-gpio = <&tlmm 61 GPIO_ACTIVE_LOW>;
  234. bridge@1,0 {
  235. reg = <0x00010000 0 0 0 0>;
  236. #address-cells = <3>;
  237. #size-cells = <2>;
  238. ranges;
  239. wifi@1,0 {
  240. status = "okay";
  241. /* ath11k has no DT compatible for PCI cards */
  242. compatible = "pci17cb,1104";
  243. reg = <0x00010000 0 0 0 0>;
  244. qcom,ath11k-calibration-variant = "prpl-Haze";
  245. };
  246. };
  247. };
  248. &wifi {
  249. status = "okay";
  250. qcom,ath11k-calibration-variant = "prpl-Haze";
  251. };