qcom-ipq8064-ap161.dts 3.3 KB

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