Hou Zhiqiang | caa7569 | 2019-08-20 09:35:29 +0000 | [diff] [blame] | 1 | // 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 Wang | b614af9 | 2019-12-12 17:30:55 +0800 | [diff] [blame] | 16 | usb@22000 { |
Pali Rohár | 787d2c0 | 2022-04-08 14:39:56 +0200 | [diff] [blame] | 17 | compatible = "fsl-usb2-dr-v1.6", "fsl-usb2-dr"; |
Ran Wang | b614af9 | 2019-12-12 17:30:55 +0800 | [diff] [blame] | 18 | reg = <0x22000 0x1000>; |
Pali Rohár | 787d2c0 | 2022-04-08 14:39:56 +0200 | [diff] [blame] | 19 | #address-cells = <1>; |
| 20 | #size-cells = <0>; |
| 21 | interrupts = <28 0x2 0 0>; |
Ran Wang | b614af9 | 2019-12-12 17:30:55 +0800 | [diff] [blame] | 22 | phy_type = "ulpi"; |
| 23 | }; |
| 24 | |
Hou Zhiqiang | caa7569 | 2019-08-20 09:35:29 +0000 | [diff] [blame] | 25 | 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 Zhu | e126363 | 2019-10-15 17:20:41 +0800 | [diff] [blame] | 36 | |
Pali Rohár | 74b7d69 | 2022-04-05 11:23:25 +0200 | [diff] [blame] | 37 | esdhc: sdhc@2e000 { |
Pali Rohár | d1721ea | 2022-04-08 14:39:53 +0200 | [diff] [blame] | 38 | compatible = "fsl,p2020-esdhc", "fsl,esdhc"; |
Yinbo Zhu | e126363 | 2019-10-15 17:20:41 +0800 | [diff] [blame] | 39 | reg = <0x2e000 0x1000>; |
Pali Rohár | d1721ea | 2022-04-08 14:39:53 +0200 | [diff] [blame] | 40 | interrupts = <72 0x2 0 0>; |
Yinbo Zhu | e126363 | 2019-10-15 17:20:41 +0800 | [diff] [blame] | 41 | /* Filled in by U-Boot */ |
| 42 | clock-frequency = <0>; |
| 43 | }; |
Biwen Li | 2563aea | 2020-05-01 20:04:03 +0800 | [diff] [blame] | 44 | |
Xiaowei Bao | c730329 | 2020-06-04 23:16:37 +0800 | [diff] [blame] | 45 | espi0: spi@7000 { |
| 46 | compatible = "fsl,mpc8536-espi"; |
| 47 | #address-cells = <1>; |
| 48 | #size-cells = <0>; |
| 49 | reg = <0x7000 0x1000>; |
Pali Rohár | 7b07412 | 2022-04-08 14:39:55 +0200 | [diff] [blame] | 50 | interrupts = < 0x3b 0x02 0x00 0x00 >; |
Xiaowei Bao | c730329 | 2020-06-04 23:16:37 +0800 | [diff] [blame] | 51 | fsl,espi-num-chipselects = <4>; |
Xiaowei Bao | c730329 | 2020-06-04 23:16:37 +0800 | [diff] [blame] | 52 | }; |
| 53 | |
Hou Zhiqiang | 613e49b | 2020-09-21 15:16:23 +0530 | [diff] [blame] | 54 | /include/ "pq3-i2c-0.dtsi" |
| 55 | /include/ "pq3-i2c-1.dtsi" |
Pali Rohár | cfbf843 | 2022-04-03 00:42:26 +0200 | [diff] [blame] | 56 | /include/ "pq3-duart-0.dtsi" |
Pali Rohár | ec52b55 | 2022-04-08 14:39:50 +0200 | [diff] [blame] | 57 | /include/ "pq3-gpio-0.dtsi" |
Hou Zhiqiang | 613e49b | 2020-09-21 15:16:23 +0530 | [diff] [blame] | 58 | |
Pali Rohár | fd3dc72 | 2022-04-08 14:39:57 +0200 | [diff] [blame] | 59 | L2: l2-cache-controller@20000 { |
| 60 | compatible = "fsl,p2020-l2-cache-controller"; |
| 61 | reg = <0x20000 0x1000>; |
| 62 | cache-line-size = <32>; /* 32 bytes */ |
| 63 | cache-size = <0x80000>; /* L2,512K */ |
| 64 | interrupts = <16 2 0 0>; |
| 65 | }; |
| 66 | |
Hou Zhiqiang | 613e49b | 2020-09-21 15:16:23 +0530 | [diff] [blame] | 67 | /include/ "pq3-etsec1-0.dtsi" |
Pali Rohár | 0e33f68 | 2022-04-08 14:39:52 +0200 | [diff] [blame] | 68 | /include/ "pq3-etsec1-timer-0.dtsi" |
| 69 | |
| 70 | ptp_clock@24e00 { |
| 71 | interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>; |
| 72 | }; |
| 73 | |
Hou Zhiqiang | 613e49b | 2020-09-21 15:16:23 +0530 | [diff] [blame] | 74 | /include/ "pq3-etsec1-1.dtsi" |
| 75 | /include/ "pq3-etsec1-2.dtsi" |
Pali Rohár | 1cb0f98 | 2022-04-27 16:04:58 +0200 | [diff] [blame^] | 76 | |
| 77 | /include/ "pq3-mpic.dtsi" |
| 78 | /include/ "pq3-mpic-timer-B.dtsi" |
Hou Zhiqiang | caa7569 | 2019-08-20 09:35:29 +0000 | [diff] [blame] | 79 | }; |
Hou Zhiqiang | 6875149 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 80 | |
| 81 | /* PCIe controller base address 0x8000 */ |
| 82 | &pci2 { |
Pali Rohár | 1a0800a | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 83 | compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie"; |
Hou Zhiqiang | 6875149 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 84 | law_trgt_if = <0>; |
| 85 | #address-cells = <3>; |
| 86 | #size-cells = <2>; |
| 87 | device_type = "pci"; |
| 88 | bus-range = <0x0 0xff>; |
Pali Rohár | 1a0800a | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 89 | clock-frequency = <33333333>; |
| 90 | interrupts = <24 2 0 0>; |
| 91 | |
| 92 | pcie@0 { |
| 93 | reg = <0 0 0 0 0>; |
| 94 | #interrupt-cells = <1>; |
| 95 | #size-cells = <2>; |
| 96 | #address-cells = <3>; |
| 97 | device_type = "pci"; |
| 98 | interrupts = <24 2 0 0>; |
| 99 | interrupt-map-mask = <0xf800 0 0 7>; |
| 100 | |
| 101 | interrupt-map = < |
| 102 | /* IDSEL 0x0 */ |
| 103 | 0000 0x0 0x0 0x1 &mpic 0x8 0x1 0x0 0x0 |
| 104 | 0000 0x0 0x0 0x2 &mpic 0x9 0x1 0x0 0x0 |
| 105 | 0000 0x0 0x0 0x3 &mpic 0xa 0x1 0x0 0x0 |
| 106 | 0000 0x0 0x0 0x4 &mpic 0xb 0x1 0x0 0x0 |
| 107 | >; |
| 108 | }; |
Hou Zhiqiang | 6875149 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 109 | }; |
| 110 | |
| 111 | /* PCIe controller base address 0x9000 */ |
| 112 | &pci1 { |
Pali Rohár | 1a0800a | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 113 | compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie"; |
Hou Zhiqiang | 6875149 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 114 | law_trgt_if = <1>; |
| 115 | #address-cells = <3>; |
| 116 | #size-cells = <2>; |
| 117 | device_type = "pci"; |
| 118 | bus-range = <0x0 0xff>; |
Pali Rohár | 1a0800a | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 119 | clock-frequency = <33333333>; |
| 120 | interrupts = <25 2 0 0>; |
| 121 | |
| 122 | pcie@0 { |
| 123 | reg = <0 0 0 0 0>; |
| 124 | #interrupt-cells = <1>; |
| 125 | #size-cells = <2>; |
| 126 | #address-cells = <3>; |
| 127 | device_type = "pci"; |
| 128 | interrupts = <25 2 0 0>; |
| 129 | interrupt-map-mask = <0xf800 0 0 7>; |
| 130 | |
| 131 | interrupt-map = < |
| 132 | /* IDSEL 0x0 */ |
| 133 | 0000 0x0 0x0 0x1 &mpic 0x4 0x1 0x0 0x0 |
| 134 | 0000 0x0 0x0 0x2 &mpic 0x5 0x1 0x0 0x0 |
| 135 | 0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0 |
| 136 | 0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0 |
| 137 | >; |
| 138 | }; |
Hou Zhiqiang | 6875149 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 139 | }; |
| 140 | |
| 141 | /* PCIe controller base address 0xa000 */ |
| 142 | &pci0 { |
Pali Rohár | 1a0800a | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 143 | compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie"; |
Hou Zhiqiang | 6875149 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 144 | law_trgt_if = <2>; |
| 145 | #address-cells = <3>; |
| 146 | #size-cells = <2>; |
| 147 | device_type = "pci"; |
| 148 | bus-range = <0x0 0xff>; |
Pali Rohár | 1a0800a | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 149 | clock-frequency = <33333333>; |
| 150 | interrupts = <26 2 0 0>; |
| 151 | |
| 152 | pcie@0 { |
| 153 | reg = <0 0 0 0 0>; |
| 154 | #interrupt-cells = <1>; |
| 155 | #size-cells = <2>; |
| 156 | #address-cells = <3>; |
| 157 | device_type = "pci"; |
| 158 | interrupts = <26 2 0 0>; |
| 159 | interrupt-map-mask = <0xf800 0 0 7>; |
| 160 | interrupt-map = < |
| 161 | /* IDSEL 0x0 */ |
| 162 | 0000 0x0 0x0 0x1 &mpic 0x0 0x1 0x0 0x0 |
| 163 | 0000 0x0 0x0 0x2 &mpic 0x1 0x1 0x0 0x0 |
| 164 | 0000 0x0 0x0 0x3 &mpic 0x2 0x1 0x0 0x0 |
| 165 | 0000 0x0 0x0 0x4 &mpic 0x3 0x1 0x0 0x0 |
| 166 | >; |
| 167 | }; |
Hou Zhiqiang | 6875149 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 168 | }; |
Pali Rohár | 7d1d31d | 2022-04-05 11:15:21 +0200 | [diff] [blame] | 169 | |
| 170 | &lbc { |
| 171 | #address-cells = <2>; |
| 172 | #size-cells = <1>; |
| 173 | compatible = "fsl,p2020-elbc", "fsl,elbc", "simple-bus"; |
| 174 | interrupts = <19 2 0 0>; |
| 175 | }; |