blob: 3351874b5389a5a244b1eb143d8dcce7189dbaed [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
Pali Rohárc4ab6fd2022-04-27 16:05:01 +020016 ecm-law@0 {
17 compatible = "fsl,ecm-law";
18 reg = <0x0 0x1000>;
19 fsl,num-laws = <12>;
20 };
21
22 ecm@1000 {
23 compatible = "fsl,p2020-ecm", "fsl,ecm";
24 reg = <0x1000 0x1000>;
25 interrupts = <17 2 0 0>;
26 };
27
28 memory-controller@2000 {
29 compatible = "fsl,p2020-memory-controller";
30 reg = <0x2000 0x1000>;
31 interrupts = <18 2 0 0>;
32 };
33
Pali Rohár06369532022-06-23 14:39:03 +020034/include/ "pq3-i2c-0.dtsi"
35/include/ "pq3-i2c-1.dtsi"
36/include/ "pq3-duart-0.dtsi"
37
38 espi0: spi@7000 {
39 compatible = "fsl,mpc8536-espi";
40 #address-cells = <1>;
41 #size-cells = <0>;
42 reg = <0x7000 0x1000>;
43 interrupts = < 0x3b 0x02 0x00 0x00 >;
44 fsl,espi-num-chipselects = <4>;
45 };
46
47/include/ "pq3-dma-1.dtsi"
48/include/ "pq3-gpio-0.dtsi"
49
Pali Rohárb9f1c602022-04-08 14:39:57 +020050 L2: l2-cache-controller@20000 {
51 compatible = "fsl,p2020-l2-cache-controller";
52 reg = <0x20000 0x1000>;
53 cache-line-size = <32>; /* 32 bytes */
54 cache-size = <0x80000>; /* L2,512K */
55 interrupts = <16 2 0 0>;
56 };
57
Pali Rohár63887242022-04-27 16:05:00 +020058/include/ "pq3-dma-0.dtsi"
Pali Rohár06369532022-06-23 14:39:03 +020059
60 usb@22000 {
61 compatible = "fsl-usb2-dr-v1.6", "fsl-usb2-dr";
62 reg = <0x22000 0x1000>;
63 #address-cells = <1>;
64 #size-cells = <0>;
65 interrupts = <28 0x2 0 0>;
66 phy_type = "ulpi";
67 };
Pali Rohár63887242022-04-27 16:05:00 +020068
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053069/include/ "pq3-etsec1-0.dtsi"
Pali Rohár107eb422022-04-08 14:39:52 +020070/include/ "pq3-etsec1-timer-0.dtsi"
71
72 ptp_clock@24e00 {
73 interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>;
74 };
75
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053076/include/ "pq3-etsec1-1.dtsi"
77/include/ "pq3-etsec1-2.dtsi"
Pali Rohár82a21ed2022-04-27 16:04:58 +020078
Pali Rohár06369532022-06-23 14:39:03 +020079 esdhc: sdhc@2e000 {
80 compatible = "fsl,p2020-esdhc", "fsl,esdhc";
81 reg = <0x2e000 0x1000>;
82 interrupts = <72 0x2 0 0>;
83 /* Filled in by U-Boot */
84 clock-frequency = <0>;
85 };
86
Pali Rohárda665f62022-04-27 16:04:59 +020087/include/ "pq3-sec3.1-0.dtsi"
Pali Rohár82a21ed2022-04-27 16:04:58 +020088/include/ "pq3-mpic.dtsi"
89/include/ "pq3-mpic-timer-B.dtsi"
Pali Rohárc4ab6fd2022-04-27 16:05:01 +020090
Pali Rohár06369532022-06-23 14:39:03 +020091 mpic: pic@40000 {
92 interrupt-controller;
93 #address-cells = <0>;
94 #interrupt-cells = <4>;
95 reg = <0x40000 0x40000>;
96 compatible = "fsl,mpic";
97 device_type = "open-pic";
98 big-endian;
99 single-cpu-affinity;
100 last-interrupt-source = <255>;
101 };
102
Pali Rohárc4ab6fd2022-04-27 16:05:01 +0200103 global-utilities@e0000 {
104 compatible = "fsl,p2020-guts";
105 reg = <0xe0000 0x1000>;
106 fsl,has-rstcr;
107 };
Pali Rohár96393612022-05-24 13:24:59 +0200108
109 pmc: power@e0070 {
110 compatible = "fsl,mpc8548-pmc";
111 reg = <0xe0070 0x20>;
112 };
Hou Zhiqiang1a2961d2019-08-20 09:35:29 +0000113};
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000114
115/* PCIe controller base address 0x8000 */
116&pci2 {
Pali Rohár01e4a072022-04-08 14:39:51 +0200117 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000118 law_trgt_if = <0>;
119 #address-cells = <3>;
120 #size-cells = <2>;
121 device_type = "pci";
122 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +0200123 clock-frequency = <33333333>;
124 interrupts = <24 2 0 0>;
125
126 pcie@0 {
127 reg = <0 0 0 0 0>;
128 #interrupt-cells = <1>;
129 #size-cells = <2>;
130 #address-cells = <3>;
131 device_type = "pci";
132 interrupts = <24 2 0 0>;
133 interrupt-map-mask = <0xf800 0 0 7>;
134
135 interrupt-map = <
136 /* IDSEL 0x0 */
137 0000 0x0 0x0 0x1 &mpic 0x8 0x1 0x0 0x0
138 0000 0x0 0x0 0x2 &mpic 0x9 0x1 0x0 0x0
139 0000 0x0 0x0 0x3 &mpic 0xa 0x1 0x0 0x0
140 0000 0x0 0x0 0x4 &mpic 0xb 0x1 0x0 0x0
141 >;
142 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000143};
144
145/* PCIe controller base address 0x9000 */
146&pci1 {
Pali Rohár01e4a072022-04-08 14:39:51 +0200147 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000148 law_trgt_if = <1>;
149 #address-cells = <3>;
150 #size-cells = <2>;
151 device_type = "pci";
152 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +0200153 clock-frequency = <33333333>;
154 interrupts = <25 2 0 0>;
155
156 pcie@0 {
157 reg = <0 0 0 0 0>;
158 #interrupt-cells = <1>;
159 #size-cells = <2>;
160 #address-cells = <3>;
161 device_type = "pci";
162 interrupts = <25 2 0 0>;
163 interrupt-map-mask = <0xf800 0 0 7>;
164
165 interrupt-map = <
166 /* IDSEL 0x0 */
167 0000 0x0 0x0 0x1 &mpic 0x4 0x1 0x0 0x0
168 0000 0x0 0x0 0x2 &mpic 0x5 0x1 0x0 0x0
169 0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0
170 0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0
171 >;
172 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000173};
174
175/* PCIe controller base address 0xa000 */
176&pci0 {
Pali Rohár01e4a072022-04-08 14:39:51 +0200177 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000178 law_trgt_if = <2>;
179 #address-cells = <3>;
180 #size-cells = <2>;
181 device_type = "pci";
182 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +0200183 clock-frequency = <33333333>;
184 interrupts = <26 2 0 0>;
185
186 pcie@0 {
187 reg = <0 0 0 0 0>;
188 #interrupt-cells = <1>;
189 #size-cells = <2>;
190 #address-cells = <3>;
191 device_type = "pci";
192 interrupts = <26 2 0 0>;
193 interrupt-map-mask = <0xf800 0 0 7>;
194 interrupt-map = <
195 /* IDSEL 0x0 */
196 0000 0x0 0x0 0x1 &mpic 0x0 0x1 0x0 0x0
197 0000 0x0 0x0 0x2 &mpic 0x1 0x1 0x0 0x0
198 0000 0x0 0x0 0x3 &mpic 0x2 0x1 0x0 0x0
199 0000 0x0 0x0 0x4 &mpic 0x3 0x1 0x0 0x0
200 >;
201 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000202};
Pali Rohárc27f2552022-04-05 11:15:21 +0200203
204&lbc {
205 #address-cells = <2>;
206 #size-cells = <1>;
207 compatible = "fsl,p2020-elbc", "fsl,elbc", "simple-bus";
208 interrupts = <19 2 0 0>;
209};