@@ -112,6 +112,26 @@
0 149 0x4>;
};
+ dma0: shdma@fe008020 {
+ compatible = "renesas,shdma";
+ reg = <0xfe008020 0x270
+ 0xfe009000 0xc>;
+ interrupt-parent = <&gic>;
+ interrupts = <0 34 4
+ 0 28 4
+ 0 29 4
+ 0 30 4
+ 0 31 4
+ 0 32 4
+ 0 33 4>;
+ interrupt-names = "error",
+ "ch0", "ch1", "ch2", "ch3",
+ "ch4", "ch5";
+ #dma-cells = <1>;
+ dma-channels = <6>;
+ dma-requests = <256>;
+ };
+
i2c0: i2c@fff20000 {
#address-cells = <1>;
#size-cells = <0>;
@@ -997,6 +997,8 @@ void __init r8a7740_add_early_devices(void)
#ifdef CONFIG_USE_OF
static const struct of_dev_auxdata r8a7740_auxdata_lookup[] __initconst = {
+ OF_DEV_AUXDATA("renesas,shdma", 0xfe008020, "sh-dma-engine.0",
+ &r8a7740_dma_platform_data),
{ }
};
This patch adds Device Tree support for the first (#0) DMA controller instance on r8a7740. We want to add further DMA controller DT nodes in a DMA multiplexer node, which isn't implemented yet. Further DMAC instances will be added after the DMA multiplexer support is done. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> --- arch/arm/boot/dts/r8a7740.dtsi | 20 ++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7740.c | 2 ++ 2 files changed, 22 insertions(+), 0 deletions(-)