Merge tag 'x86_build_for_v5.18_rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / rockchip / rk3568.dtsi
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
4  */
5
6 #include "rk356x.dtsi"
7
8 / {
9         compatible = "rockchip,rk3568";
10
11         qos_pcie3x1: qos@fe190080 {
12                 compatible = "rockchip,rk3568-qos", "syscon";
13                 reg = <0x0 0xfe190080 0x0 0x20>;
14         };
15
16         qos_pcie3x2: qos@fe190100 {
17                 compatible = "rockchip,rk3568-qos", "syscon";
18                 reg = <0x0 0xfe190100 0x0 0x20>;
19         };
20
21         qos_sata0: qos@fe190200 {
22                 compatible = "rockchip,rk3568-qos", "syscon";
23                 reg = <0x0 0xfe190200 0x0 0x20>;
24         };
25
26         gmac0: ethernet@fe2a0000 {
27                 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a";
28                 reg = <0x0 0xfe2a0000 0x0 0x10000>;
29                 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
30                              <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
31                 interrupt-names = "macirq", "eth_wake_irq";
32                 clocks = <&cru SCLK_GMAC0>, <&cru SCLK_GMAC0_RX_TX>,
33                          <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_MAC0_REFOUT>,
34                          <&cru ACLK_GMAC0>, <&cru PCLK_GMAC0>,
35                          <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_GMAC0_PTP_REF>;
36                 clock-names = "stmmaceth", "mac_clk_rx",
37                               "mac_clk_tx", "clk_mac_refout",
38                               "aclk_mac", "pclk_mac",
39                               "clk_mac_speed", "ptp_ref";
40                 resets = <&cru SRST_A_GMAC0>;
41                 reset-names = "stmmaceth";
42                 rockchip,grf = <&grf>;
43                 snps,axi-config = <&gmac0_stmmac_axi_setup>;
44                 snps,mixed-burst;
45                 snps,mtl-rx-config = <&gmac0_mtl_rx_setup>;
46                 snps,mtl-tx-config = <&gmac0_mtl_tx_setup>;
47                 snps,tso;
48                 status = "disabled";
49
50                 mdio0: mdio {
51                         compatible = "snps,dwmac-mdio";
52                         #address-cells = <0x1>;
53                         #size-cells = <0x0>;
54                 };
55
56                 gmac0_stmmac_axi_setup: stmmac-axi-config {
57                         snps,blen = <0 0 0 0 16 8 4>;
58                         snps,rd_osr_lmt = <8>;
59                         snps,wr_osr_lmt = <4>;
60                 };
61
62                 gmac0_mtl_rx_setup: rx-queues-config {
63                         snps,rx-queues-to-use = <1>;
64                         queue0 {};
65                 };
66
67                 gmac0_mtl_tx_setup: tx-queues-config {
68                         snps,tx-queues-to-use = <1>;
69                         queue0 {};
70                 };
71         };
72 };
73
74 &cpu0_opp_table {
75         opp-1992000000 {
76                 opp-hz = /bits/ 64 <1992000000>;
77                 opp-microvolt = <1150000 1150000 1150000>;
78         };
79 };
80
81 &power {
82         power-domain@RK3568_PD_PIPE {
83                 reg = <RK3568_PD_PIPE>;
84                 clocks = <&cru PCLK_PIPE>;
85                 pm_qos = <&qos_pcie2x1>,
86                          <&qos_pcie3x1>,
87                          <&qos_pcie3x2>,
88                          <&qos_sata0>,
89                          <&qos_sata1>,
90                          <&qos_sata2>,
91                          <&qos_usb3_0>,
92                          <&qos_usb3_1>;
93                 #power-domain-cells = <0>;
94         };
95 };