ebcbf36e75bb1fe13cd48f0c38a0fb0c9d99f8d7
[openwrt/openwrt.git] /
1 From f656c67b9522f18e38394fe5b6e00302c0c8ceb8 Mon Sep 17 00:00:00 2001
2 From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
3 Date: Thu, 17 May 2018 11:40:07 +0300
4 Subject: [PATCH] arm64: dts: ls104x: add missing dma ranges property
5
6 These chips have a 48-bit address size so make sure that the dma-ranges
7 reflects this. Otherwise the linux kernel's dma sub-system will set
8 the default dma masks to full 64-bit, badly breaking dmas.
9
10 Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
11 ---
12 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 1 +
13 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 1 +
14 2 files changed, 2 insertions(+)
15
16 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
17 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
18 @@ -218,6 +218,7 @@
19 #address-cells = <2>;
20 #size-cells = <2>;
21 ranges;
22 + dma-ranges = <0x0 0x0 0x0 0x0 0x10000 0x00000000>;
23
24 clockgen: clocking@1ee1000 {
25 compatible = "fsl,ls1043a-clockgen";
26 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
27 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
28 @@ -190,6 +190,7 @@
29 #address-cells = <2>;
30 #size-cells = <2>;
31 ranges;
32 + dma-ranges = <0x0 0x0 0x0 0x0 0x10000 0x00000000>;
33
34 ddr: memory-controller@1080000 {
35 compatible = "fsl,qoriq-memory-controller";