提交 626e7ea0 编写于 作者: A Alexandre TORGUE

ARM: DT: stm32: move dma translation to board files

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: NBruno Herrera <bruherrera@gmail.com>
Signed-off-by: NAlexandre TORGUE <alexandre.torgue@st.com>
上级 f1134389
...@@ -66,6 +66,10 @@ ...@@ -66,6 +66,10 @@
serial0 = &usart1; serial0 = &usart1;
}; };
soc {
dma-ranges = <0xc0000000 0x0 0x10000000>;
};
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
green { green {
......
...@@ -59,8 +59,6 @@ ...@@ -59,8 +59,6 @@
}; };
soc { soc {
dma-ranges = <0xc0000000 0x0 0x10000000>;
timer2: timer@40000000 { timer2: timer@40000000 {
compatible = "st,stm32-timer"; compatible = "st,stm32-timer";
reg = <0x40000000 0x400>; reg = <0x40000000 0x400>;
...@@ -392,13 +390,11 @@ ...@@ -392,13 +390,11 @@
st,syscon = <&syscfg 0x4>; st,syscon = <&syscfg 0x4>;
snps,pbl = <8>; snps,pbl = <8>;
snps,mixed-burst; snps,mixed-burst;
dma-ranges;
status = "disabled"; status = "disabled";
}; };
usbotg_hs: usb@40040000 { usbotg_hs: usb@40040000 {
compatible = "snps,dwc2"; compatible = "snps,dwc2";
dma-ranges;
reg = <0x40040000 0x40000>; reg = <0x40040000 0x40000>;
interrupts = <77>; interrupts = <77>;
clocks = <&rcc 0 29>; clocks = <&rcc 0 29>;
......
...@@ -64,6 +64,10 @@ ...@@ -64,6 +64,10 @@
aliases { aliases {
serial0 = &usart3; serial0 = &usart3;
}; };
soc {
dma-ranges = <0xc0000000 0x0 0x10000000>;
};
}; };
&clk_hse { &clk_hse {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册