qcom-ipq4018-ap120c-ac.dtsi 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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 = "ALFA Network AP120C-AC";
  7. compatible = "alfa-network,ap120c-ac";
  8. keys {
  9. compatible = "gpio-keys";
  10. key-reset {
  11. label = "reset";
  12. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  13. linux,code = <KEY_RESTART>;
  14. };
  15. };
  16. };
  17. &tlmm {
  18. i2c0_pins: i2c0_pinmux {
  19. mux_i2c {
  20. function = "blsp_i2c0";
  21. pins = "gpio58", "gpio59";
  22. drive-strength = <16>;
  23. bias-disable;
  24. };
  25. };
  26. mdio_pins: mdio_pinmux {
  27. mux_mdio {
  28. pins = "gpio53";
  29. function = "mdio";
  30. bias-pull-up;
  31. };
  32. mux_mdc {
  33. pins = "gpio52";
  34. function = "mdc";
  35. bias-pull-up;
  36. };
  37. };
  38. serial0_pins: serial0_pinmux {
  39. mux_uart {
  40. pins = "gpio60", "gpio61";
  41. function = "blsp_uart0";
  42. bias-disable;
  43. };
  44. };
  45. spi0_pins: spi0_pinmux {
  46. mux_spi {
  47. function = "blsp_spi0";
  48. pins = "gpio55", "gpio56", "gpio57";
  49. drive-strength = <12>;
  50. bias-disable;
  51. };
  52. mux_cs {
  53. function = "gpio";
  54. pins = "gpio54", "gpio4";
  55. drive-strength = <2>;
  56. bias-disable;
  57. output-high;
  58. };
  59. };
  60. usb-power {
  61. line-name = "USB-power";
  62. gpios = <1 GPIO_ACTIVE_HIGH>;
  63. gpio-hog;
  64. output-high;
  65. };
  66. };
  67. &watchdog {
  68. status = "okay";
  69. };
  70. &prng {
  71. status = "okay";
  72. };
  73. &blsp_dma {
  74. status = "okay";
  75. };
  76. &blsp1_i2c3 {
  77. status = "okay";
  78. pinctrl-0 = <&i2c0_pins>;
  79. pinctrl-names = "default";
  80. tpm@29 {
  81. compatible = "atmel,at97sc3204t";
  82. reg = <0x29>;
  83. };
  84. };
  85. &blsp1_spi1 {
  86. status = "okay";
  87. pinctrl-0 = <&spi0_pins>;
  88. pinctrl-names = "default";
  89. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
  90. flash@0 {
  91. compatible = "jedec,spi-nor";
  92. reg = <0>;
  93. spi-max-frequency = <24000000>;
  94. partitions {
  95. compatible = "fixed-partitions";
  96. #address-cells = <1>;
  97. #size-cells = <1>;
  98. partition@0 {
  99. label = "SBL1";
  100. reg = <0x00000000 0x00040000>;
  101. read-only;
  102. };
  103. partition@40000 {
  104. label = "MIBIB";
  105. reg = <0x00040000 0x00020000>;
  106. read-only;
  107. };
  108. partition@60000 {
  109. label = "QSEE";
  110. reg = <0x00060000 0x00060000>;
  111. read-only;
  112. };
  113. partition@c0000 {
  114. label = "CDT";
  115. reg = <0x000c0000 0x00010000>;
  116. read-only;
  117. };
  118. partition@d0000 {
  119. label = "DDRPARAMS";
  120. reg = <0x000d0000 0x00010000>;
  121. read-only;
  122. };
  123. partition@e0000 {
  124. label = "u-boot-env";
  125. reg = <0x000e0000 0x00010000>;
  126. };
  127. partition@f0000 {
  128. label = "u-boot";
  129. reg = <0x000f0000 0x00080000>;
  130. read-only;
  131. };
  132. partition@170000 {
  133. label = "ART";
  134. reg = <0x00170000 0x00010000>;
  135. read-only;
  136. };
  137. partition@180000 {
  138. label = "priv_data1";
  139. reg = <0x00180000 0x00010000>;
  140. read-only;
  141. };
  142. partition@190000 {
  143. label = "priv_data2";
  144. reg = <0x00190000 0x00010000>;
  145. read-only;
  146. };
  147. };
  148. };
  149. nand@1 {
  150. compatible = "spi-nand";
  151. reg = <1>;
  152. spi-max-frequency = <40000000>;
  153. partitions {
  154. compatible = "fixed-partitions";
  155. #address-cells = <1>;
  156. #size-cells = <1>;
  157. partition@0 {
  158. label = "ubi1";
  159. reg = <0x00000000 0x04000000>;
  160. };
  161. partition@4000000 {
  162. label = "ubi2";
  163. reg = <0x04000000 0x04000000>;
  164. };
  165. };
  166. };
  167. };
  168. &blsp1_uart1 {
  169. status = "okay";
  170. pinctrl-0 = <&serial0_pins>;
  171. pinctrl-names = "default";
  172. };
  173. &cryptobam {
  174. status = "okay";
  175. };
  176. &crypto {
  177. status = "okay";
  178. };
  179. &mdio {
  180. status = "okay";
  181. pinctrl-0 = <&mdio_pins>;
  182. pinctrl-names = "default";
  183. };
  184. &wifi0 {
  185. status = "okay";
  186. };
  187. &wifi1 {
  188. status = "okay";
  189. qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";
  190. };
  191. &usb3_hs_phy {
  192. status = "okay";
  193. };
  194. &usb3 {
  195. status = "okay";
  196. dwc3@8a00000 {
  197. phys = <&usb3_hs_phy>;
  198. phy-names = "usb2-phy";
  199. };
  200. };
  201. &usb2_hs_phy {
  202. status = "okay";
  203. };
  204. &usb2 {
  205. status = "okay";
  206. };