summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa-shared.dts
diff options
context:
space:
mode:
authorNipun Gupta <nipun.gupta@nxp.com>2020-10-21 14:28:01 +0530
committerDong Aisheng <aisheng.dong@nxp.com>2021-11-02 16:53:25 +0800
commit71e546a7873e325ff2103074f55dec59fb48fbd1 (patch)
treec1f061696426692c2d580e23d81c22d95def5343 /arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa-shared.dts
parent3937268b52cef59ea595d6e873d1f2a6f5912c5a (diff)
sdk: arm64: dts: add dts file to configure shared eth devices
This dts enables sharing of ethernet device between kenrel and user-space (DPDK). Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa-shared.dts')
-rw-r--r--arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa-shared.dts180
1 files changed, 180 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa-shared.dts b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa-shared.dts
new file mode 100644
index 000000000000..6917578c4eb9
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa-shared.dts
@@ -0,0 +1,180 @@
+/*
+ * Device Tree file to support Shared Mac interface for 1046A family SoC.
+ *
+ * Copyright 2020 NXP
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#include "fsl-ls1046a-rdb-sdk.dts"
+
+&bportals {
+ bman-bpids@0 {
+ compatible = "fsl,bpid-range";
+ fsl,bpid-range = <16 48>;
+ };
+};
+
+&soc {
+ bp7: buffer-pool@7 {
+ compatible = "fsl,ls1046a-bpool", "fsl,bpool";
+ fsl,bpid = <7>;
+ fsl,bpool-ethernet-cfg = <0 16 0 1728 0 0>;
+ fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
+ };
+
+ bp8: buffer-pool@8 {
+ compatible = "fsl,ls1046a-bpool", "fsl,bpool";
+ fsl,bpid = <8>;
+ fsl,bpool-ethernet-cfg = <0 16 0 1728 0 0>;
+ fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
+ };
+
+ bp9: buffer-pool@9 {
+ compatible = "fsl,ls1046a-bpool", "fsl,bpool";
+ fsl,bpid = <9>;
+ fsl,bpool-ethernet-cfg = <0 16 0 1728 0 0>;
+ fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
+ };
+
+ fsl,dpaa {
+ compatible = "fsl,ls1046a", "fsl,dpaa", "simple-bus";
+
+ ethernet@2 {
+ 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 0x80 1>;
+ };
+
+ ethernet@3 {
+ 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 0x81 1>;
+ };
+
+ ethernet@4 {
+ fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
+ fsl,qman-frame-queues-rx = <0x58 1 0x59 1>;
+ fsl,qman-frame-queues-tx = <0x78 1 0x79 1 0x82 1>;
+ };
+
+ ethernet@5 {
+ fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
+ fsl,qman-frame-queues-rx = <0x5a 1 0x5b 1>;
+ fsl,qman-frame-queues-tx = <0x7a 1 0x7b 1 0x83 1>;
+ };
+
+ ethernet@8 {
+ fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
+ fsl,qman-frame-queues-rx = <0x5c 1 0x5d 1>;
+ fsl,qman-frame-queues-tx = <0x7c 1 0x7d 1 0x84 1>;
+ };
+
+ ethernet@9 {
+ fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
+ fsl,qman-frame-queues-rx = <0x5e 1 0x5f 1>;
+ fsl,qman-frame-queues-tx = <0x7e 1 0x7f 1 0x85 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>;
+ };
+ };
+};
+/ {
+ chosen {
+ name = "chosen";
+ dpaa-extended-args {
+ fman0-extd-args {
+
+ cell-index = <0>;
+ compatible = "fsl,fman-extended-args";
+ dma-aid-mode = "port";
+
+ fman0_rx2-extd-args {
+ cell-index = <2>;
+ compatible = "fsl,fman-port-1g-rx-extended-args";
+ /* Define Virtual storage profile */
+ /* <number of profiles, default profile id> */
+ vsp-window = <2 0>;
+ };
+ fman0_rx3-extd-args {
+ cell-index = <3>;
+ compatible = "fsl,fman-port-1g-rx-extended-args";
+ /* Define Virtual storage profile */
+ /* <number of profiles, default profile id> */
+ vsp-window = <2 0>;
+ };
+ fman0_rx4-extd-args {
+ cell-index = <4>;
+ compatible = "fsl,fman-port-1g-rx-extended-args";
+ /* Define Virtual storage profile */
+ /* <number of profiles, default profile id> */
+ vsp-window = <2 0>;
+ };
+ fman0_rx5-extd-args {
+ cell-index = <5>;
+ compatible = "fsl,fman-port-1g-rx-extended-args";
+ /* Define Virtual storage profile */
+ /* <number of profiles, default profile id> */
+ vsp-window = <2 0>;
+ };
+ fman0_rx6-extd-args {
+ cell-index = <6>;
+ compatible = "fsl,fman-port-1g-rx-extended-args";
+ /* Define Virtual storage profile */
+ /* <number of profiles, default profile id> */
+ vsp-window = <2 0>;
+ };
+ fman0_rx7-extd-args {
+ cell-index = <7>;
+ compatible = "fsl,fman-port-1g-rx-extended-args";
+ /* Define Virtual storage profile */
+ /* <number of profiles, default profile id> */
+ vsp-window = <2 0>;
+ };
+ fman0_rxt0-extd-args {
+ cell-index = <0>;
+ compatible = "fsl,fman-port-10g-rx-extended-args";
+ /* Define Virtual storage profile */
+ /* <number of profiles, default profile id> */
+ vsp-window = <2 0>;
+ };
+ fman0_rxt1-extd-args {
+ cell-index = <1>;
+ compatible = "fsl,fman-port-10g-rx-extended-args";
+ /* Define Virtual storage profile */
+ /* <number of profiles, default profile id> */
+ vsp-window = <2 0>;
+ };
+ };
+ };
+ };
+
+ reserved-memory {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ usdpaa_mem: usdpaa_mem {
+ compatible = "fsl,usdpaa-mem";
+ alloc-ranges = <0 0 0x10000 0>;
+ size = <0 0x10000000>;
+ alignment = <0 0x10000000>;
+ };
+ };
+};
+
+&fman0 {
+ fman0_oh2: port@83000 {
+ cell-index = <1>;
+ compatible = "fsl,fman-port-oh";
+ reg = <0x83000 0x1000>;
+ };
+};