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

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