~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm64/rockchip/rk3568.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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         sata0: sata@fc000000 {
 12                 compatible = "rockchip,rk3568-dwc-ahci", "snps,dwc-ahci";
 13                 reg = <0 0xfc000000 0 0x1000>;
 14                 clocks = <&cru ACLK_SATA0>, <&cru CLK_SATA0_PMALIVE>,
 15                          <&cru CLK_SATA0_RXOOB>;
 16                 clock-names = "sata", "pmalive", "rxoob";
 17                 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
 18                 phys = <&combphy0 PHY_TYPE_SATA>;
 19                 phy-names = "sata-phy";
 20                 ports-implemented = <0x1>;
 21                 power-domains = <&power RK3568_PD_PIPE>;
 22                 status = "disabled";
 23         };
 24 
 25         pipe_phy_grf0: syscon@fdc70000 {
 26                 compatible = "rockchip,rk3568-pipe-phy-grf", "syscon";
 27                 reg = <0x0 0xfdc70000 0x0 0x1000>;
 28         };
 29 
 30         qos_pcie3x1: qos@fe190080 {
 31                 compatible = "rockchip,rk3568-qos", "syscon";
 32                 reg = <0x0 0xfe190080 0x0 0x20>;
 33         };
 34 
 35         qos_pcie3x2: qos@fe190100 {
 36                 compatible = "rockchip,rk3568-qos", "syscon";
 37                 reg = <0x0 0xfe190100 0x0 0x20>;
 38         };
 39 
 40         qos_sata0: qos@fe190200 {
 41                 compatible = "rockchip,rk3568-qos", "syscon";
 42                 reg = <0x0 0xfe190200 0x0 0x20>;
 43         };
 44 
 45         pcie30_phy_grf: syscon@fdcb8000 {
 46                 compatible = "rockchip,rk3568-pcie3-phy-grf", "syscon";
 47                 reg = <0x0 0xfdcb8000 0x0 0x10000>;
 48         };
 49 
 50         pcie30phy: phy@fe8c0000 {
 51                 compatible = "rockchip,rk3568-pcie3-phy";
 52                 reg = <0x0 0xfe8c0000 0x0 0x20000>;
 53                 #phy-cells = <0>;
 54                 clocks = <&pmucru CLK_PCIE30PHY_REF_M>, <&pmucru CLK_PCIE30PHY_REF_N>,
 55                          <&cru PCLK_PCIE30PHY>;
 56                 clock-names = "refclk_m", "refclk_n", "pclk";
 57                 resets = <&cru SRST_PCIE30PHY>;
 58                 reset-names = "phy";
 59                 rockchip,phy-grf = <&pcie30_phy_grf>;
 60                 status = "disabled";
 61         };
 62 
 63         pcie3x1: pcie@fe270000 {
 64                 compatible = "rockchip,rk3568-pcie";
 65                 #address-cells = <3>;
 66                 #size-cells = <2>;
 67                 bus-range = <0x0 0xf>;
 68                 clocks = <&cru ACLK_PCIE30X1_MST>, <&cru ACLK_PCIE30X1_SLV>,
 69                          <&cru ACLK_PCIE30X1_DBI>, <&cru PCLK_PCIE30X1>,
 70                          <&cru CLK_PCIE30X1_AUX_NDFT>;
 71                 clock-names = "aclk_mst", "aclk_slv",
 72                               "aclk_dbi", "pclk", "aux";
 73                 device_type = "pci";
 74                 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
 75                              <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>,
 76                              <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
 77                              <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
 78                              <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
 79                 interrupt-names = "sys", "pmc", "msg", "legacy", "err";
 80                 #interrupt-cells = <1>;
 81                 interrupt-map-mask = <0 0 0 7>;
 82                 interrupt-map = <0 0 0 1 &pcie3x1_intc 0>,
 83                                 <0 0 0 2 &pcie3x1_intc 1>,
 84                                 <0 0 0 3 &pcie3x1_intc 2>,
 85                                 <0 0 0 4 &pcie3x1_intc 3>;
 86                 linux,pci-domain = <1>;
 87                 num-ib-windows = <6>;
 88                 num-ob-windows = <2>;
 89                 max-link-speed = <3>;
 90                 msi-map = <0x0 &gic 0x1000 0x1000>;
 91                 num-lanes = <1>;
 92                 phys = <&pcie30phy>;
 93                 phy-names = "pcie-phy";
 94                 power-domains = <&power RK3568_PD_PIPE>;
 95                 reg = <0x3 0xc0400000 0x0 0x00400000>,
 96                       <0x0 0xfe270000 0x0 0x00010000>,
 97                       <0x0 0xf2000000 0x0 0x00100000>;
 98                 ranges = <0x01000000 0x0 0xf2100000 0x0 0xf2100000 0x0 0x00100000>,
 99                          <0x02000000 0x0 0xf2200000 0x0 0xf2200000 0x0 0x01e00000>,
100                          <0x03000000 0x0 0x40000000 0x3 0x40000000 0x0 0x40000000>;
101                 reg-names = "dbi", "apb", "config";
102                 resets = <&cru SRST_PCIE30X1_POWERUP>;
103                 reset-names = "pipe";
104                 /* bifurcation; lane1 when using 1+1 */
105                 status = "disabled";
106 
107                 pcie3x1_intc: legacy-interrupt-controller {
108                         interrupt-controller;
109                         #address-cells = <0>;
110                         #interrupt-cells = <1>;
111                         interrupt-parent = <&gic>;
112                         interrupts = <GIC_SPI 157 IRQ_TYPE_EDGE_RISING>;
113                 };
114         };
115 
116         pcie3x2: pcie@fe280000 {
117                 compatible = "rockchip,rk3568-pcie";
118                 #address-cells = <3>;
119                 #size-cells = <2>;
120                 bus-range = <0x0 0xf>;
121                 clocks = <&cru ACLK_PCIE30X2_MST>, <&cru ACLK_PCIE30X2_SLV>,
122                          <&cru ACLK_PCIE30X2_DBI>, <&cru PCLK_PCIE30X2>,
123                          <&cru CLK_PCIE30X2_AUX_NDFT>;
124                 clock-names = "aclk_mst", "aclk_slv",
125                               "aclk_dbi", "pclk", "aux";
126                 device_type = "pci";
127                 interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
128                              <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
129                              <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
130                              <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
131                              <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
132                 interrupt-names = "sys", "pmc", "msg", "legacy", "err";
133                 #interrupt-cells = <1>;
134                 interrupt-map-mask = <0 0 0 7>;
135                 interrupt-map = <0 0 0 1 &pcie3x2_intc 0>,
136                                 <0 0 0 2 &pcie3x2_intc 1>,
137                                 <0 0 0 3 &pcie3x2_intc 2>,
138                                 <0 0 0 4 &pcie3x2_intc 3>;
139                 linux,pci-domain = <2>;
140                 num-ib-windows = <6>;
141                 num-ob-windows = <2>;
142                 max-link-speed = <3>;
143                 msi-map = <0x0 &gic 0x2000 0x1000>;
144                 num-lanes = <2>;
145                 phys = <&pcie30phy>;
146                 phy-names = "pcie-phy";
147                 power-domains = <&power RK3568_PD_PIPE>;
148                 reg = <0x3 0xc0800000 0x0 0x00400000>,
149                       <0x0 0xfe280000 0x0 0x00010000>,
150                       <0x0 0xf0000000 0x0 0x00100000>;
151                 ranges = <0x01000000 0x0 0xf0100000 0x0 0xf0100000 0x0 0x00100000>,
152                          <0x02000000 0x0 0xf0200000 0x0 0xf0200000 0x0 0x01e00000>,
153                          <0x03000000 0x0 0x40000000 0x3 0x80000000 0x0 0x40000000>;
154                 reg-names = "dbi", "apb", "config";
155                 resets = <&cru SRST_PCIE30X2_POWERUP>;
156                 reset-names = "pipe";
157                 /* bifurcation; lane0 when using 1+1 */
158                 status = "disabled";
159 
160                 pcie3x2_intc: legacy-interrupt-controller {
161                         interrupt-controller;
162                         #address-cells = <0>;
163                         #interrupt-cells = <1>;
164                         interrupt-parent = <&gic>;
165                         interrupts = <GIC_SPI 162 IRQ_TYPE_EDGE_RISING>;
166                 };
167         };
168 
169         gmac0: ethernet@fe2a0000 {
170                 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a";
171                 reg = <0x0 0xfe2a0000 0x0 0x10000>;
172                 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
173                              <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
174                 interrupt-names = "macirq", "eth_wake_irq";
175                 clocks = <&cru SCLK_GMAC0>, <&cru SCLK_GMAC0_RX_TX>,
176                          <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_MAC0_REFOUT>,
177                          <&cru ACLK_GMAC0>, <&cru PCLK_GMAC0>,
178                          <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_GMAC0_PTP_REF>;
179                 clock-names = "stmmaceth", "mac_clk_rx",
180                               "mac_clk_tx", "clk_mac_refout",
181                               "aclk_mac", "pclk_mac",
182                               "clk_mac_speed", "ptp_ref";
183                 resets = <&cru SRST_A_GMAC0>;
184                 reset-names = "stmmaceth";
185                 rockchip,grf = <&grf>;
186                 snps,axi-config = <&gmac0_stmmac_axi_setup>;
187                 snps,mixed-burst;
188                 snps,mtl-rx-config = <&gmac0_mtl_rx_setup>;
189                 snps,mtl-tx-config = <&gmac0_mtl_tx_setup>;
190                 snps,tso;
191                 status = "disabled";
192 
193                 mdio0: mdio {
194                         compatible = "snps,dwmac-mdio";
195                         #address-cells = <0x1>;
196                         #size-cells = <0x0>;
197                 };
198 
199                 gmac0_stmmac_axi_setup: stmmac-axi-config {
200                         snps,blen = <0 0 0 0 16 8 4>;
201                         snps,rd_osr_lmt = <8>;
202                         snps,wr_osr_lmt = <4>;
203                 };
204 
205                 gmac0_mtl_rx_setup: rx-queues-config {
206                         snps,rx-queues-to-use = <1>;
207                         queue0 {};
208                 };
209 
210                 gmac0_mtl_tx_setup: tx-queues-config {
211                         snps,tx-queues-to-use = <1>;
212                         queue0 {};
213                 };
214         };
215 
216         can0: can@fe570000 {
217                 compatible = "rockchip,rk3568v2-canfd";
218                 reg = <0x0 0xfe570000 0x0 0x1000>;
219                 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
220                 clocks = <&cru CLK_CAN0>, <&cru PCLK_CAN0>;
221                 clock-names = "baud", "pclk";
222                 resets = <&cru SRST_CAN0>, <&cru SRST_P_CAN0>;
223                 reset-names = "core", "apb";
224                 pinctrl-names = "default";
225                 pinctrl-0 = <&can0m0_pins>;
226                 status = "disabled";
227         };
228 
229         can1: can@fe580000 {
230                 compatible = "rockchip,rk3568v2-canfd";
231                 reg = <0x0 0xfe580000 0x0 0x1000>;
232                 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
233                 clocks = <&cru CLK_CAN1>, <&cru PCLK_CAN1>;
234                 clock-names = "baud", "pclk";
235                 resets = <&cru SRST_CAN1>, <&cru SRST_P_CAN1>;
236                 reset-names = "core", "apb";
237                 pinctrl-names = "default";
238                 pinctrl-0 = <&can1m0_pins>;
239                 status = "disabled";
240         };
241 
242         can2: can@fe590000 {
243                 compatible = "rockchip,rk3568v2-canfd";
244                 reg = <0x0 0xfe590000 0x0 0x1000>;
245                 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
246                 clocks = <&cru CLK_CAN2>, <&cru PCLK_CAN2>;
247                 clock-names = "baud", "pclk";
248                 resets = <&cru SRST_CAN2>, <&cru SRST_P_CAN2>;
249                 reset-names = "core", "apb";
250                 pinctrl-names = "default";
251                 pinctrl-0 = <&can2m0_pins>;
252                 status = "disabled";
253         };
254 
255         combphy0: phy@fe820000 {
256                 compatible = "rockchip,rk3568-naneng-combphy";
257                 reg = <0x0 0xfe820000 0x0 0x100>;
258                 clocks = <&pmucru CLK_PCIEPHY0_REF>,
259                          <&cru PCLK_PIPEPHY0>,
260                          <&cru PCLK_PIPE>;
261                 clock-names = "ref", "apb", "pipe";
262                 assigned-clocks = <&pmucru CLK_PCIEPHY0_REF>;
263                 assigned-clock-rates = <100000000>;
264                 resets = <&cru SRST_PIPEPHY0>;
265                 rockchip,pipe-grf = <&pipegrf>;
266                 rockchip,pipe-phy-grf = <&pipe_phy_grf0>;
267                 #phy-cells = <1>;
268                 status = "disabled";
269         };
270 };
271 
272 &cpu0_opp_table {
273         opp-1992000000 {
274                 opp-hz = /bits/ 64 <1992000000>;
275                 opp-microvolt = <1150000 1150000 1150000>;
276         };
277 };
278 
279 &pipegrf {
280         compatible = "rockchip,rk3568-pipe-grf", "syscon";
281 };
282 
283 &power {
284         power-domain@RK3568_PD_PIPE {
285                 reg = <RK3568_PD_PIPE>;
286                 clocks = <&cru PCLK_PIPE>;
287                 pm_qos = <&qos_pcie2x1>,
288                          <&qos_pcie3x1>,
289                          <&qos_pcie3x2>,
290                          <&qos_sata0>,
291                          <&qos_sata1>,
292                          <&qos_sata2>,
293                          <&qos_usb3_0>,
294                          <&qos_usb3_1>;
295                 #power-domain-cells = <0>;
296         };
297 };
298 
299 &rng {
300         status = "okay";
301 };
302 
303 &usb_host0_xhci {
304         phys = <&usb2phy0_otg>, <&combphy0 PHY_TYPE_USB3>;
305         phy-names = "usb2-phy", "usb3-phy";
306 };
307 
308 &vop {
309         compatible = "rockchip,rk3568-vop";
310 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php