f8a75d8f8474debe06062debf4ebf4b0244ece91
[openwrt/staging/pepe2k.git] /
1 From 97b563d9c0cf09897c1e7b793ef0fe677c66269a Mon Sep 17 00:00:00 2001
2 From: Nipun Gupta <nipun.gupta@nxp.com>
3 Date: Wed, 30 Jan 2019 19:18:13 +0530
4 Subject: [PATCH] sdk: arm64: dts: reduce usdpaa memory to 4K for LS1046/43
5
6 This patch reducing the USDPAA reseved memory to 4K.
7 In case USDPAA is to be used, 256MB needs to be reserved in the DTS file.
8
9 Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
10 ---
11 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts | 9 +++++++--
12 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts | 9 +++++++--
13 2 files changed, 14 insertions(+), 4 deletions(-)
14
15 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
16 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
17 @@ -113,11 +113,16 @@
18 #size-cells = <2>;
19 ranges;
20
21 + /* For legacy usdpaa based use-cases, update the size and
22 + alignment parameters. e.g. to allocate 256 MB memory:
23 + size = <0 0x10000000>;
24 + alignment = <0 0x10000000>;
25 + */
26 usdpaa_mem: usdpaa_mem {
27 compatible = "fsl,usdpaa-mem";
28 alloc-ranges = <0 0 0x10000 0>;
29 - size = <0 0x10000000>;
30 - alignment = <0 0x10000000>;
31 + size = <0 0x1000>;
32 + alignment = <0 0x1000>;
33 };
34 };
35 };
36 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
37 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
38 @@ -106,11 +106,16 @@
39 #size-cells = <2>;
40 ranges;
41
42 + /* For legacy usdpaa based use-cases, update the size and
43 + alignment parameters. e.g. to allocate 256 MB memory:
44 + size = <0 0x10000000>;
45 + alignment = <0 0x10000000>;
46 + */
47 usdpaa_mem: usdpaa_mem {
48 compatible = "fsl,usdpaa-mem";
49 alloc-ranges = <0 0 0x10000 0>;
50 - size = <0 0x10000000>;
51 - alignment = <0 0x10000000>;
52 + size = <0 0x1000>;
53 + alignment = <0 0x1000>;
54 };
55 };
56 };