ipq6000-glinet.dtsi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "ipq6018-512m.dtsi"
  3. #include "ipq6018-ess.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/leds/common.h>
  7. / {
  8. aliases {
  9. led-boot = &led_run;
  10. led-failsafe = &led_run;
  11. led-running = &led_run;
  12. led-upgrade = &led_run;
  13. serial0 = &blsp1_uart3;
  14. serial1 = &blsp1_uart4;
  15. serial2 = &blsp1_uart5;
  16. };
  17. chosen {
  18. stdout-path = "serial0:115200n8";
  19. bootargs-append = " root=/dev/ubiblock0_1";
  20. };
  21. keys {
  22. compatible = "gpio-keys";
  23. switch {
  24. label = "switch";
  25. linux,code = <BTN_0>;
  26. linux,input-type = <EV_SW>;
  27. gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
  28. };
  29. reset {
  30. label = "reset";
  31. linux,code = <KEY_RESTART>;
  32. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  33. };
  34. };
  35. leds {
  36. compatible = "gpio-leds";
  37. led_run: run {
  38. label = "blue:run";
  39. color = <LED_COLOR_ID_BLUE>;
  40. gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
  41. };
  42. system {
  43. label = "white:system";
  44. color = <LED_COLOR_ID_WHITE>;
  45. gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
  46. };
  47. };
  48. reg_usb_vbus: regulator-usb-vbus {
  49. compatible = "regulator-fixed";
  50. regulator-name = "usb_vbus";
  51. regulator-min-microvolt = <5000000>;
  52. regulator-max-microvolt = <5000000>;
  53. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  54. enable-active-high;
  55. regulator-boot-on;
  56. };
  57. };
  58. &tlmm {
  59. mdio_pins: mdio-pins {
  60. mdc {
  61. pins = "gpio64";
  62. function = "mdc";
  63. drive-strength = <8>;
  64. bias-pull-up;
  65. };
  66. mdio {
  67. pins = "gpio65";
  68. function = "mdio";
  69. drive-strength = <8>;
  70. bias-pull-up;
  71. };
  72. };
  73. tluart_pins: tluart-pins {
  74. mux {
  75. pins = "gpio75", "gpio76";
  76. function = "blsp3_uart";
  77. drive-strength = <8>;
  78. bias-disable;
  79. };
  80. };
  81. hsuart_pins: hsuart-pins {
  82. mux {
  83. pins = "gpio57", "gpio58";
  84. function = "blsp4_uart";
  85. drive-strength = <8>;
  86. bias-disable;
  87. };
  88. };
  89. };
  90. &blsp1_uart3 {
  91. pinctrl-0 = <&serial_3_pins>;
  92. pinctrl-names = "default";
  93. status = "okay";
  94. };
  95. &blsp1_uart4 {
  96. pinctrl-0 = <&tluart_pins>;
  97. pinctrl-names = "default";
  98. status = "okay";
  99. };
  100. &blsp1_uart5 {
  101. pinctrl-0 = <&hsuart_pins>;
  102. pinctrl-names = "default";
  103. status = "okay";
  104. };
  105. &qpic_bam {
  106. status = "okay";
  107. };
  108. &qpic_nand {
  109. status = "okay";
  110. nand@0 {
  111. reg = <0>;
  112. nand-ecc-strength = <4>;
  113. nand-ecc-step-size = <512>;
  114. nand-bus-width = <8>;
  115. #address-cells = <1>;
  116. #size-cells = <1>;
  117. partitions: partitions {
  118. compatible = "fixed-partitions";
  119. #address-cells = <1>;
  120. #size-cells = <1>;
  121. partition@0 {
  122. label = "0:sbl1";
  123. reg = <0x0000000 0x0180000>;
  124. read-only;
  125. };
  126. partition@180000 {
  127. label = "0:mibib";
  128. reg = <0x0180000 0x0100000>;
  129. read-only;
  130. };
  131. partition@280000 {
  132. label = "0:qsee";
  133. reg = <0x0280000 0x0380000>;
  134. read-only;
  135. };
  136. partition@600000 {
  137. label = "0:devcfg";
  138. reg = <0x0600000 0x0080000>;
  139. read-only;
  140. };
  141. partition@680000 {
  142. label = "0:rpm";
  143. reg = <0x0680000 0x0080000>;
  144. read-only;
  145. };
  146. partition@700000 {
  147. label = "0:cdt";
  148. reg = <0x0700000 0x0080000>;
  149. read-only;
  150. };
  151. partition@780000 {
  152. label = "0:appsblenv";
  153. reg = <0x0780000 0x0080000>;
  154. };
  155. partition@800000 {
  156. label = "0:appsbl";
  157. reg = <0x0800000 0x0180000>;
  158. read-only;
  159. };
  160. partition@980000 {
  161. label = "0:art";
  162. reg = <0x0980000 0x0080000>;
  163. read-only;
  164. nvmem-layout {
  165. compatible = "fixed-layout";
  166. #address-cells = <1>;
  167. #size-cells = <1>;
  168. macaddr_wan: macaddr@0 {
  169. reg = <0x0 0x6>;
  170. };
  171. macaddr_lan: macaddr@6 {
  172. reg = <0x6 0x6>;
  173. };
  174. };
  175. };
  176. /* rootfs defined in variant dts */
  177. partition@7d00000 {
  178. label = "0:ethphyfw";
  179. reg = <0x7d00000 0x0080000>;
  180. read-only;
  181. };
  182. };
  183. };
  184. };
  185. &qusb_phy_0 {
  186. vdd-supply = <&reg_usb_vbus>;
  187. status = "okay";
  188. };
  189. &ssphy_0 {
  190. status = "okay";
  191. };
  192. &usb3 {
  193. status = "okay";
  194. };
  195. &rpm {
  196. status = "disabled";
  197. };
  198. &mdio {
  199. status = "okay";
  200. pinctrl-0 = <&mdio_pins>;
  201. pinctrl-names = "default";
  202. reset-gpios = <&tlmm 74 GPIO_ACTIVE_LOW>;
  203. ethernet-phy-package@0 {
  204. compatible = "qcom,qca8075-package";
  205. #address-cells = <1>;
  206. #size-cells = <0>;
  207. reg = <0>;
  208. qca8075_0: ethernet-phy@0 {
  209. compatible = "ethernet-phy-ieee802.3-c22";
  210. reg = <0>;
  211. };
  212. qca8075_1: ethernet-phy@1 {
  213. compatible = "ethernet-phy-ieee802.3-c22";
  214. reg = <1>;
  215. };
  216. qca8075_2: ethernet-phy@2 {
  217. compatible = "ethernet-phy-ieee802.3-c22";
  218. reg = <2>;
  219. };
  220. qca8075_3: ethernet-phy@3 {
  221. compatible = "ethernet-phy-ieee802.3-c22";
  222. reg = <3>;
  223. };
  224. qca8075_4: ethernet-phy@4 {
  225. compatible = "ethernet-phy-ieee802.3-c22";
  226. reg = <4>;
  227. };
  228. };
  229. };
  230. &switch {
  231. status = "okay";
  232. switch_mac_mode = <MAC_MODE_PSGMII>;
  233. qcom,port_phyinfo {
  234. port@1 {
  235. port_id = <1>;
  236. phy_address = <0>;
  237. };
  238. port@2 {
  239. port_id = <2>;
  240. phy_address = <1>;
  241. };
  242. port@3 {
  243. port_id = <3>;
  244. phy_address = <2>;
  245. };
  246. port@4 {
  247. port_id = <4>;
  248. phy_address = <3>;
  249. };
  250. port@5 {
  251. port_id = <5>;
  252. phy_address = <4>;
  253. };
  254. };
  255. };
  256. &edma {
  257. status = "okay";
  258. };
  259. &wifi {
  260. status = "okay";
  261. qcom,ath11k-fw-memory-mode = <1>;
  262. };