blob: 6eb6fedd4156587a36147388747104dcb5d3d1f0 [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 {
Yinbo Zhue4e1c2a2019-10-15 17:20:41 +080035 compatible = "fsl,esdhc";
36 reg = <0x2e000 0x1000>;
37 /* Filled in by U-Boot */
38 clock-frequency = <0>;
39 };
Biwen Lifc60ffd2020-05-01 20:04:03 +080040
Xiaowei Baobe395012020-06-04 23:16:37 +080041 espi0: spi@7000 {
42 compatible = "fsl,mpc8536-espi";
43 #address-cells = <1>;
44 #size-cells = <0>;
45 reg = <0x7000 0x1000>;
46 fsl,espi-num-chipselects = <4>;
47 status = "disabled";
48 };
49
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053050/include/ "pq3-i2c-0.dtsi"
51/include/ "pq3-i2c-1.dtsi"
Pali Roháre15478f2022-04-03 00:42:26 +020052/include/ "pq3-duart-0.dtsi"
Pali Rohár97ddccd2022-04-08 14:39:50 +020053/include/ "pq3-gpio-0.dtsi"
Hou Zhiqiangd1bce132020-09-21 15:16:23 +053054
55/include/ "pq3-etsec1-0.dtsi"
56/include/ "pq3-etsec1-1.dtsi"
57/include/ "pq3-etsec1-2.dtsi"
Hou Zhiqiang1a2961d2019-08-20 09:35:29 +000058};
Hou Zhiqiangba61f642019-08-27 11:04:15 +000059
60/* PCIe controller base address 0x8000 */
61&pci2 {
Pali Rohár01e4a072022-04-08 14:39:51 +020062 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +000063 law_trgt_if = <0>;
64 #address-cells = <3>;
65 #size-cells = <2>;
66 device_type = "pci";
67 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +020068 clock-frequency = <33333333>;
69 interrupts = <24 2 0 0>;
70
71 pcie@0 {
72 reg = <0 0 0 0 0>;
73 #interrupt-cells = <1>;
74 #size-cells = <2>;
75 #address-cells = <3>;
76 device_type = "pci";
77 interrupts = <24 2 0 0>;
78 interrupt-map-mask = <0xf800 0 0 7>;
79
80 interrupt-map = <
81 /* IDSEL 0x0 */
82 0000 0x0 0x0 0x1 &mpic 0x8 0x1 0x0 0x0
83 0000 0x0 0x0 0x2 &mpic 0x9 0x1 0x0 0x0
84 0000 0x0 0x0 0x3 &mpic 0xa 0x1 0x0 0x0
85 0000 0x0 0x0 0x4 &mpic 0xb 0x1 0x0 0x0
86 >;
87 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +000088};
89
90/* PCIe controller base address 0x9000 */
91&pci1 {
Pali Rohár01e4a072022-04-08 14:39:51 +020092 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +000093 law_trgt_if = <1>;
94 #address-cells = <3>;
95 #size-cells = <2>;
96 device_type = "pci";
97 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +020098 clock-frequency = <33333333>;
99 interrupts = <25 2 0 0>;
100
101 pcie@0 {
102 reg = <0 0 0 0 0>;
103 #interrupt-cells = <1>;
104 #size-cells = <2>;
105 #address-cells = <3>;
106 device_type = "pci";
107 interrupts = <25 2 0 0>;
108 interrupt-map-mask = <0xf800 0 0 7>;
109
110 interrupt-map = <
111 /* IDSEL 0x0 */
112 0000 0x0 0x0 0x1 &mpic 0x4 0x1 0x0 0x0
113 0000 0x0 0x0 0x2 &mpic 0x5 0x1 0x0 0x0
114 0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0
115 0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0
116 >;
117 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000118};
119
120/* PCIe controller base address 0xa000 */
121&pci0 {
Pali Rohár01e4a072022-04-08 14:39:51 +0200122 compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie";
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000123 law_trgt_if = <2>;
124 #address-cells = <3>;
125 #size-cells = <2>;
126 device_type = "pci";
127 bus-range = <0x0 0xff>;
Pali Rohár01e4a072022-04-08 14:39:51 +0200128 clock-frequency = <33333333>;
129 interrupts = <26 2 0 0>;
130
131 pcie@0 {
132 reg = <0 0 0 0 0>;
133 #interrupt-cells = <1>;
134 #size-cells = <2>;
135 #address-cells = <3>;
136 device_type = "pci";
137 interrupts = <26 2 0 0>;
138 interrupt-map-mask = <0xf800 0 0 7>;
139 interrupt-map = <
140 /* IDSEL 0x0 */
141 0000 0x0 0x0 0x1 &mpic 0x0 0x1 0x0 0x0
142 0000 0x0 0x0 0x2 &mpic 0x1 0x1 0x0 0x0
143 0000 0x0 0x0 0x3 &mpic 0x2 0x1 0x0 0x0
144 0000 0x0 0x0 0x4 &mpic 0x3 0x1 0x0 0x0
145 >;
146 };
Hou Zhiqiangba61f642019-08-27 11:04:15 +0000147};
Pali Rohárc27f2552022-04-05 11:15:21 +0200148
149&lbc {
150 #address-cells = <2>;
151 #size-cells = <1>;
152 compatible = "fsl,p2020-elbc", "fsl,elbc", "simple-bus";
153 interrupts = <19 2 0 0>;
154};