layerscape: add Traverse LS1043-S support
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.9 / 304-dts-layerscape-add-traverse-ls1043.patch
1 From c0612164b379ebc8964da6bc6f6ced9736dce488 Mon Sep 17 00:00:00 2001
2 From: Mathew McBride <matt@traverse.com.au>
3 Date: Tue, 17 Apr 2018 10:01:03 +1000
4 Subject: [PATCH] add DTS for Traverse LS1043 Boards
5
6 Signed-off-by: Mathew McBride <matt@traverse.com.au>
7 ---
8 arch/arm64/boot/dts/freescale/Makefile | 5 ++++-
9 1 file changed, 4 insertions(+), 1 deletion(-)
10 create mode 100644 arch/arm64/boot/dts/freescale/traverse-ls1043v.dts
11
12 --- a/arch/arm64/boot/dts/freescale/Makefile
13 +++ b/arch/arm64/boot/dts/freescale/Makefile
14 @@ -20,7 +20,10 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2
15 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb
16 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-qds.dtb
17 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb
18 -
19 +
20 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += traverse-ls1043v.dtb
21 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += traverse-ls1043s.dtb
22 +
23 always := $(dtb-y)
24 subdir-y := $(dts-dirs)
25 clean-files := *.dtb
26 --- a/arch/arm64/boot/dts/freescale/traverse-ls1043s.dts
27 +++ b/arch/arm64/boot/dts/freescale/traverse-ls1043s.dts
28 @@ -337,3 +337,29 @@
29 &sata {
30 status = "disabled";
31 };
32 +
33 +/* Additions for Layerscape SDK (4.4/4.9) Kernel only
34 + * These kernels need additional setup for FMan/QMan DMA shared memory
35 + */
36 +
37 +&bman_fbpr {
38 + compatible = "fsl,bman-fbpr";
39 + alloc-ranges = <0 0 0x10000 0>;
40 +};
41 +&qman_fqd {
42 + compatible = "fsl,qman-fqd";
43 + alloc-ranges = <0 0 0x10000 0>;
44 +};
45 +&qman_pfdr {
46 + compatible = "fsl,qman-pfdr";
47 + alloc-ranges = <0 0 0x10000 0>;
48 +};
49 +
50 +&soc {
51 +#include "qoriq-dpaa-eth.dtsi"
52 +#include "qoriq-fman3-0-6oh.dtsi"
53 +};
54 +
55 +&fman0 {
56 + compatible = "fsl,fman", "simple-bus";
57 +};
58 --- a/arch/arm64/boot/dts/freescale/traverse-ls1043v.dts
59 +++ b/arch/arm64/boot/dts/freescale/traverse-ls1043v.dts
60 @@ -313,3 +313,29 @@
61 &sata {
62 status = "disabled";
63 };
64 +
65 +/* Additions for Layerscape SDK (4.4/4.9) Kernel only
66 + * These kernels need additional setup for FMan/QMan DMA shared memory
67 + */
68 +
69 +&bman_fbpr {
70 + compatible = "fsl,bman-fbpr";
71 + alloc-ranges = <0 0 0x10000 0>;
72 +};
73 +&qman_fqd {
74 + compatible = "fsl,qman-fqd";
75 + alloc-ranges = <0 0 0x10000 0>;
76 +};
77 +&qman_pfdr {
78 + compatible = "fsl,qman-pfdr";
79 + alloc-ranges = <0 0 0x10000 0>;
80 +};
81 +
82 +&soc {
83 +#include "qoriq-dpaa-eth.dtsi"
84 +#include "qoriq-fman3-0-6oh.dtsi"
85 +};
86 +
87 +&fman0 {
88 + compatible = "fsl,fman", "simple-bus";
89 +};