hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
....@@ -1,8 +1,9 @@
11 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
22 /*
3
- * Device Tree Include file for Freescale Layerscape-1046A family SoC.
3
+ * Device Tree Include file for NXP Layerscape-1046A family SoC.
44 *
55 * Copyright 2016 Freescale Semiconductor, Inc.
6
+ * Copyright 2018, 2020 NXP
67 *
78 * Mingkai Hu <mingkai.hu@nxp.com>
89 */
....@@ -27,6 +28,7 @@
2728 ethernet5 = &enet5;
2829 ethernet6 = &enet6;
2930 ethernet7 = &enet7;
31
+ rtc1 = &ftm_alarm0;
3032 };
3133
3234 cpus {
....@@ -116,19 +118,79 @@
116118 };
117119
118120 thermal-zones {
119
- cpu_thermal: cpu-thermal {
121
+ ddr-controller {
120122 polling-delay-passive = <1000>;
121123 polling-delay = <5000>;
122
- thermal-sensors = <&tmu 3>;
124
+ thermal-sensors = <&tmu 0>;
123125
124126 trips {
125
- cpu_alert: cpu-alert {
127
+ ddr-ctrler-alert {
126128 temperature = <85000>;
127129 hysteresis = <2000>;
128130 type = "passive";
129131 };
130132
131
- cpu_crit: cpu-crit {
133
+ ddr-ctrler-crit {
134
+ temperature = <95000>;
135
+ hysteresis = <2000>;
136
+ type = "critical";
137
+ };
138
+ };
139
+ };
140
+
141
+ serdes {
142
+ polling-delay-passive = <1000>;
143
+ polling-delay = <5000>;
144
+ thermal-sensors = <&tmu 1>;
145
+
146
+ trips {
147
+ serdes-alert {
148
+ temperature = <85000>;
149
+ hysteresis = <2000>;
150
+ type = "passive";
151
+ };
152
+
153
+ serdes-crit {
154
+ temperature = <95000>;
155
+ hysteresis = <2000>;
156
+ type = "critical";
157
+ };
158
+ };
159
+ };
160
+
161
+ fman {
162
+ polling-delay-passive = <1000>;
163
+ polling-delay = <5000>;
164
+ thermal-sensors = <&tmu 2>;
165
+
166
+ trips {
167
+ fman-alert {
168
+ temperature = <85000>;
169
+ hysteresis = <2000>;
170
+ type = "passive";
171
+ };
172
+
173
+ fman-crit {
174
+ temperature = <95000>;
175
+ hysteresis = <2000>;
176
+ type = "critical";
177
+ };
178
+ };
179
+ };
180
+
181
+ core-cluster {
182
+ polling-delay-passive = <1000>;
183
+ polling-delay = <5000>;
184
+ thermal-sensors = <&tmu 3>;
185
+
186
+ trips {
187
+ core_cluster_alert: core-cluster-alert {
188
+ temperature = <85000>;
189
+ hysteresis = <2000>;
190
+ type = "passive";
191
+ };
192
+
193
+ core_cluster_crit: core-cluster-crit {
132194 temperature = <95000>;
133195 hysteresis = <2000>;
134196 type = "critical";
....@@ -137,10 +199,32 @@
137199
138200 cooling-maps {
139201 map0 {
140
- trip = <&cpu_alert>;
202
+ trip = <&core_cluster_alert>;
141203 cooling-device =
142
- <&cpu0 THERMAL_NO_LIMIT
143
- THERMAL_NO_LIMIT>;
204
+ <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
205
+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
206
+ <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
207
+ <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
208
+ };
209
+ };
210
+ };
211
+
212
+ sec {
213
+ polling-delay-passive = <1000>;
214
+ polling-delay = <5000>;
215
+ thermal-sensors = <&tmu 4>;
216
+
217
+ trips {
218
+ sec-alert {
219
+ temperature = <85000>;
220
+ hysteresis = <2000>;
221
+ type = "passive";
222
+ };
223
+
224
+ sec-crit {
225
+ temperature = <95000>;
226
+ hysteresis = <2000>;
227
+ type = "critical";
144228 };
145229 };
146230 };
....@@ -198,8 +282,8 @@
198282 ifc: ifc@1530000 {
199283 compatible = "fsl,ifc", "simple-bus";
200284 reg = <0x0 0x1530000 0x0 0x10000>;
201
- big-endian;
202285 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
286
+ status = "disabled";
203287 };
204288
205289 qspi: spi@1550000 {
....@@ -212,8 +296,6 @@
212296 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
213297 clock-names = "qspi_en", "qspi";
214298 clocks = <&clockgen 4 1>, <&clockgen 4 1>;
215
- big-endian;
216
- fsl,qspi-has-second-chip;
217299 status = "disabled";
218300 };
219301
....@@ -423,6 +505,7 @@
423505 reg = <0x00 0x21c0500 0x0 0x100>;
424506 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
425507 clocks = <&clockgen 4 1>;
508
+ status = "disabled";
426509 };
427510
428511 duart1: serial@21c0600 {
....@@ -430,6 +513,7 @@
430513 reg = <0x00 0x21c0600 0x0 0x100>;
431514 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
432515 clocks = <&clockgen 4 1>;
516
+ status = "disabled";
433517 };
434518
435519 duart2: serial@21d0500 {
....@@ -437,6 +521,7 @@
437521 reg = <0x0 0x21d0500 0x0 0x100>;
438522 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
439523 clocks = <&clockgen 4 1>;
524
+ status = "disabled";
440525 };
441526
442527 duart3: serial@21d0600 {
....@@ -444,6 +529,7 @@
444529 reg = <0x0 0x21d0600 0x0 0x100>;
445530 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
446531 clocks = <&clockgen 4 1>;
532
+ status = "disabled";
447533 };
448534
449535 gpio0: gpio@2300000 {
....@@ -571,6 +657,7 @@
571657 dr_mode = "host";
572658 snps,quirk-frame-length-adjustment = <0x20>;
573659 snps,dis_rxdet_inp3_quirk;
660
+ snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
574661 };
575662
576663 usb1: usb@3000000 {
....@@ -580,6 +667,7 @@
580667 dr_mode = "host";
581668 snps,quirk-frame-length-adjustment = <0x20>;
582669 snps,dis_rxdet_inp3_quirk;
670
+ snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
583671 };
584672
585673 usb2: usb@3100000 {
....@@ -589,6 +677,7 @@
589677 dr_mode = "host";
590678 snps,quirk-frame-length-adjustment = <0x20>;
591679 snps,dis_rxdet_inp3_quirk;
680
+ snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
592681 };
593682
594683 sata: sata@3200000 {
....@@ -630,8 +719,8 @@
630719 <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>;
631720 };
632721
633
- pcie@3400000 {
634
- compatible = "fsl,ls1046a-pcie", "snps,dw-pcie";
722
+ pcie1: pcie@3400000 {
723
+ compatible = "fsl,ls1046a-pcie";
635724 reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */
636725 0x40 0x00000000 0x0 0x00002000>; /* configuration space */
637726 reg-names = "regs", "config";
....@@ -642,7 +731,7 @@
642731 #size-cells = <2>;
643732 device_type = "pci";
644733 dma-coherent;
645
- num-lanes = <4>;
734
+ num-viewport = <8>;
646735 bus-range = <0x0 0xff>;
647736 ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
648737 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
....@@ -653,10 +742,21 @@
653742 <0000 0 0 2 &gic GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
654743 <0000 0 0 3 &gic GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
655744 <0000 0 0 4 &gic GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
745
+ status = "disabled";
656746 };
657747
658
- pcie@3500000 {
659
- compatible = "fsl,ls1046a-pcie", "snps,dw-pcie";
748
+ pcie_ep1: pcie_ep@3400000 {
749
+ compatible = "fsl,ls1046a-pcie-ep","fsl,ls-pcie-ep";
750
+ reg = <0x00 0x03400000 0x0 0x00100000
751
+ 0x40 0x00000000 0x8 0x00000000>;
752
+ reg-names = "regs", "addr_space";
753
+ num-ib-windows = <6>;
754
+ num-ob-windows = <8>;
755
+ status = "disabled";
756
+ };
757
+
758
+ pcie2: pcie@3500000 {
759
+ compatible = "fsl,ls1046a-pcie";
660760 reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */
661761 0x48 0x00000000 0x0 0x00002000>; /* configuration space */
662762 reg-names = "regs", "config";
....@@ -667,7 +767,7 @@
667767 #size-cells = <2>;
668768 device_type = "pci";
669769 dma-coherent;
670
- num-lanes = <2>;
770
+ num-viewport = <8>;
671771 bus-range = <0x0 0xff>;
672772 ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
673773 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
....@@ -678,10 +778,21 @@
678778 <0000 0 0 2 &gic GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
679779 <0000 0 0 3 &gic GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
680780 <0000 0 0 4 &gic GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
781
+ status = "disabled";
681782 };
682783
683
- pcie@3600000 {
684
- compatible = "fsl,ls1046a-pcie", "snps,dw-pcie";
784
+ pcie_ep2: pcie_ep@3500000 {
785
+ compatible = "fsl,ls1046a-pcie-ep","fsl,ls-pcie-ep";
786
+ reg = <0x00 0x03500000 0x0 0x00100000
787
+ 0x48 0x00000000 0x8 0x00000000>;
788
+ reg-names = "regs", "addr_space";
789
+ num-ib-windows = <6>;
790
+ num-ob-windows = <8>;
791
+ status = "disabled";
792
+ };
793
+
794
+ pcie3: pcie@3600000 {
795
+ compatible = "fsl,ls1046a-pcie";
685796 reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */
686797 0x50 0x00000000 0x0 0x00002000>; /* configuration space */
687798 reg-names = "regs", "config";
....@@ -692,7 +803,7 @@
692803 #size-cells = <2>;
693804 device_type = "pci";
694805 dma-coherent;
695
- num-lanes = <2>;
806
+ num-viewport = <8>;
696807 bus-range = <0x0 0xff>;
697808 ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000 /* downstream I/O */
698809 0x82000000 0x0 0x40000000 0x50 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
....@@ -703,8 +814,53 @@
703814 <0000 0 0 2 &gic GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
704815 <0000 0 0 3 &gic GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
705816 <0000 0 0 4 &gic GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
817
+ status = "disabled";
706818 };
707819
820
+ pcie_ep3: pcie_ep@3600000 {
821
+ compatible = "fsl,ls1046a-pcie-ep", "fsl,ls-pcie-ep";
822
+ reg = <0x00 0x03600000 0x0 0x00100000
823
+ 0x50 0x00000000 0x8 0x00000000>;
824
+ reg-names = "regs", "addr_space";
825
+ num-ib-windows = <6>;
826
+ num-ob-windows = <8>;
827
+ status = "disabled";
828
+ };
829
+
830
+ qdma: dma-controller@8380000 {
831
+ compatible = "fsl,ls1046a-qdma", "fsl,ls1021a-qdma";
832
+ reg = <0x0 0x8380000 0x0 0x1000>, /* Controller regs */
833
+ <0x0 0x8390000 0x0 0x10000>, /* Status regs */
834
+ <0x0 0x83a0000 0x0 0x40000>; /* Block regs */
835
+ interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
836
+ <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
837
+ <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
838
+ <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
839
+ <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
840
+ interrupt-names = "qdma-error", "qdma-queue0",
841
+ "qdma-queue1", "qdma-queue2", "qdma-queue3";
842
+ dma-channels = <8>;
843
+ block-number = <1>;
844
+ block-offset = <0x10000>;
845
+ fsl,dma-queues = <2>;
846
+ status-sizes = <64>;
847
+ queue-sizes = <64 64>;
848
+ big-endian;
849
+ };
850
+
851
+ rcpm: power-controller@1ee2140 {
852
+ compatible = "fsl,ls1046a-rcpm", "fsl,qoriq-rcpm-2.1+";
853
+ reg = <0x0 0x1ee2140 0x0 0x4>;
854
+ #fsl,rcpm-wakeup-cells = <1>;
855
+ };
856
+
857
+ ftm_alarm0: timer@29d0000 {
858
+ compatible = "fsl,ls1046a-ftm-alarm";
859
+ reg = <0x0 0x29d0000 0x0 0x10000>;
860
+ fsl,rcpm-wakeup = <&rcpm 0x20000>;
861
+ interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
862
+ big-endian;
863
+ };
708864 };
709865
710866 reserved-memory {