From: Mathew McBride Date: Wed, 26 Sep 2018 12:21:22 +0000 (+0000) Subject: layerscape: fix Ethernet/DPAA/FMAN on Traverse boards after DTS refresh X-Git-Tag: v19.07.0-rc1~2462 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=33f47c28c6e881936f1b8dbd200b4b5724738bd0;p=oweals%2Fopenwrt.git layerscape: fix Ethernet/DPAA/FMAN on Traverse boards after DTS refresh Patch 303 is required for Traverse LS1043 targets when using the NXP DPAA1 driver. The recent refresh of 4.9 patches on layerscape changed how FMan/BMan memory regions were defined and meant Ethernet stopped working on these boards. (Note that these definitions are only required for NXP's Ethernet driver, the new upstream driver in >=4.15 works using the DTS provided in files/) Signed-off-by: Mathew McBride --- diff --git a/target/linux/layerscape/patches-4.9/303-dts-layerscape-add-traverse-ls1043.patch b/target/linux/layerscape/patches-4.9/303-dts-layerscape-add-traverse-ls1043.patch index c57fb0985b..6232e56782 100644 --- a/target/linux/layerscape/patches-4.9/303-dts-layerscape-add-traverse-ls1043.patch +++ b/target/linux/layerscape/patches-4.9/303-dts-layerscape-add-traverse-ls1043.patch @@ -25,7 +25,7 @@ Signed-off-by: Mathew McBride clean-files := *.dtb --- a/arch/arm64/boot/dts/freescale/traverse-ls1043s.dts +++ b/arch/arm64/boot/dts/freescale/traverse-ls1043s.dts -@@ -330,3 +330,29 @@ +@@ -330,3 +330,32 @@ &sata { status = "disabled"; }; @@ -34,6 +34,9 @@ Signed-off-by: Mathew McBride + * These kernels need additional setup for FMan/QMan DMA shared memory + */ + ++#include "qoriq-qman-portals-sdk.dtsi" ++#include "qoriq-bman-portals-sdk.dtsi" ++ +&bman_fbpr { + compatible = "fsl,bman-fbpr"; + alloc-ranges = <0 0 0x10000 0>; @@ -57,7 +60,7 @@ Signed-off-by: Mathew McBride +}; --- a/arch/arm64/boot/dts/freescale/traverse-ls1043v.dts +++ b/arch/arm64/boot/dts/freescale/traverse-ls1043v.dts -@@ -251,3 +251,29 @@ +@@ -251,3 +251,32 @@ &sata { status = "disabled"; }; @@ -66,6 +69,9 @@ Signed-off-by: Mathew McBride + * These kernels need additional setup for FMan/QMan DMA shared memory + */ + ++#include "qoriq-qman-portals-sdk.dtsi" ++#include "qoriq-bman-portals-sdk.dtsi" ++ +&bman_fbpr { + compatible = "fsl,bman-fbpr"; + alloc-ranges = <0 0 0x10000 0>;