qcom-ipq4029-aruba-glenmorangie.dtsi 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. // SPDX-License-Identifier: GPL-2.0-only 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/soc/qcom,tcsr.h>
  6. / {
  7. memory {
  8. device_type = "memory";
  9. reg = <0x80000000 0x10000000>;
  10. };
  11. soc {
  12. rng@22000 {
  13. status = "okay";
  14. };
  15. mdio@90000 {
  16. status = "okay";
  17. pinctrl-0 = <&mdio_pins>;
  18. pinctrl-names = "default";
  19. /delete-node/ ethernet-phy@0;
  20. /delete-node/ ethernet-phy@1;
  21. /delete-node/ ethernet-phy@2;
  22. /delete-node/ ethernet-phy@3;
  23. /delete-node/ ethernet-phy@4;
  24. /delete-node/ psgmii-phy@5;
  25. ethernet-phy@5 {
  26. reg = <0x5>;
  27. };
  28. };
  29. counter@4a1000 {
  30. compatible = "qcom,qca-gcnt";
  31. reg = <0x4a1000 0x4>;
  32. };
  33. ess_tcsr@1953000 {
  34. compatible = "qcom,tcsr";
  35. reg = <0x1953000 0x1000>;
  36. qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
  37. };
  38. tcsr@1949000 {
  39. compatible = "qcom,tcsr";
  40. reg = <0x1949000 0x100>;
  41. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  42. };
  43. tcsr@1957000 {
  44. compatible = "qcom,tcsr";
  45. reg = <0x1957000 0x100>;
  46. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  47. };
  48. crypto@8e3a000 {
  49. status = "okay";
  50. };
  51. watchdog@b017000 {
  52. status = "okay";
  53. };
  54. ess-switch@c000000 {
  55. switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
  56. switch_lan_bmp = <0x0>; /* lan port bitmap */
  57. switch_wan_bmp = <0x10>; /* wan port bitmap */
  58. };
  59. edma@c080000 {
  60. qcom,single-phy;
  61. qcom,num_gmac = <1>;
  62. phy-mode = "rgmii-id";
  63. status = "okay";
  64. };
  65. i2c_0: i2c@78b7000 {
  66. pinctrl-0 = <&i2c_0_pins>;
  67. pinctrl-names = "default";
  68. status = "okay";
  69. tpm@29 {
  70. /* No Driver */
  71. compatible = "atmel,at97sc3203";
  72. reg = <0x29>;
  73. read-only;
  74. };
  75. };
  76. };
  77. keys {
  78. compatible = "gpio-keys";
  79. reset {
  80. label = "Reset button";
  81. gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
  82. linux,code = <KEY_RESTART>;
  83. };
  84. };
  85. };
  86. &blsp_dma {
  87. status = "okay";
  88. };
  89. &blsp1_uart1 {
  90. /* Texas Instruments CC2540T BLE radio */
  91. pinctrl-0 = <&serial_0_pins>;
  92. pinctrl-names = "default";
  93. status = "okay";
  94. };
  95. &blsp1_uart2 {
  96. pinctrl-0 = <&serial_1_pins>;
  97. pinctrl-names = "default";
  98. status = "okay";
  99. };
  100. &cryptobam {
  101. status = "okay";
  102. };
  103. &gmac0 {
  104. qcom,phy_mdio_addr = <5>;
  105. qcom,poll_required = <1>;
  106. vlan_tag = <0 0x20>;
  107. };
  108. &qpic_bam {
  109. status = "okay";
  110. };
  111. &tlmm {
  112. mdio_pins: mdio_pinmux {
  113. mux_1 {
  114. pins = "gpio6";
  115. function = "mdio";
  116. bias-pull-up;
  117. };
  118. mux_2 {
  119. pins = "gpio7";
  120. function = "mdc";
  121. bias-pull-up;
  122. };
  123. };
  124. nand_pins: nand_pins {
  125. pullups {
  126. pins = "gpio53", "gpio58", "gpio59";
  127. function = "qpic";
  128. bias-pull-up;
  129. };
  130. pulldowns {
  131. pins = "gpio54", "gpio55", "gpio56",
  132. "gpio57", "gpio60", "gpio61",
  133. "gpio62", "gpio63", "gpio64",
  134. "gpio65", "gpio66", "gpio67",
  135. "gpio68", "gpio69";
  136. function = "qpic";
  137. bias-pull-down;
  138. };
  139. };
  140. spi_0_pins: spi_0_pinmux {
  141. pin {
  142. function = "blsp_spi0";
  143. pins = "gpio13", "gpio14", "gpio15";
  144. drive-strength = <12>;
  145. bias-disable;
  146. };
  147. pin_cs {
  148. function = "gpio";
  149. pins = "gpio12";
  150. drive-strength = <2>;
  151. bias-disable;
  152. output-high;
  153. };
  154. };
  155. i2c_0_pins: i2c_0_pinmux {
  156. mux {
  157. pins = "gpio10", "gpio11";
  158. function = "blsp_i2c0";
  159. drive-strength = <4>;
  160. bias-disable;
  161. };
  162. };
  163. serial_0_pins: serial_0_pinmux {
  164. mux {
  165. pins = "gpio16", "gpio17";
  166. function = "blsp_uart0";
  167. bias-disable;
  168. };
  169. };
  170. serial_1_pins: serial_1_pinmux {
  171. mux {
  172. pins = "gpio8", "gpio9";
  173. function = "blsp_uart1";
  174. bias-disable;
  175. };
  176. };
  177. };
  178. &nand {
  179. pinctrl-0 = <&nand_pins>;
  180. pinctrl-names = "default";
  181. status = "okay";
  182. nand@0 {
  183. partitions {
  184. compatible = "fixed-partitions";
  185. #address-cells = <1>;
  186. #size-cells = <1>;
  187. partition@0 {
  188. /* 'aos0' in Aruba firmware */
  189. label = "aos0";
  190. reg = <0x0 0x2000000>;
  191. read-only;
  192. };
  193. partition@2000000 {
  194. /* 'aos1' in Aruba firmware */
  195. label = "ubi";
  196. reg = <0x2000000 0x2000000>;
  197. };
  198. partition@4000000 {
  199. label = "aruba-ubifs";
  200. reg = <0x4000000 0x4000000>;
  201. read-only;
  202. };
  203. };
  204. };
  205. };
  206. &wifi0 {
  207. status = "okay";
  208. qcom,ath10k-calibration-variant = "Aruba-AP-303";
  209. };
  210. &wifi1 {
  211. status = "okay";
  212. qcom,ath10k-calibration-variant = "Aruba-AP-303";
  213. };