rk3568.dtsi 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
  4. */
  5. #include "rk356x.dtsi"
  6. / {
  7. compatible = "rockchip,rk3568";
  8. sata0: sata@fc000000 {
  9. compatible = "rockchip,rk3568-dwc-ahci", "snps,dwc-ahci";
  10. reg = <0 0xfc000000 0 0x1000>;
  11. clocks = <&cru ACLK_SATA0>, <&cru CLK_SATA0_PMALIVE>,
  12. <&cru CLK_SATA0_RXOOB>;
  13. clock-names = "sata", "pmalive", "rxoob";
  14. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
  15. phys = <&combphy0 PHY_TYPE_SATA>;
  16. phy-names = "sata-phy";
  17. ports-implemented = <0x1>;
  18. power-domains = <&power RK3568_PD_PIPE>;
  19. status = "disabled";
  20. };
  21. pipe_phy_grf0: syscon@fdc70000 {
  22. compatible = "rockchip,rk3568-pipe-phy-grf", "syscon";
  23. reg = <0x0 0xfdc70000 0x0 0x1000>;
  24. };
  25. qos_pcie3x1: qos@fe190080 {
  26. compatible = "rockchip,rk3568-qos", "syscon";
  27. reg = <0x0 0xfe190080 0x0 0x20>;
  28. };
  29. qos_pcie3x2: qos@fe190100 {
  30. compatible = "rockchip,rk3568-qos", "syscon";
  31. reg = <0x0 0xfe190100 0x0 0x20>;
  32. };
  33. qos_sata0: qos@fe190200 {
  34. compatible = "rockchip,rk3568-qos", "syscon";
  35. reg = <0x0 0xfe190200 0x0 0x20>;
  36. };
  37. pcie30_phy_grf: syscon@fdcb8000 {
  38. compatible = "rockchip,rk3568-pcie3-phy-grf", "syscon";
  39. reg = <0x0 0xfdcb8000 0x0 0x10000>;
  40. };
  41. pcie30phy: phy@fe8c0000 {
  42. compatible = "rockchip,rk3568-pcie3-phy";
  43. reg = <0x0 0xfe8c0000 0x0 0x20000>;
  44. #phy-cells = <0>;
  45. clocks = <&pmucru CLK_PCIE30PHY_REF_M>, <&pmucru CLK_PCIE30PHY_REF_N>,
  46. <&cru PCLK_PCIE30PHY>;
  47. clock-names = "refclk_m", "refclk_n", "pclk";
  48. resets = <&cru SRST_PCIE30PHY>;
  49. reset-names = "phy";
  50. rockchip,phy-grf = <&pcie30_phy_grf>;
  51. status = "disabled";
  52. };
  53. pcie3x1: pcie@fe270000 {
  54. compatible = "rockchip,rk3568-pcie";
  55. #address-cells = <3>;
  56. #size-cells = <2>;
  57. bus-range = <0x0 0xf>;
  58. clocks = <&cru ACLK_PCIE30X1_MST>, <&cru ACLK_PCIE30X1_SLV>,
  59. <&cru ACLK_PCIE30X1_DBI>, <&cru PCLK_PCIE30X1>,
  60. <&cru CLK_PCIE30X1_AUX_NDFT>;
  61. clock-names = "aclk_mst", "aclk_slv",
  62. "aclk_dbi", "pclk", "aux";
  63. device_type = "pci";
  64. interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
  65. <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>,
  66. <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
  67. <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
  68. <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
  69. interrupt-names = "sys", "pmc", "msg", "legacy", "err";
  70. #interrupt-cells = <1>;
  71. interrupt-map-mask = <0 0 0 7>;
  72. interrupt-map = <0 0 0 1 &pcie3x1_intc 0>,
  73. <0 0 0 2 &pcie3x1_intc 1>,
  74. <0 0 0 3 &pcie3x1_intc 2>,
  75. <0 0 0 4 &pcie3x1_intc 3>;
  76. linux,pci-domain = <1>;
  77. num-ib-windows = <6>;
  78. num-ob-windows = <2>;
  79. max-link-speed = <3>;
  80. msi-map = <0x0 &gic 0x1000 0x1000>;
  81. num-lanes = <1>;
  82. phys = <&pcie30phy>;
  83. phy-names = "pcie-phy";
  84. power-domains = <&power RK3568_PD_PIPE>;
  85. reg = <0x3 0xc0400000 0x0 0x00400000>,
  86. <0x0 0xfe270000 0x0 0x00010000>,
  87. <0x0 0xf2000000 0x0 0x00100000>;
  88. ranges = <0x01000000 0x0 0xf2100000 0x0 0xf2100000 0x0 0x00100000>,
  89. <0x02000000 0x0 0xf2200000 0x0 0xf2200000 0x0 0x01e00000>,
  90. <0x03000000 0x0 0x40000000 0x3 0x40000000 0x0 0x40000000>;
  91. reg-names = "dbi", "apb", "config";
  92. resets = <&cru SRST_PCIE30X1_POWERUP>;
  93. reset-names = "pipe";
  94. /* bifurcation; lane1 when using 1+1 */
  95. status = "disabled";
  96. pcie3x1_intc: legacy-interrupt-controller {
  97. interrupt-controller;
  98. #address-cells = <0>;
  99. #interrupt-cells = <1>;
  100. interrupt-parent = <&gic>;
  101. interrupts = <GIC_SPI 157 IRQ_TYPE_EDGE_RISING>;
  102. };
  103. };
  104. pcie3x2: pcie@fe280000 {
  105. compatible = "rockchip,rk3568-pcie";
  106. #address-cells = <3>;
  107. #size-cells = <2>;
  108. bus-range = <0x0 0xf>;
  109. clocks = <&cru ACLK_PCIE30X2_MST>, <&cru ACLK_PCIE30X2_SLV>,
  110. <&cru ACLK_PCIE30X2_DBI>, <&cru PCLK_PCIE30X2>,
  111. <&cru CLK_PCIE30X2_AUX_NDFT>;
  112. clock-names = "aclk_mst", "aclk_slv",
  113. "aclk_dbi", "pclk", "aux";
  114. device_type = "pci";
  115. interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
  116. <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
  117. <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
  118. <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
  119. <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
  120. interrupt-names = "sys", "pmc", "msg", "legacy", "err";
  121. #interrupt-cells = <1>;
  122. interrupt-map-mask = <0 0 0 7>;
  123. interrupt-map = <0 0 0 1 &pcie3x2_intc 0>,
  124. <0 0 0 2 &pcie3x2_intc 1>,
  125. <0 0 0 3 &pcie3x2_intc 2>,
  126. <0 0 0 4 &pcie3x2_intc 3>;
  127. linux,pci-domain = <2>;
  128. num-ib-windows = <6>;
  129. num-ob-windows = <2>;
  130. max-link-speed = <3>;
  131. msi-map = <0x0 &gic 0x2000 0x1000>;
  132. num-lanes = <2>;
  133. phys = <&pcie30phy>;
  134. phy-names = "pcie-phy";
  135. power-domains = <&power RK3568_PD_PIPE>;
  136. reg = <0x3 0xc0800000 0x0 0x00400000>,
  137. <0x0 0xfe280000 0x0 0x00010000>,
  138. <0x0 0xf0000000 0x0 0x00100000>;
  139. ranges = <0x01000000 0x0 0xf0100000 0x0 0xf0100000 0x0 0x00100000>,
  140. <0x02000000 0x0 0xf0200000 0x0 0xf0200000 0x0 0x01e00000>,
  141. <0x03000000 0x0 0x40000000 0x3 0x80000000 0x0 0x40000000>;
  142. reg-names = "dbi", "apb", "config";
  143. resets = <&cru SRST_PCIE30X2_POWERUP>;
  144. reset-names = "pipe";
  145. /* bifurcation; lane0 when using 1+1 */
  146. status = "disabled";
  147. pcie3x2_intc: legacy-interrupt-controller {
  148. interrupt-controller;
  149. #address-cells = <0>;
  150. #interrupt-cells = <1>;
  151. interrupt-parent = <&gic>;
  152. interrupts = <GIC_SPI 162 IRQ_TYPE_EDGE_RISING>;
  153. };
  154. };
  155. gmac0: ethernet@fe2a0000 {
  156. compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a";
  157. reg = <0x0 0xfe2a0000 0x0 0x10000>;
  158. interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
  159. <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  160. interrupt-names = "macirq", "eth_wake_irq";
  161. clocks = <&cru SCLK_GMAC0>, <&cru SCLK_GMAC0_RX_TX>,
  162. <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_MAC0_REFOUT>,
  163. <&cru ACLK_GMAC0>, <&cru PCLK_GMAC0>,
  164. <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_GMAC0_PTP_REF>;
  165. clock-names = "stmmaceth", "mac_clk_rx",
  166. "mac_clk_tx", "clk_mac_refout",
  167. "aclk_mac", "pclk_mac",
  168. "clk_mac_speed", "ptp_ref";
  169. resets = <&cru SRST_A_GMAC0>;
  170. reset-names = "stmmaceth";
  171. rockchip,grf = <&grf>;
  172. snps,axi-config = <&gmac0_stmmac_axi_setup>;
  173. snps,mixed-burst;
  174. snps,mtl-rx-config = <&gmac0_mtl_rx_setup>;
  175. snps,mtl-tx-config = <&gmac0_mtl_tx_setup>;
  176. snps,tso;
  177. status = "disabled";
  178. mdio0: mdio {
  179. compatible = "snps,dwmac-mdio";
  180. #address-cells = <0x1>;
  181. #size-cells = <0x0>;
  182. };
  183. gmac0_stmmac_axi_setup: stmmac-axi-config {
  184. snps,blen = <0 0 0 0 16 8 4>;
  185. snps,rd_osr_lmt = <8>;
  186. snps,wr_osr_lmt = <4>;
  187. };
  188. gmac0_mtl_rx_setup: rx-queues-config {
  189. snps,rx-queues-to-use = <1>;
  190. queue0 {};
  191. };
  192. gmac0_mtl_tx_setup: tx-queues-config {
  193. snps,tx-queues-to-use = <1>;
  194. queue0 {};
  195. };
  196. };
  197. combphy0: phy@fe820000 {
  198. compatible = "rockchip,rk3568-naneng-combphy";
  199. reg = <0x0 0xfe820000 0x0 0x100>;
  200. clocks = <&pmucru CLK_PCIEPHY0_REF>,
  201. <&cru PCLK_PIPEPHY0>,
  202. <&cru PCLK_PIPE>;
  203. clock-names = "ref", "apb", "pipe";
  204. assigned-clocks = <&pmucru CLK_PCIEPHY0_REF>;
  205. assigned-clock-rates = <100000000>;
  206. resets = <&cru SRST_PIPEPHY0>;
  207. rockchip,pipe-grf = <&pipegrf>;
  208. rockchip,pipe-phy-grf = <&pipe_phy_grf0>;
  209. #phy-cells = <1>;
  210. status = "disabled";
  211. };
  212. };
  213. &cpu0_opp_table {
  214. opp-1992000000 {
  215. opp-hz = /bits/ 64 <1992000000>;
  216. opp-microvolt = <1150000 1150000 1150000>;
  217. };
  218. };
  219. &pipegrf {
  220. compatible = "rockchip,rk3568-pipe-grf", "syscon";
  221. };
  222. &power {
  223. power-domain@RK3568_PD_PIPE {
  224. reg = <RK3568_PD_PIPE>;
  225. clocks = <&cru PCLK_PIPE>;
  226. pm_qos = <&qos_pcie2x1>,
  227. <&qos_pcie3x1>,
  228. <&qos_pcie3x2>,
  229. <&qos_sata0>,
  230. <&qos_sata1>,
  231. <&qos_sata2>,
  232. <&qos_usb3_0>,
  233. <&qos_usb3_1>;
  234. #power-domain-cells = <0>;
  235. };
  236. };
  237. &usb_host0_xhci {
  238. phys = <&usb2phy0_otg>, <&combphy0 PHY_TYPE_USB3>;
  239. phy-names = "usb2-phy", "usb3-phy";
  240. };
  241. &vop {
  242. compatible = "rockchip,rk3568-vop";
  243. };