qcom-ipq8064-unifi-ac-hd.dts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qcom-ipq8064-v2.0-smb208.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. model = "Ubiquiti UniFi AC HD";
  7. compatible = "ubnt,unifi-ac-hd", "qcom,ipq8064";
  8. aliases {
  9. label-mac-device = &gmac2;
  10. led-boot = &led_dome_white;
  11. led-failsafe = &led_dome_white;
  12. led-running = &led_dome_blue;
  13. led-upgrade = &led_dome_blue;
  14. mdio-gpio0 = &mdio0;
  15. ethernet0 = &gmac2;
  16. ethernet1 = &gmac1;
  17. };
  18. leds {
  19. compatible = "gpio-leds";
  20. pinctrl-0 = <&led_pins>;
  21. pinctrl-names = "default";
  22. led_dome_blue: dome_blue {
  23. label = "blue:dome";
  24. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  25. };
  26. led_dome_white: dome_white {
  27. label = "white:dome";
  28. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  29. };
  30. };
  31. keys {
  32. compatible = "gpio-keys";
  33. pinctrl-0 = <&button_pins>;
  34. pinctrl-names = "default";
  35. reset {
  36. label = "reset";
  37. gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_RESTART>;
  39. debounce-interval = <60>;
  40. wakeup-source;
  41. };
  42. };
  43. };
  44. &qcom_pinmux {
  45. button_pins: button_pins {
  46. mux {
  47. pins = "gpio68";
  48. function = "gpio";
  49. drive-strength = <2>;
  50. bias-pull-up;
  51. };
  52. };
  53. led_pins: led_pins {
  54. mux {
  55. pins = "gpio9", "gpio53";
  56. function = "gpio";
  57. drive-strength = <2>;
  58. bias-pull-down;
  59. output-low;
  60. };
  61. };
  62. spi_pins: spi_pins {
  63. mux {
  64. pins = "gpio18", "gpio19", "gpio21";
  65. function = "gsbi5";
  66. drive-strength = <10>;
  67. bias-none;
  68. };
  69. cs {
  70. pins = "gpio20";
  71. drive-strength = <12>;
  72. };
  73. };
  74. };
  75. &CPU_SPC {
  76. status = "disabled";
  77. };
  78. &gsbi5 {
  79. status = "okay";
  80. qcom,mode = <GSBI_PROT_SPI>;
  81. spi@1a280000 {
  82. status = "okay";
  83. pinctrl-0 = <&spi_pins>;
  84. pinctrl-names = "default";
  85. cs-gpios = <&qcom_pinmux 20 0>;
  86. flash@0 {
  87. compatible = "mx25u25635f", "jedec,spi-nor";
  88. #address-cells = <1>;
  89. #size-cells = <1>;
  90. spi-max-frequency = <50000000>;
  91. reg = <0>;
  92. m25p,fast-read;
  93. partitions {
  94. compatible = "fixed-partitions";
  95. #address-cells = <1>;
  96. #size-cells = <1>;
  97. partition@0 {
  98. label = "SBL1";
  99. reg = <0x0 0x20000>;
  100. read-only;
  101. };
  102. partition@20000 {
  103. label = "MIBIB";
  104. reg = <0x20000 0x10000>;
  105. read-only;
  106. };
  107. partition@30000 {
  108. label = "SBL2";
  109. reg = <0x30000 0x20000>;
  110. read-only;
  111. };
  112. partition@50000 {
  113. label = "SBL3";
  114. reg = <0x50000 0x30000>;
  115. read-only;
  116. };
  117. partition@80000 {
  118. label = "DDRCONFIG";
  119. reg = <0x80000 0x10000>;
  120. read-only;
  121. };
  122. partition@90000 {
  123. label = "SSD";
  124. reg = <0x90000 0x10000>;
  125. read-only;
  126. };
  127. partition@a0000 {
  128. label = "TZ";
  129. reg = <0xa0000 0x30000>;
  130. read-only;
  131. };
  132. partition@d0000 {
  133. label = "RPM";
  134. reg = <0xd0000 0x20000>;
  135. read-only;
  136. };
  137. partition@f0000 {
  138. label = "APPSBL";
  139. reg = <0xf0000 0xc0000>;
  140. read-only;
  141. };
  142. partition@1b0000 {
  143. label = "APPSBLENV";
  144. reg = <0x1b0000 0x10000>;
  145. read-only;
  146. };
  147. eeprom: partition@1c0000 {
  148. label = "EEPROM";
  149. reg = <0x1c0000 0x10000>;
  150. read-only;
  151. nvmem-layout {
  152. compatible = "fixed-layout";
  153. #address-cells = <1>;
  154. #size-cells = <1>;
  155. macaddr_eeprom_0: macaddr@0 {
  156. reg = <0x0 0x6>;
  157. };
  158. macaddr_eeprom_6: macaddr@6 {
  159. reg = <0x6 0x6>;
  160. };
  161. };
  162. };
  163. partition@1d0000 {
  164. label = "bootselect";
  165. reg = <0x1d0000 0x10000>;
  166. };
  167. partition@1e0000 {
  168. compatible = "denx,fit";
  169. label = "firmware";
  170. reg = <0x1e0000 0xe70000>;
  171. };
  172. partition@1050000 {
  173. label = "kernel1";
  174. reg = <0x1050000 0xe70000>;
  175. read-only;
  176. };
  177. partition@1ec0000 {
  178. label = "debug";
  179. reg = <0x1ec0000 0x100000>;
  180. read-only;
  181. };
  182. partition@1fc0000 {
  183. label = "cfg";
  184. reg = <0x1fc0000 0x40000>;
  185. read-only;
  186. };
  187. };
  188. };
  189. };
  190. };
  191. &adm_dma {
  192. status = "okay";
  193. };
  194. &nand {
  195. status = "okay";
  196. nand-ecc-strength = <4>;
  197. nand-bus-width = <8>;
  198. };
  199. &mdio0 {
  200. status = "okay";
  201. pinctrl-0 = <&mdio0_pins>;
  202. pinctrl-names = "default";
  203. phy4: ethernet-phy@4 {
  204. reg = <4>;
  205. };
  206. phy5: ethernet-phy@5 {
  207. reg = <5>;
  208. };
  209. };
  210. &gmac1 {
  211. status = "okay";
  212. mdiobus = <&mdio0>;
  213. phy-handle = <&phy5>;
  214. phy-mode = "sgmii";
  215. qcom,id = <1>;
  216. nvmem-cells = <&macaddr_eeprom_6>;
  217. nvmem-cell-names = "mac-address";
  218. };
  219. &gmac2 {
  220. status = "okay";
  221. mdiobus = <&mdio0>;
  222. phy-handle = <&phy4>;
  223. phy-mode = "sgmii";
  224. qcom,id = <2>;
  225. nvmem-cells = <&macaddr_eeprom_0>;
  226. nvmem-cell-names = "mac-address";
  227. };
  228. &pcie0 {
  229. status = "okay";
  230. };
  231. &pcie1 {
  232. status = "okay";
  233. };
  234. &tcsr {
  235. status = "okay";
  236. };
  237. &hs_phy_0 {
  238. status = "okay";
  239. };
  240. &ss_phy_0 {
  241. status = "okay";
  242. };
  243. &usb3_0 {
  244. status = "okay";
  245. };
  246. &hs_phy_1 {
  247. status = "okay";
  248. };
  249. &ss_phy_1 {
  250. status = "okay";
  251. };
  252. &usb3_1 {
  253. status = "okay";
  254. };