qcom-ipq8064-db149.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. #include "qcom-ipq8064-v1.0.dtsi"
  2. / {
  3. model = "Qualcomm IPQ8064/DB149";
  4. compatible = "qcom,ipq8064-db149", "qcom,ipq8064";
  5. aliases {
  6. serial0 = &gsbi2_serial;
  7. };
  8. reserved-memory {
  9. #address-cells = <1>;
  10. #size-cells = <1>;
  11. ranges;
  12. rsvd@41200000 {
  13. reg = <0x41200000 0x300000>;
  14. no-map;
  15. };
  16. };
  17. };
  18. &qcom_pinmux {
  19. rgmii0_pins: rgmii0_pins {
  20. mux {
  21. pins = "gpio2", "gpio66";
  22. drive-strength = <8>;
  23. bias-disable;
  24. };
  25. };
  26. };
  27. &gsbi2 {
  28. qcom,mode = <GSBI_PROT_I2C_UART>;
  29. status = "okay";
  30. gsbi2_serial: serial@12490000 {
  31. status = "okay";
  32. };
  33. };
  34. &gsbi4 {
  35. status = "disabled";
  36. };
  37. &gsbi4_serial {
  38. status = "disabled";
  39. };
  40. &flash {
  41. m25p,fast-read;
  42. partition@0 {
  43. label = "lowlevel_init";
  44. reg = <0x0 0x1b0000>;
  45. };
  46. partition@1 {
  47. label = "u-boot";
  48. reg = <0x1b0000 0x80000>;
  49. };
  50. partition@2 {
  51. label = "u-boot-env";
  52. reg = <0x230000 0x40000>;
  53. };
  54. partition@3 {
  55. label = "caldata";
  56. reg = <0x270000 0x40000>;
  57. };
  58. partition@4 {
  59. label = "firmware";
  60. reg = <0x2b0000 0x1d50000>;
  61. };
  62. };
  63. &hs_phy_0 {
  64. status = "okay";
  65. };
  66. &ss_phy_0 {
  67. status = "okay";
  68. };
  69. &usb3_0 {
  70. status = "okay";
  71. };
  72. &hs_phy_1 {
  73. status = "okay";
  74. };
  75. &ss_phy_1 {
  76. status = "okay";
  77. };
  78. &usb3_1 {
  79. status = "okay";
  80. };
  81. &pcie0 {
  82. status = "okay";
  83. };
  84. &pcie1 {
  85. status = "okay";
  86. };
  87. &pcie2 {
  88. status = "okay";
  89. };
  90. &mdio0 {
  91. status = "okay";
  92. pinctrl-0 = <&mdio0_pins>;
  93. pinctrl-names = "default";
  94. switch@10 {
  95. compatible = "qca,qca8337";
  96. #address-cells = <1>;
  97. #size-cells = <0>;
  98. reg = <0x10>;
  99. ports {
  100. #address-cells = <1>;
  101. #size-cells = <0>;
  102. port@0 {
  103. reg = <0>;
  104. label = "cpu";
  105. ethernet = <&gmac0>;
  106. phy-mode = "rgmii";
  107. tx-internal-delay-ps = <1000>;
  108. rx-internal-delay-ps = <1000>;
  109. fixed-link {
  110. speed = <1000>;
  111. full-duplex;
  112. };
  113. };
  114. port@1 {
  115. reg = <1>;
  116. label = "lan4";
  117. phy-mode = "internal";
  118. phy-handle = <&phy_port1>;
  119. };
  120. port@2 {
  121. reg = <2>;
  122. label = "lan3";
  123. phy-mode = "internal";
  124. phy-handle = <&phy_port2>;
  125. };
  126. port@3 {
  127. reg = <3>;
  128. label = "lan2";
  129. phy-mode = "internal";
  130. phy-handle = <&phy_port3>;
  131. };
  132. port@4 {
  133. reg = <4>;
  134. label = "lan1";
  135. phy-mode = "internal";
  136. phy-handle = <&phy_port4>;
  137. };
  138. port@5 {
  139. reg = <5>;
  140. label = "wan";
  141. phy-mode = "internal";
  142. phy-handle = <&phy_port5>;
  143. };
  144. /*
  145. port@6 {
  146. reg = <0>;
  147. label = "cpu";
  148. ethernet = <&gmac2>;
  149. phy-mode = "rgmii";
  150. fixed-link {
  151. speed = <1000>;
  152. full-duplex;
  153. pause;
  154. asym-pause;
  155. };
  156. };
  157. */
  158. };
  159. mdio {
  160. #address-cells = <1>;
  161. #size-cells = <0>;
  162. phy_port1: phy@0 {
  163. reg = <0>;
  164. };
  165. phy_port2: phy@1 {
  166. reg = <1>;
  167. };
  168. phy_port3: phy@2 {
  169. reg = <2>;
  170. };
  171. phy_port4: phy@3 {
  172. reg = <3>;
  173. };
  174. phy_port5: phy@4 {
  175. reg = <4>;
  176. };
  177. };
  178. };
  179. phy6: ethernet-phy@6 {
  180. reg = <6>;
  181. };
  182. phy7: ethernet-phy@7 {
  183. reg = <7>;
  184. };
  185. };
  186. &gmac0 {
  187. status = "okay";
  188. phy-mode = "rgmii";
  189. qcom,id = <0>;
  190. pinctrl-0 = <&rgmii0_pins>;
  191. pinctrl-names = "default";
  192. };
  193. &gmac1 {
  194. status = "okay";
  195. phy-mode = "sgmii";
  196. qcom,id = <1>;
  197. fixed-link {
  198. speed = <1000>;
  199. full-duplex;
  200. };
  201. };
  202. &gmac2 {
  203. status = "okay";
  204. phy-mode = "sgmii";
  205. qcom,id = <2>;
  206. phy-handle = <&phy6>;
  207. };
  208. &gmac3 {
  209. status = "okay";
  210. phy-mode = "sgmii";
  211. qcom,id = <3>;
  212. phy-handle = <&phy7>;
  213. };