blob: 1e1b805ffbc7236a2eb45042a688fb13c608992b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 13fdde4dfdccd567ae459db6e439a53496732748 Mon Sep 17 00:00:00 2001
2From: Pramod Kumar <pramod.kumar_1@nxp.com>
3Date: Wed, 8 May 2019 18:25:16 +0530
4Subject: [PATCH] sdk: arm64: dts: nxp: add DPAA1 SDK flavor dts files
5
6dts fsl-ls1046a-frwy-sdk.dts which enables sdk specific entries
7dts fsl-ls1046a-frwy-usdpaa.dts which enables dpdk
8
9Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
10Signed-off-by: Pramod Kumar <pramod.kumar_1@nxp.com>
11---
12 arch/arm64/boot/dts/freescale/Makefile | 2 +
13 .../boot/dts/freescale/fsl-ls1046a-frwy-sdk.dts | 53 ++++++++++++
14 .../boot/dts/freescale/fsl-ls1046a-frwy-usdpaa.dts | 99 ++++++++++++++++++++++
15 3 files changed, 154 insertions(+)
16 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy-sdk.dts
17 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy-usdpaa.dts
18
19--- a/arch/arm64/boot/dts/freescale/Makefile
20+++ b/arch/arm64/boot/dts/freescale/Makefile
21@@ -13,6 +13,8 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1
22 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb-sdk.dtb
23 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb-usdpaa.dtb
24 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-frwy.dtb
25+dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-frwy-sdk.dtb
26+dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-frwy-usdpaa.dtb
27 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds.dtb
28 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds-sdk.dtb
29 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb.dtb
30--- /dev/null
31+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy-sdk.dts
32@@ -0,0 +1,53 @@
33+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
34+/*
35+ * Device Tree Include file for Freescale Layerscape-1046A family SoC.
36+ *
37+ * Copyright 2019 NXP.
38+ *
39+ */
40+
41+#include "fsl-ls1046a-frwy.dts"
42+#include "qoriq-qman-portals-sdk.dtsi"
43+#include "qoriq-bman-portals-sdk.dtsi"
44+
45+&bman_fbpr {
46+ compatible = "fsl,bman-fbpr";
47+ alloc-ranges = <0 0 0x10000 0>;
48+};
49+&qman_fqd {
50+ compatible = "fsl,qman-fqd";
51+ alloc-ranges = <0 0 0x10000 0>;
52+};
53+&qman_pfdr {
54+ compatible = "fsl,qman-pfdr";
55+ alloc-ranges = <0 0 0x10000 0>;
56+};
57+
58+&soc {
59+#include "qoriq-dpaa-eth.dtsi"
60+#include "qoriq-fman3-0-6oh.dtsi"
61+};
62+
63+&fsldpaa {
64+ ethernet@1 {
65+ status = "disabled";
66+ };
67+ ethernet@2 {
68+ status = "disabled";
69+ };
70+ ethernet@3 {
71+ status = "disabled";
72+ };
73+ ethernet@6 {
74+ status = "disabled";
75+ };
76+ ethernet@9 {
77+ compatible = "fsl,dpa-ethernet";
78+ fsl,fman-mac = <&enet7>;
79+ dma-coherent;
80+ };
81+};
82+
83+&fman0 {
84+ compatible = "fsl,fman", "simple-bus";
85+};
86--- /dev/null
87+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy-usdpaa.dts
88@@ -0,0 +1,99 @@
89+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
90+/*
91+ * Device Tree Include file for Freescale Layerscape-1046A family SoC.
92+ *
93+ * Copyright 2019 NXP.
94+ *
95+ */
96+
97+#include "fsl-ls1046a-frwy-sdk.dts"
98+
99+&soc {
100+ bp7: buffer-pool@7 {
101+ compatible = "fsl,ls1046a-bpool", "fsl,bpool";
102+ fsl,bpid = <7>;
103+ fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
104+ fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
105+ };
106+
107+ bp8: buffer-pool@8 {
108+ compatible = "fsl,ls1046a-bpool", "fsl,bpool";
109+ fsl,bpid = <8>;
110+ fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
111+ fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
112+ };
113+
114+ bp9: buffer-pool@9 {
115+ compatible = "fsl,ls1046a-bpool", "fsl,bpool";
116+ fsl,bpid = <9>;
117+ fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
118+ fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
119+ };
120+
121+ fsl,dpaa {
122+ compatible = "fsl,ls1046a", "fsl,dpaa", "simple-bus";
123+
124+ ethernet@0 {
125+ compatible = "fsl,dpa-ethernet-init";
126+ fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
127+ fsl,qman-frame-queues-rx = <0x50 1 0x51 1>;
128+ fsl,qman-frame-queues-tx = <0x70 1 0x71 1>;
129+ };
130+
131+ ethernet@4 {
132+ compatible = "fsl,dpa-ethernet-init";
133+ fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
134+ fsl,qman-frame-queues-rx = <0x52 1 0x53 1>;
135+ fsl,qman-frame-queues-tx = <0x72 1 0x73 1>;
136+ };
137+
138+ ethernet@5 {
139+ compatible = "fsl,dpa-ethernet-init";
140+ fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
141+ fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
142+ fsl,qman-frame-queues-tx = <0x74 1 0x75 1>;
143+ };
144+
145+ ethernet@9 {
146+ compatible = "fsl,dpa-ethernet-init";
147+ fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
148+ fsl,qman-frame-queues-rx = <0x56 1 0x57 1>;
149+ fsl,qman-frame-queues-tx = <0x76 1 0x77 1>;
150+ };
151+
152+ dpa-fman0-oh@2 {
153+ compatible = "fsl,dpa-oh";
154+ /* Define frame queues for the OH port*/
155+ /* <OH Rx error, OH Rx default> */
156+ fsl,qman-frame-queues-oh = <0x60 1 0x61 1>;
157+ fsl,fman-oh-port = <&fman0_oh2>;
158+ };
159+ };
160+};
161+/ {
162+ reserved-memory {
163+ #address-cells = <2>;
164+ #size-cells = <2>;
165+ ranges;
166+ /* For legacy usdpaa based use-cases, update the size and
167+ alignment parameters. e.g. to allocate 256 MB memory:
168+ size = <0 0x10000000>;
169+ alignment = <0 0x10000000>;
170+ */
171+
172+ usdpaa_mem: usdpaa_mem {
173+ compatible = "fsl,usdpaa-mem";
174+ alloc-ranges = <0 0 0x10000 0>;
175+ size = <0 0x1000>;
176+ alignment = <0 0x1000>;
177+ };
178+ };
179+};
180+
181+&fman0 {
182+ fman0_oh2: port@83000 {
183+ cell-index = <1>;
184+ compatible = "fsl,fman-port-oh";
185+ reg = <0x83000 0x1000>;
186+ };
187+};