]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: DT: stm32: move dma translation to board files
authorAlexandre TORGUE <alexandre.torgue@st.com>
Thu, 3 Nov 2016 14:16:38 +0000 (15:16 +0100)
committerAlexandre TORGUE <alexandre.torgue@st.com>
Fri, 4 Nov 2016 14:07:58 +0000 (15:07 +0100)
stm32f469-disco and stm32f429-eval boards use SDRAM start address remapping
(to @0) to boost performances. A DMA translation through "dma-ranges"
property was needed for other masters than the M4 CPU.
stm32f429-disco doesn't use remapping so doesn't need this DMA translation.
This patches moves this DMA translation definition from stm32f429 soc file
to board files.

Tested-by: Bruno Herrera <bruherrera@gmail.com>
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32429i-eval.dts
arch/arm/boot/dts/stm32f429.dtsi
arch/arm/boot/dts/stm32f469-disco.dts

index 0fd78e4e8a457fcf7413beda433f49fc19a11bb1..7d2f84df1a03f8d5dedd3e62d0df643f4e846ab7 100644 (file)
                serial0 = &usart1;
        };
 
+       soc {
+               dma-ranges = <0xc0000000 0x0 0x10000000>;
+       };
+
        leds {
                compatible = "gpio-leds";
                green {
index 1c54f9e68723ddede21feb70c621c98353d93b4a..8af8ac9d94e1edfefb9f2ad00c0a0b212ead7173 100644 (file)
@@ -59,8 +59,6 @@
        };
 
        soc {
-               dma-ranges = <0xc0000000 0x0 0x10000000>;
-
                timer2: timer@40000000 {
                        compatible = "st,stm32-timer";
                        reg = <0x40000000 0x400>;
                        st,syscon = <&syscfg 0x4>;
                        snps,pbl = <8>;
                        snps,mixed-burst;
-                       dma-ranges;
                        status = "disabled";
                };
 
                usbotg_hs: usb@40040000 {
                        compatible = "snps,dwc2";
-                       dma-ranges;
                        reg = <0x40040000 0x40000>;
                        interrupts = <77>;
                        clocks = <&rcc 0 29>;
index e911af8364714c58956426c11f3624672761b1cc..b766511357de1889198b1bdcf74402cd5da1f8b4 100644 (file)
        aliases {
                serial0 = &usart3;
        };
+
+       soc {
+               dma-ranges = <0xc0000000 0x0 0x10000000>;
+       };
 };
 
 &clk_hse {