blob: 0d0cd2273cd423efd5224c236053874e0074a3c2 [file] [log] [blame]
Hou Zhiqiang1a2961d2019-08-20 09:35:29 +00001// SPDX-License-Identifier: GPL-2.0+ OR X11
2/*
3 * P2020 Silicon/SoC Device Tree Source (post include)
4 *
5 * Copyright 2013 Freescale Semiconductor Inc.
6 * Copyright 2019 NXP
7 */
8
9&soc {
10 #address-cells = <1>;
11 #size-cells = <1>;
12 device_type = "soc";
13 compatible = "fsl,p2020-immr", "simple-bus";
14 bus-frequency = <0x0>;
15
Ran Wangb8355c52019-12-12 17:30:55 +080016 usb@22000 {
Pali Rohárc3f49a22022-04-08 14:39:56 +020017 compatible = "fsl-usb2-dr-v1.6", "fsl-usb2-dr";
Ran Wangb8355c52019-12-12 17:30:55 +080018 reg = <0x22000 0x1000>;
Pali Rohárc3f49a22022-04-08 14:39:56 +020019 #address-cells = <1>;
20 #size-cells = <0>;
21 interrupts = <28 0x2 0 0>;
Ran Wangb8355c52019-12-12 17:30:55 +080022 phy_type = "ulpi";
23 };
24
Hou Zhiqiang1a2961d2019-08-20 09:35:29 +000025 mpic: pic@40000 {
26 interrupt-controller;
27 #address-cells = <0>;
28 #interrupt-cells = <4>;
29 reg = <0x40000 0x40000>;
30 compatible = "fsl,mpic";
31 device_type = "open-pic";
32 big-endian;
33 single-cpu-affinity;
34 last-interrupt-source = <255>;
35 };
Yinbo Zhue4e1c2a2019-10-15 17:20:41 +080036
Pali Rohárbf39a8f2022-04-05 11:23:25 +020037 esdhc: sdhc@2e000 {
Pali Rohár054b4dd2022-04-08 14:39:53 +020038 compatible = "fsl,p2020-esdhc", "fsl,esdhc";
Yinbo Zhue4e1c2a2019-10-15 17:20:41 +080039 reg = <0x2e000 0x1000>;
Pali Rohár054b4dd2022-04-08 14:39:53 +020040 interrupts = <72 0x2 0 0>;
Yinbo Zhue4e1c2a2019-10-15 17:20:41 +080041 /* Filled in by U-Boot */
42 clock-frequency = <0>;
43 };
Biwen Lifc60ffd2020-05-01 20:04:03 +080044
Xiaowei Baobe395012020-06-04 23:16:37 +080045 espi0: spi@7000 {
46 compatible = "fsl,mpc8536-espi";
47 #address-cells = <1>;
48 #size-cells = <0>;
49 reg = <0x7000 0x1000>;
Pali Rohár59bd0b22022-04-08 14:39:55 +020050 interrupts = < 0x3b 0x02 0x00 0x00 >;
Xiaowei Baobe395012020-06-04 23:16:37 +080051 fsl,espi-num-chipselects = <4>;
Xiaowei Baobe395012020-06-04 23:16:37 +080052 };
53
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053054/include/ "pq3-i2c-0.dtsi"
55/include/ "pq3-i2c-1.dtsi"
Pali Roháre15478f2022-04-03 00:42:26 +020056/include/ "pq3-duart-0.dtsi"
Pali Rohár97ddccd2022-04-08 14:39:50 +020057/include/ "pq3-gpio-0.dtsi"
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053058
Pali Rohárc4ab6fd2022-04-27 16:05:01 +020059 ecm-law@0 {
60 compatible = "fsl,ecm-law";
61 reg = <0x0 0x1000>;
62 fsl,num-laws = <12>;
63 };
64
65 ecm@1000 {
66 compatible = "fsl,p2020-ecm", "fsl,ecm";
67 reg = <0x1000 0x1000>;
68 interrupts = <17 2 0 0>;
69 };
70
71 memory-controller@2000 {
72 compatible = "fsl,p2020-memory-controller";
73 reg = <0x2000 0x1000>;
74 interrupts = <18 2 0 0>;
75 };
76
Pali Rohárb9f1c602022-04-08 14:39:57 +020077 L2: l2-cache-controller@20000 {
78 compatible = "fsl,p2020-l2-cache-controller";
79 reg = <0x20000 0x1000>;
80 cache-line-size = <32>; /* 32 bytes */
81 cache-size = <0x80000>; /* L2,512K */
82 interrupts = <16 2 0 0>;
83 };
84
Pali Rohár63887242022-04-27 16:05:00 +020085/include/ "pq3-dma-0.dtsi"
86/include/ "pq3-dma-1.dtsi"
87
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053088/include/ "pq3-etsec1-0.dtsi"
Pali Rohár107eb422022-04-08 14:39:52 +020089/include/ "pq3-etsec1-timer-0.dtsi"
90
91 ptp_clock@24e00 {
92 interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>;
93 };
94
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053095/include/ "pq3-etsec1-1.dtsi"
96/include/ "pq3-etsec1-2.dtsi"
Pali Rohár82a21ed2022-04-27 16:04:58 +020097
Pali Rohárda665f62022-04-27 16:04:59 +020098/include/ "pq3-sec3.1-0.dtsi"
Pali Rohár82a21ed2022-04-27 16:04:58 +020099/include/ "pq3-mpic.dtsi"
100/include/ "pq3-mpic-timer-B.dtsi"
Pali Rohárc4ab6fd2022-04-27 16:05:01 +0200101
102 global-utilities@e0000 {
103 compatible = "fsl,p2020-guts";
104 reg = <0xe0000 0x1000>;
105 fsl,has-rstcr;
106 };
Pali Rohár96393612022-05-24 13:24:59 +0200107
108 pmc: power@e0070 {
109 compatible = "fsl,mpc8548-pmc";
110 reg = <0xe0070 0x20>;
111 };
Hou Zhiqiang1a2961d2019-08-20 09:35:29 +0000112};
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000113
114/* PCIe controller base address 0x8000 */
115&pci2 {
Pali Rohár01e4a072022-04-08 14:39:51 +0200116 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000117 law_trgt_if = <0>;
118 #address-cells = <3>;
119 #size-cells = <2>;
120 device_type = "pci";
121 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +0200122 clock-frequency = <33333333>;
123 interrupts = <24 2 0 0>;
124
125 pcie@0 {
126 reg = <0 0 0 0 0>;
127 #interrupt-cells = <1>;
128 #size-cells = <2>;
129 #address-cells = <3>;
130 device_type = "pci";
131 interrupts = <24 2 0 0>;
132 interrupt-map-mask = <0xf800 0 0 7>;
133
134 interrupt-map = <
135 /* IDSEL 0x0 */
136 0000 0x0 0x0 0x1 &mpic 0x8 0x1 0x0 0x0
137 0000 0x0 0x0 0x2 &mpic 0x9 0x1 0x0 0x0
138 0000 0x0 0x0 0x3 &mpic 0xa 0x1 0x0 0x0
139 0000 0x0 0x0 0x4 &mpic 0xb 0x1 0x0 0x0
140 >;
141 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000142};
143
144/* PCIe controller base address 0x9000 */
145&pci1 {
Pali Rohár01e4a072022-04-08 14:39:51 +0200146 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000147 law_trgt_if = <1>;
148 #address-cells = <3>;
149 #size-cells = <2>;
150 device_type = "pci";
151 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +0200152 clock-frequency = <33333333>;
153 interrupts = <25 2 0 0>;
154
155 pcie@0 {
156 reg = <0 0 0 0 0>;
157 #interrupt-cells = <1>;
158 #size-cells = <2>;
159 #address-cells = <3>;
160 device_type = "pci";
161 interrupts = <25 2 0 0>;
162 interrupt-map-mask = <0xf800 0 0 7>;
163
164 interrupt-map = <
165 /* IDSEL 0x0 */
166 0000 0x0 0x0 0x1 &mpic 0x4 0x1 0x0 0x0
167 0000 0x0 0x0 0x2 &mpic 0x5 0x1 0x0 0x0
168 0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0
169 0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0
170 >;
171 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000172};
173
174/* PCIe controller base address 0xa000 */
175&pci0 {
Pali Rohár01e4a072022-04-08 14:39:51 +0200176 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000177 law_trgt_if = <2>;
178 #address-cells = <3>;
179 #size-cells = <2>;
180 device_type = "pci";
181 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +0200182 clock-frequency = <33333333>;
183 interrupts = <26 2 0 0>;
184
185 pcie@0 {
186 reg = <0 0 0 0 0>;
187 #interrupt-cells = <1>;
188 #size-cells = <2>;
189 #address-cells = <3>;
190 device_type = "pci";
191 interrupts = <26 2 0 0>;
192 interrupt-map-mask = <0xf800 0 0 7>;
193 interrupt-map = <
194 /* IDSEL 0x0 */
195 0000 0x0 0x0 0x1 &mpic 0x0 0x1 0x0 0x0
196 0000 0x0 0x0 0x2 &mpic 0x1 0x1 0x0 0x0
197 0000 0x0 0x0 0x3 &mpic 0x2 0x1 0x0 0x0
198 0000 0x0 0x0 0x4 &mpic 0x3 0x1 0x0 0x0
199 >;
200 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000201};
Pali Rohárc27f2552022-04-05 11:15:21 +0200202
203&lbc {
204 #address-cells = <2>;
205 #size-cells = <1>;
206 compatible = "fsl,p2020-elbc", "fsl,elbc", "simple-bus";
207 interrupts = <19 2 0 0>;
208};