summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy-usdpaa.dts
blob: bd4f884eb945a7b0ac2479624abefaddcc03bb95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Device Tree Include file for Freescale Layerscape-1046A family SoC.
 *
 * Copyright 2019 NXP.
 *
 */

#include "fsl-ls1046a-frwy-sdk.dts"

&soc {
	bp7: buffer-pool@7 {
		compatible = "fsl,ls1046a-bpool", "fsl,bpool";
		fsl,bpid = <7>;
		fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
		fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
		dma-coherent;
	};

	bp8: buffer-pool@8 {
		compatible = "fsl,ls1046a-bpool", "fsl,bpool";
		fsl,bpid = <8>;
		fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
		fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
		dma-coherent;
	};

	bp9: buffer-pool@9 {
		compatible = "fsl,ls1046a-bpool", "fsl,bpool";
		fsl,bpid = <9>;
		fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
		fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
		dma-coherent;
	};

	fsl,dpaa {
		compatible = "fsl,ls1046a", "fsl,dpaa", "simple-bus";
		dma-coherent;

		ethernet@0 {
			compatible = "fsl,dpa-ethernet-init";
			fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
			fsl,qman-frame-queues-rx = <0x50 1 0x51 1>;
			fsl,qman-frame-queues-tx = <0x70 1 0x71 1>;
		};

		ethernet@4 {
			compatible = "fsl,dpa-ethernet-init";
			fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
			fsl,qman-frame-queues-rx = <0x52 1 0x53 1>;
			fsl,qman-frame-queues-tx = <0x72 1 0x73 1>;
		};

		ethernet@5 {
			compatible = "fsl,dpa-ethernet-init";
			fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
			fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
			fsl,qman-frame-queues-tx = <0x74 1 0x75 1>;
		};

		ethernet@9 {
			compatible = "fsl,dpa-ethernet-init";
			fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
			fsl,qman-frame-queues-rx = <0x56 1 0x57 1>;
			fsl,qman-frame-queues-tx = <0x76 1 0x77 1>;
		};

		dpa-fman0-oh@2 {
			compatible = "fsl,dpa-oh";
			/* Define frame queues for the OH port*/
			/* <OH Rx error, OH Rx default> */
			fsl,qman-frame-queues-oh = <0x60 1 0x61 1>;
			fsl,fman-oh-port = <&fman0_oh2>;
		};
	};

	pcie@3400000 {
		/delete-property/ iommu-map;
	};

	pcie@3500000 {
		/delete-property/ iommu-map;
	};

	pcie@3600000 {
		/delete-property/ iommu-map;
	};

	/delete-node/ iommu@9000000;
};
/ {
	reserved-memory {
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;
		/* For legacy usdpaa based use-cases, update the size and
		   alignment parameters. e.g. to allocate 256 MB memory:
		   size = <0 0x10000000>;
		   alignment = <0 0x10000000>;
		*/

		usdpaa_mem: usdpaa_mem {
			compatible = "fsl,usdpaa-mem";
			alloc-ranges = <0 0 0x10000 0>;
			size = <0 0x1000>;
			alignment = <0 0x1000>;
		};
	};
};

&fman0 {
	fman0_oh2: port@83000 {
		cell-index = <1>;
		compatible = "fsl,fman-port-oh";
		reg = <0x83000 0x1000>;
	};
};