aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/stih407-family.dtsi
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2016-04-21 17:07:00 +0200
committerMaxime Coquelin <maxime.coquelin@st.com>2016-04-26 16:10:28 +0200
commitfe135c636a5e3c2eb2856366ad3e54849bf06e64 (patch)
tree7469aabb19a16c835880471d0d0b55ceb047001d /arch/arm/boot/dts/stih407-family.dtsi
parentARM: dts: STiH407: Add nodes for RemoteProc (diff)
downloadlinux-dev-fe135c636a5e3c2eb2856366ad3e54849bf06e64.tar.xz
linux-dev-fe135c636a5e3c2eb2856366ad3e54849bf06e64.zip
ARM: dts: STiH407: Move over to using the 'reserved-memory' API for obtaining DMA memory
Doing so saves quite a bit of code in the driver. For more information on the 'reserved-memory' bindings see: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Suggested-by: Suman Anna <s-anna@ti.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
Diffstat (limited to 'arch/arm/boot/dts/stih407-family.dtsi')
-rw-r--r--arch/arm/boot/dts/stih407-family.dtsi47
1 files changed, 39 insertions, 8 deletions
diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
index 7cd358b4ec68..33de73616d39 100644
--- a/arch/arm/boot/dts/stih407-family.dtsi
+++ b/arch/arm/boot/dts/stih407-family.dtsi
@@ -15,6 +15,36 @@
#address-cells = <1>;
#size-cells = <1>;
+ reserved-memory {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ gp0_reserved: rproc@40000000 {
+ compatible = "shared-dma-pool";
+ reg = <0x40000000 0x01000000>;
+ no-map;
+ };
+
+ gp1_reserved: rproc@41000000 {
+ compatible = "shared-dma-pool";
+ reg = <0x41000000 0x01000000>;
+ no-map;
+ };
+
+ audio_reserved: rproc@42000000 {
+ compatible = "shared-dma-pool";
+ reg = <0x42000000 0x01000000>;
+ no-map;
+ };
+
+ dmu_reserved: rproc@43000000 {
+ compatible = "shared-dma-pool";
+ reg = <0x43000000 0x01000000>;
+ no-map;
+ };
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -748,9 +778,9 @@
status = "okay";
};
- st231_gp0: remote-processor@40000000 {
+ st231_gp0: remote-processor {
compatible = "st,st231-rproc";
- reg = <0x40000000 0x01000000>;
+ memory-region = <&gp0_reserved>;
resets = <&softreset STIH407_ST231_GP0_SOFTRESET>;
reset-names = "sw_reset";
clocks = <&clk_s_c0_flexgen CLK_ST231_GP_0>;
@@ -758,9 +788,10 @@
st,syscfg = <&syscfg_core 0x22c>;
};
- st231_gp1: remote-processor@41000000 {
+
+ st231_gp1: remote-processor {
compatible = "st,st231-rproc";
- reg = <0x41000000 0x01000000>;
+ memory-region = <&gp1_reserved>;
resets = <&softreset STIH407_ST231_GP1_SOFTRESET>;
reset-names = "sw_reset";
clocks = <&clk_s_c0_flexgen CLK_ST231_GP_1>;
@@ -768,9 +799,9 @@
st,syscfg = <&syscfg_core 0x220>;
};
- st231_audio: remote-processor@42000000 {
+ st231_audio: remote-processor {
compatible = "st,st231-rproc";
- reg = <0x42000000 0x01000000>;
+ memory-region = <&audio_reserved>;
resets = <&softreset STIH407_ST231_AUD_SOFTRESET>;
reset-names = "sw_reset";
clocks = <&clk_s_c0_flexgen CLK_ST231_AUD_0>;
@@ -778,9 +809,9 @@
st,syscfg = <&syscfg_core 0x228>;
};
- st231_dmu: remote-processor@43000000 {
+ st231_dmu: remote-processor {
compatible = "st,st231-rproc";
- reg = <0x43000000 0x01000000>;
+ memory-region = <&dmu_reserved>;
resets = <&softreset STIH407_ST231_DMU_SOFTRESET>;
reset-names = "sw_reset";
clocks = <&clk_s_c0_flexgen CLK_ST231_DMU>;