Hou Zhiqiang | 1a2961d | 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 | b8355c5 | 2019-12-12 17:30:55 +0800 | [diff] [blame] | 16 | usb@22000 { |
| 17 | compatible = "fsl-usb2-dr"; |
| 18 | reg = <0x22000 0x1000>; |
| 19 | phy_type = "ulpi"; |
| 20 | }; |
| 21 | |
Hou Zhiqiang | 1a2961d | 2019-08-20 09:35:29 +0000 | [diff] [blame] | 22 | 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 Zhu | e4e1c2a | 2019-10-15 17:20:41 +0800 | [diff] [blame] | 33 | |
Pali Rohár | bf39a8f | 2022-04-05 11:23:25 +0200 | [diff] [blame] | 34 | esdhc: sdhc@2e000 { |
Pali Rohár | 054b4dd | 2022-04-08 14:39:53 +0200 | [diff] [blame^] | 35 | compatible = "fsl,p2020-esdhc", "fsl,esdhc"; |
Yinbo Zhu | e4e1c2a | 2019-10-15 17:20:41 +0800 | [diff] [blame] | 36 | reg = <0x2e000 0x1000>; |
Pali Rohár | 054b4dd | 2022-04-08 14:39:53 +0200 | [diff] [blame^] | 37 | interrupts = <72 0x2 0 0>; |
Yinbo Zhu | e4e1c2a | 2019-10-15 17:20:41 +0800 | [diff] [blame] | 38 | /* Filled in by U-Boot */ |
| 39 | clock-frequency = <0>; |
| 40 | }; |
Biwen Li | fc60ffd | 2020-05-01 20:04:03 +0800 | [diff] [blame] | 41 | |
Xiaowei Bao | be39501 | 2020-06-04 23:16:37 +0800 | [diff] [blame] | 42 | 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 Zhiqiang | d1bce13 | 2020-09-21 15:16:23 +0530 | [diff] [blame] | 51 | /include/ "pq3-i2c-0.dtsi" |
| 52 | /include/ "pq3-i2c-1.dtsi" |
Pali Rohár | e15478f | 2022-04-03 00:42:26 +0200 | [diff] [blame] | 53 | /include/ "pq3-duart-0.dtsi" |
Pali Rohár | 97ddccd | 2022-04-08 14:39:50 +0200 | [diff] [blame] | 54 | /include/ "pq3-gpio-0.dtsi" |
Hou Zhiqiang | d1bce13 | 2020-09-21 15:16:23 +0530 | [diff] [blame] | 55 | |
| 56 | /include/ "pq3-etsec1-0.dtsi" |
Pali Rohár | 107eb42 | 2022-04-08 14:39:52 +0200 | [diff] [blame] | 57 | /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 Zhiqiang | d1bce13 | 2020-09-21 15:16:23 +0530 | [diff] [blame] | 63 | /include/ "pq3-etsec1-1.dtsi" |
| 64 | /include/ "pq3-etsec1-2.dtsi" |
Hou Zhiqiang | 1a2961d | 2019-08-20 09:35:29 +0000 | [diff] [blame] | 65 | }; |
Hou Zhiqiang | ba61f64 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 66 | |
| 67 | /* PCIe controller base address 0x8000 */ |
| 68 | &pci2 { |
Pali Rohár | 01e4a07 | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 69 | compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie"; |
Hou Zhiqiang | ba61f64 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 70 | law_trgt_if = <0>; |
| 71 | #address-cells = <3>; |
| 72 | #size-cells = <2>; |
| 73 | device_type = "pci"; |
| 74 | bus-range = <0x0 0xff>; |
Pali Rohár | 01e4a07 | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 75 | 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 Zhiqiang | ba61f64 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 95 | }; |
| 96 | |
| 97 | /* PCIe controller base address 0x9000 */ |
| 98 | &pci1 { |
Pali Rohár | 01e4a07 | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 99 | compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie"; |
Hou Zhiqiang | ba61f64 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 100 | law_trgt_if = <1>; |
| 101 | #address-cells = <3>; |
| 102 | #size-cells = <2>; |
| 103 | device_type = "pci"; |
| 104 | bus-range = <0x0 0xff>; |
Pali Rohár | 01e4a07 | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 105 | 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 Zhiqiang | ba61f64 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 125 | }; |
| 126 | |
| 127 | /* PCIe controller base address 0xa000 */ |
| 128 | &pci0 { |
Pali Rohár | 01e4a07 | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 129 | compatible = "fsl,pcie-p1_p2", "fsl,pcie-fsl-qoriq", "fsl,mpc8548-pcie"; |
Hou Zhiqiang | ba61f64 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 130 | law_trgt_if = <2>; |
| 131 | #address-cells = <3>; |
| 132 | #size-cells = <2>; |
| 133 | device_type = "pci"; |
| 134 | bus-range = <0x0 0xff>; |
Pali Rohár | 01e4a07 | 2022-04-08 14:39:51 +0200 | [diff] [blame] | 135 | 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 Zhiqiang | ba61f64 | 2019-08-27 11:04:15 +0000 | [diff] [blame] | 154 | }; |
Pali Rohár | c27f255 | 2022-04-05 11:15:21 +0200 | [diff] [blame] | 155 | |
| 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 | }; |