1 From 6795bab4281aa9ed8e0ba3fbba06de8dd369b17c Mon Sep 17 00:00:00 2001
2 From: Ran Wang <ran.wang_1@nxp.com>
3 Date: Thu, 21 Feb 2019 13:32:59 +0800
4 Subject: [PATCH] sdk: dts: ls104x move dma-coherent from soc to its child
7 Since SMMU is not supported for SDK version, USB function will down if
8 still apply property 'dma-coherent' in scope of soc (USB driver is not
9 ready to support it alone) in SDK device trees, decide to remove it.
10 And add dma-coherent on other non-USB child nodes under soc.
12 dma-coherent feature in dts node will cause issue that
13 QE-HDLC received too little, when a lot of data is transmitted while
14 just little data received, the Tx buffer will run out.
16 Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
17 Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
19 .../boot/dts/freescale/fsl-ls1043a-qds-sdk.dts | 184 ++++++++++++++++++++-
20 .../boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts | 177 ++++++++++++++++++++
21 .../boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts | 4 +
22 .../boot/dts/freescale/fsl-ls1046a-qds-sdk.dts | 175 ++++++++++++++++++++
23 .../boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts | 178 ++++++++++++++++++++
24 .../boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts | 4 +
25 6 files changed, 719 insertions(+), 3 deletions(-)
27 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
28 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
33 +/delete-property/ dma-coherent;
35 #include "qoriq-dpaa-eth.dtsi"
36 #include "qoriq-fman3-0-6oh.dtsi"
39 - /delete-property/ iommu-map;
40 + /delete-property/ iommu-map;
45 - /delete-property/ iommu-map;
46 + /delete-property/ iommu-map;
51 - /delete-property/ iommu-map;
52 + /delete-property/ iommu-map;
56 /delete-node/ iommu@9000000;
57 @@ -82,4 +87,177 @@ pcie@3600000 {
60 compatible = "fsl,fman", "simple-bus";
235 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
236 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
241 +/delete-property/ dma-coherent;
243 #include "qoriq-dpaa-eth.dtsi"
244 #include "qoriq-fman3-0-6oh.dtsi"
247 /delete-property/ iommu-map;
252 /delete-property/ iommu-map;
257 /delete-property/ iommu-map;
261 /delete-node/ iommu@9000000;
262 @@ -83,3 +88,175 @@ pcie@3600000 {
264 compatible = "fsl,fman", "simple-bus";
438 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
439 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
442 fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
443 fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
450 fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
451 fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
458 fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
459 fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
464 compatible = "fsl,ls1043a", "fsl,dpaa", "simple-bus";
468 compatible = "fsl,dpa-ethernet-init";
469 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
470 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
475 +/delete-property/ dma-coherent;
477 #include "qoriq-dpaa-eth.dtsi"
478 #include "qoriq-fman3-0-6oh.dtsi"
480 @@ -90,4 +92,177 @@ pcie@3600000 {
483 compatible = "fsl,fman", "simple-bus";
658 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
659 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
664 +/delete-property/ dma-coherent;
666 #include "qoriq-dpaa-eth.dtsi"
667 #include "qoriq-fman3-0-6oh.dtsi"
669 @@ -127,3 +129,179 @@ pcie@3600000 {
670 * phy-handle = <&pcsphy7>;
849 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
850 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
853 fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
854 fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
861 fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
862 fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
869 fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
870 fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
875 compatible = "fsl,ls1046a", "fsl,dpaa", "simple-bus";
879 compatible = "fsl,dpa-ethernet-init";