]> Gentwo Git Trees - linux/.git/commitdiff
arm64: dts: renesas: r8a77990: Enable I2C DMA
authorTakeshi Kihara <takeshi.kihara.df@renesas.com>
Sat, 20 Oct 2018 21:35:26 +0000 (06:35 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 26 Nov 2018 08:11:34 +0000 (09:11 +0100)
This patch enables I2C DMA.

NOTE: I2C7 DMA is not supported by R-Car Gen3 Hardware User's Manual
Rev.0.80E.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a77990.dtsi

index 3b334be843f431d6d4b005fa0a712f31b9d6053e..de25eda4f2f454453af77adacae23ae8ab5fa0d5 100644 (file)
@@ -250,6 +250,9 @@ i2c0: i2c@e6500000 {
                        clocks = <&cpg CPG_MOD 931>;
                        power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
                        resets = <&cpg 931>;
+                       dmas = <&dmac1 0x91>, <&dmac1 0x90>,
+                              <&dmac2 0x91>, <&dmac2 0x90>;
+                       dma-names = "tx", "rx", "tx", "rx";
                        i2c-scl-internal-delay-ns = <110>;
                        status = "disabled";
                };
@@ -264,6 +267,9 @@ i2c1: i2c@e6508000 {
                        clocks = <&cpg CPG_MOD 930>;
                        power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
                        resets = <&cpg 930>;
+                       dmas = <&dmac1 0x93>, <&dmac1 0x92>,
+                              <&dmac2 0x93>, <&dmac2 0x92>;
+                       dma-names = "tx", "rx", "tx", "rx";
                        i2c-scl-internal-delay-ns = <6>;
                        status = "disabled";
                };
@@ -278,6 +284,9 @@ i2c2: i2c@e6510000 {
                        clocks = <&cpg CPG_MOD 929>;
                        power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
                        resets = <&cpg 929>;
+                       dmas = <&dmac1 0x95>, <&dmac1 0x94>,
+                              <&dmac2 0x95>, <&dmac2 0x94>;
+                       dma-names = "tx", "rx", "tx", "rx";
                        i2c-scl-internal-delay-ns = <6>;
                        status = "disabled";
                };
@@ -292,6 +301,8 @@ i2c3: i2c@e66d0000 {
                        clocks = <&cpg CPG_MOD 928>;
                        power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
                        resets = <&cpg 928>;
+                       dmas = <&dmac0 0x97>, <&dmac0 0x96>;
+                       dma-names = "tx", "rx";
                        i2c-scl-internal-delay-ns = <110>;
                        status = "disabled";
                };
@@ -306,6 +317,8 @@ i2c4: i2c@e66d8000 {
                        clocks = <&cpg CPG_MOD 927>;
                        power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
                        resets = <&cpg 927>;
+                       dmas = <&dmac0 0x99>, <&dmac0 0x98>;
+                       dma-names = "tx", "rx";
                        i2c-scl-internal-delay-ns = <6>;
                        status = "disabled";
                };
@@ -320,6 +333,8 @@ i2c5: i2c@e66e0000 {
                        clocks = <&cpg CPG_MOD 919>;
                        power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
                        resets = <&cpg 919>;
+                       dmas = <&dmac0 0x9b>, <&dmac0 0x9a>;
+                       dma-names = "tx", "rx";
                        i2c-scl-internal-delay-ns = <6>;
                        status = "disabled";
                };
@@ -334,6 +349,8 @@ i2c6: i2c@e66e8000 {
                        clocks = <&cpg CPG_MOD 918>;
                        power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
                        resets = <&cpg 918>;
+                       dmas = <&dmac0 0x9d>, <&dmac0 0x9c>;
+                       dma-names = "tx", "rx";
                        i2c-scl-internal-delay-ns = <6>;
                        status = "disabled";
                };