blob: d155973940482851b079b1d17b5b0393be7e4b0c [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 {
17 compatible = "fsl-usb2-dr";
18 reg = <0x22000 0x1000>;
19 phy_type = "ulpi";
20 };
21
Hou Zhiqiang1a2961d2019-08-20 09:35:29 +000022 mpic: pic@40000 {
23 interrupt-controller;
24 #address-cells = <0>;
25 #interrupt-cells = <4>;
26 reg = <0x40000 0x40000>;
27 compatible = "fsl,mpic";
28 device_type = "open-pic";
29 big-endian;
30 single-cpu-affinity;
31 last-interrupt-source = <255>;
32 };
Yinbo Zhue4e1c2a2019-10-15 17:20:41 +080033
Pali Rohárbf39a8f2022-04-05 11:23:25 +020034 esdhc: sdhc@2e000 {
Pali Rohár054b4dd2022-04-08 14:39:53 +020035 compatible = "fsl,p2020-esdhc", "fsl,esdhc";
Yinbo Zhue4e1c2a2019-10-15 17:20:41 +080036 reg = <0x2e000 0x1000>;
Pali Rohár054b4dd2022-04-08 14:39:53 +020037 interrupts = <72 0x2 0 0>;
Yinbo Zhue4e1c2a2019-10-15 17:20:41 +080038 /* Filled in by U-Boot */
39 clock-frequency = <0>;
40 };
Biwen Lifc60ffd2020-05-01 20:04:03 +080041
Xiaowei Baobe395012020-06-04 23:16:37 +080042 espi0: spi@7000 {
43 compatible = "fsl,mpc8536-espi";
44 #address-cells = <1>;
45 #size-cells = <0>;
46 reg = <0x7000 0x1000>;
47 fsl,espi-num-chipselects = <4>;
48 status = "disabled";
49 };
50
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053051/include/ "pq3-i2c-0.dtsi"
52/include/ "pq3-i2c-1.dtsi"
Pali Roháre15478f2022-04-03 00:42:26 +020053/include/ "pq3-duart-0.dtsi"
Pali Rohár97ddccd2022-04-08 14:39:50 +020054/include/ "pq3-gpio-0.dtsi"
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053055
56/include/ "pq3-etsec1-0.dtsi"
Pali Rohár107eb422022-04-08 14:39:52 +020057/include/ "pq3-etsec1-timer-0.dtsi"
58
59 ptp_clock@24e00 {
60 interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>;
61 };
62
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053063/include/ "pq3-etsec1-1.dtsi"
64/include/ "pq3-etsec1-2.dtsi"
Hou Zhiqiang1a2961d2019-08-20 09:35:29 +000065};
Hou Zhiqiangba61f642019-08-27 11:04:15 +000066
67/* PCIe controller base address 0x8000 */
68&pci2 {
Pali Rohár01e4a072022-04-08 14:39:51 +020069 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +000070 law_trgt_if = <0>;
71 #address-cells = <3>;
72 #size-cells = <2>;
73 device_type = "pci";
74 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +020075 clock-frequency = <33333333>;
76 interrupts = <24 2 0 0>;
77
78 pcie@0 {
79 reg = <0 0 0 0 0>;
80 #interrupt-cells = <1>;
81 #size-cells = <2>;
82 #address-cells = <3>;
83 device_type = "pci";
84 interrupts = <24 2 0 0>;
85 interrupt-map-mask = <0xf800 0 0 7>;
86
87 interrupt-map = <
88 /* IDSEL 0x0 */
89 0000 0x0 0x0 0x1 &mpic 0x8 0x1 0x0 0x0
90 0000 0x0 0x0 0x2 &mpic 0x9 0x1 0x0 0x0
91 0000 0x0 0x0 0x3 &mpic 0xa 0x1 0x0 0x0
92 0000 0x0 0x0 0x4 &mpic 0xb 0x1 0x0 0x0
93 >;
94 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +000095};
96
97/* PCIe controller base address 0x9000 */
98&pci1 {
Pali Rohár01e4a072022-04-08 14:39:51 +020099 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000100 law_trgt_if = <1>;
101 #address-cells = <3>;
102 #size-cells = <2>;
103 device_type = "pci";
104 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +0200105 clock-frequency = <33333333>;
106 interrupts = <25 2 0 0>;
107
108 pcie@0 {
109 reg = <0 0 0 0 0>;
110 #interrupt-cells = <1>;
111 #size-cells = <2>;
112 #address-cells = <3>;
113 device_type = "pci";
114 interrupts = <25 2 0 0>;
115 interrupt-map-mask = <0xf800 0 0 7>;
116
117 interrupt-map = <
118 /* IDSEL 0x0 */
119 0000 0x0 0x0 0x1 &mpic 0x4 0x1 0x0 0x0
120 0000 0x0 0x0 0x2 &mpic 0x5 0x1 0x0 0x0
121 0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0
122 0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0
123 >;
124 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000125};
126
127/* PCIe controller base address 0xa000 */
128&pci0 {
Pali Rohár01e4a072022-04-08 14:39:51 +0200129 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000130 law_trgt_if = <2>;
131 #address-cells = <3>;
132 #size-cells = <2>;
133 device_type = "pci";
134 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +0200135 clock-frequency = <33333333>;
136 interrupts = <26 2 0 0>;
137
138 pcie@0 {
139 reg = <0 0 0 0 0>;
140 #interrupt-cells = <1>;
141 #size-cells = <2>;
142 #address-cells = <3>;
143 device_type = "pci";
144 interrupts = <26 2 0 0>;
145 interrupt-map-mask = <0xf800 0 0 7>;
146 interrupt-map = <
147 /* IDSEL 0x0 */
148 0000 0x0 0x0 0x1 &mpic 0x0 0x1 0x0 0x0
149 0000 0x0 0x0 0x2 &mpic 0x1 0x1 0x0 0x0
150 0000 0x0 0x0 0x3 &mpic 0x2 0x1 0x0 0x0
151 0000 0x0 0x0 0x4 &mpic 0x3 0x1 0x0 0x0
152 >;
153 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000154};
Pali Rohárc27f2552022-04-05 11:15:21 +0200155
156&lbc {
157 #address-cells = <2>;
158 #size-cells = <1>;
159 compatible = "fsl,p2020-elbc", "fsl,elbc", "simple-bus";
160 interrupts = <19 2 0 0>;
161};