1 From 13fdde4dfdccd567ae459db6e439a53496732748 Mon Sep 17 00:00:00 2001
2 From: Pramod Kumar <pramod.kumar_1@nxp.com>
3 Date: Wed, 8 May 2019 18:25:16 +0530
4 Subject: [PATCH] sdk: arm64: dts: nxp: add DPAA1 SDK flavor dts files
6 dts fsl-ls1046a-frwy-sdk.dts which enables sdk specific entries
7 dts fsl-ls1046a-frwy-usdpaa.dts which enables dpdk
9 Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
10 Signed-off-by: Pramod Kumar <pramod.kumar_1@nxp.com>
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
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
31 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy-sdk.dts
33 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
35 + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
37 + * Copyright 2019 NXP.
41 +#include "fsl-ls1046a-frwy.dts"
42 +#include "qoriq-qman-portals-sdk.dtsi"
43 +#include "qoriq-bman-portals-sdk.dtsi"
46 + compatible = "fsl,bman-fbpr";
47 + alloc-ranges = <0 0 0x10000 0>;
50 + compatible = "fsl,qman-fqd";
51 + alloc-ranges = <0 0 0x10000 0>;
54 + compatible = "fsl,qman-pfdr";
55 + alloc-ranges = <0 0 0x10000 0>;
59 +#include "qoriq-dpaa-eth.dtsi"
60 +#include "qoriq-fman3-0-6oh.dtsi"
65 + status = "disabled";
68 + status = "disabled";
71 + status = "disabled";
74 + status = "disabled";
77 + compatible = "fsl,dpa-ethernet";
78 + fsl,fman-mac = <&enet7>;
84 + compatible = "fsl,fman", "simple-bus";
87 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy-usdpaa.dts
89 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
91 + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
93 + * Copyright 2019 NXP.
97 +#include "fsl-ls1046a-frwy-sdk.dts"
100 + bp7: buffer-pool@7 {
101 + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
103 + fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
104 + fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
107 + bp8: buffer-pool@8 {
108 + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
110 + fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
111 + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
114 + bp9: buffer-pool@9 {
115 + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
117 + fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
118 + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
122 + compatible = "fsl,ls1046a", "fsl,dpaa", "simple-bus";
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>;
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>;
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>;
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>;
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>;
163 + #address-cells = <2>;
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>;
172 + usdpaa_mem: usdpaa_mem {
173 + compatible = "fsl,usdpaa-mem";
174 + alloc-ranges = <0 0 0x10000 0>;
176 + alignment = <0 0x1000>;
182 + fman0_oh2: port@83000 {
184 + compatible = "fsl,fman-port-oh";
185 + reg = <0x83000 0x1000>;