qcom-ipq4018-magic-2-wifi-next.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qcom-ipq4019.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. model = "devolo Magic 2 WiFi next";
  7. compatible = "devolo,magic-2-wifi-next";
  8. memory {
  9. device_type = "memory";
  10. reg = <0x80000000 0x10000000>;
  11. };
  12. soc {
  13. rng@22000 {
  14. status = "okay";
  15. };
  16. mdio@90000 {
  17. status = "okay";
  18. pinctrl-0 = <&mdio_pins>;
  19. pinctrl-names = "default";
  20. reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
  21. reset-delay-us = <2000>;
  22. /delete-node/ ethernet-phy@0;
  23. /delete-node/ ethernet-phy@1;
  24. };
  25. ess-psgmii@98000 {
  26. status = "okay";
  27. };
  28. crypto@8e3a000 {
  29. status = "okay";
  30. };
  31. watchdog@b017000 {
  32. status = "okay";
  33. };
  34. ess-switch@c000000 {
  35. status = "okay";
  36. switch_lan_bmp = <0x3e>;
  37. switch_wan_bmp = <0x0>;
  38. };
  39. edma@c080000 {
  40. status = "okay";
  41. qcom,num_gmac = <3>;
  42. gmac0 {
  43. qcom,phy_mdio_addr = <3>;
  44. qcom,poll_required = <1>;
  45. /delete-property/ qcom,forced_speed;
  46. /delete-property/ qcom,forced_duplex;
  47. vlan_tag = <1 0x10>;
  48. };
  49. gmac1 {
  50. qcom,phy_mdio_addr = <2>;
  51. qcom,poll_required = <1>;
  52. /delete-property/ qcom,forced_speed;
  53. /delete-property/ qcom,forced_duplex;
  54. vlan_tag = <1 0x08>;
  55. };
  56. gmac2 {
  57. local-mac-address = [00 00 00 00 00 00];
  58. qcom,phy_mdio_addr = <4>;
  59. qcom,poll_required = <1>;
  60. /delete-property/ qcom,forced_speed;
  61. /delete-property/ qcom,forced_duplex;
  62. vlan_tag = <1 0x20>;
  63. };
  64. };
  65. gpio_export {
  66. compatible = "gpio-export";
  67. #size-cells = <0>;
  68. plc {
  69. gpio-export,name = "plc-enable";
  70. gpio-export,output = <1>;
  71. gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
  72. };
  73. };
  74. };
  75. keys {
  76. compatible = "gpio-keys";
  77. wlan {
  78. label = "WLAN";
  79. gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
  80. linux,code = <KEY_WPS_BUTTON>;
  81. };
  82. reset {
  83. label = "Reset";
  84. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  85. linux,code = <KEY_RESTART>;
  86. };
  87. };
  88. leds {
  89. compatible = "gpio-leds";
  90. status_dlan {
  91. label = "white:dlan";
  92. gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
  93. default-state = "keep";
  94. };
  95. status_wlan {
  96. label = "white:wlan";
  97. gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
  98. default-state = "keep";
  99. };
  100. error_dlan {
  101. label = "red:dlan";
  102. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  103. default-state = "keep";
  104. };
  105. };
  106. };
  107. &tlmm {
  108. spi_0_pins: spi_0_pinmux {
  109. mux {
  110. function = "blsp_spi0";
  111. pins = "gpio55", "gpio56", "gpio57";
  112. drive-strength = <12>;
  113. bias-disable;
  114. };
  115. mux_cs {
  116. function = "gpio";
  117. pins = "gpio54";
  118. drive-strength = <2>;
  119. bias-disable;
  120. output-high;
  121. };
  122. };
  123. mdio_pins: mdio_pinmux {
  124. mux_1 {
  125. pins = "gpio53";
  126. function = "mdio";
  127. bias-pull-up;
  128. };
  129. mux_2 {
  130. pins = "gpio52";
  131. function = "mdc";
  132. bias-pull-up;
  133. };
  134. };
  135. serial_pins: serial_pinmux {
  136. mux {
  137. pins = "gpio61", "gpio60";
  138. function = "blsp_uart0";
  139. bias-disable;
  140. };
  141. };
  142. button_pins: button_pinmux {
  143. mux {
  144. function = "gpio";
  145. pins = "gpio0", "gpio5";
  146. bias-disable;
  147. input;
  148. };
  149. };
  150. };
  151. &cryptobam {
  152. status = "okay";
  153. };
  154. &blsp_dma {
  155. status = "okay";
  156. };
  157. &blsp1_uart1 {
  158. pinctrl-0 = <&serial_pins>;
  159. pinctrl-names = "default";
  160. status = "okay";
  161. };
  162. &wifi0 {
  163. status = "okay";
  164. qcom,ath10k-calibration-variant = "devolo,magic-2-wifi-next";
  165. };
  166. &wifi1 {
  167. status = "okay";
  168. qcom,ath10k-calibration-variant = "devolo,magic-2-wifi-next";
  169. };
  170. &blsp1_spi1 {
  171. pinctrl-0 = <&spi_0_pins>;
  172. pinctrl-names = "default";
  173. status = "okay";
  174. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  175. flash@0 {
  176. compatible = "jedec,spi-nor";
  177. reg = <0>;
  178. linux,modalias = "n25q128a11";
  179. spi-max-frequency = <24000000>;
  180. partitions {
  181. compatible = "fixed-partitions";
  182. #address-cells = <1>;
  183. #size-cells = <1>;
  184. partition@0 {
  185. label = "SBL1";
  186. reg = <0x00000000 0x00040000>;
  187. read-only;
  188. };
  189. partition@40000 {
  190. label = "MIBIB";
  191. reg = <0x00040000 0x00020000>;
  192. read-only;
  193. };
  194. partition@60000 {
  195. label = "QSEE";
  196. reg = <0x00060000 0x00060000>;
  197. read-only;
  198. };
  199. partition@c0000 {
  200. label = "CDT";
  201. reg = <0x000c0000 0x00010000>;
  202. read-only;
  203. };
  204. partition@d0000 {
  205. label = "DDRPARAMS";
  206. reg = <0x000d0000 0x00010000>;
  207. read-only;
  208. };
  209. partition@e0000 {
  210. label = "APPSBLENV"; /* uboot env*/
  211. reg = <0x000e0000 0x00010000>;
  212. };
  213. partition@f0000 {
  214. label = "APPSBL"; /* uboot */
  215. reg = <0x000f0000 0x00080000>;
  216. read-only;
  217. };
  218. partition@170000 {
  219. label = "ART";
  220. reg = <0x00170000 0x00010000>;
  221. read-only;
  222. };
  223. firmware@180000 {
  224. compatible = "denx,fit";
  225. label = "firmware";
  226. reg = <0x00180000 0x01a80000>;
  227. };
  228. };
  229. };
  230. };