diff options
53 files changed, 2108 insertions, 967 deletions
diff --git a/Documentation/devicetree/bindings/dma/jz4780-dma.txt b/Documentation/devicetree/bindings/dma/jz4780-dma.txt index 03e9cf7b42e0..636fcb26b164 100644 --- a/Documentation/devicetree/bindings/dma/jz4780-dma.txt +++ b/Documentation/devicetree/bindings/dma/jz4780-dma.txt | |||
| @@ -2,8 +2,13 @@ | |||
| 2 | 2 | ||
| 3 | Required properties: | 3 | Required properties: |
| 4 | 4 | ||
| 5 | - compatible: Should be "ingenic,jz4780-dma" | 5 | - compatible: Should be one of: |
| 6 | - reg: Should contain the DMA controller registers location and length. | 6 | * ingenic,jz4740-dma |
| 7 | * ingenic,jz4725b-dma | ||
| 8 | * ingenic,jz4770-dma | ||
| 9 | * ingenic,jz4780-dma | ||
| 10 | - reg: Should contain the DMA channel registers location and length, followed | ||
| 11 | by the DMA controller registers location and length. | ||
| 7 | - interrupts: Should contain the interrupt specifier of the DMA controller. | 12 | - interrupts: Should contain the interrupt specifier of the DMA controller. |
| 8 | - clocks: Should contain a clock specifier for the JZ4780 PDMA clock. | 13 | - clocks: Should contain a clock specifier for the JZ4780 PDMA clock. |
| 9 | - #dma-cells: Must be <2>. Number of integer cells in the dmas property of | 14 | - #dma-cells: Must be <2>. Number of integer cells in the dmas property of |
| @@ -19,9 +24,10 @@ Optional properties: | |||
| 19 | 24 | ||
| 20 | Example: | 25 | Example: |
| 21 | 26 | ||
| 22 | dma: dma@13420000 { | 27 | dma: dma-controller@13420000 { |
| 23 | compatible = "ingenic,jz4780-dma"; | 28 | compatible = "ingenic,jz4780-dma"; |
| 24 | reg = <0x13420000 0x10000>; | 29 | reg = <0x13420000 0x400 |
| 30 | 0x13421000 0x40>; | ||
| 25 | 31 | ||
| 26 | interrupt-parent = <&intc>; | 32 | interrupt-parent = <&intc>; |
| 27 | interrupts = <10>; | 33 | interrupts = <10>; |
diff --git a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt index 946229c48657..a5a7c3f5a1e3 100644 --- a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt | |||
| @@ -17,6 +17,7 @@ Required Properties: | |||
| 17 | - compatible: "renesas,dmac-<soctype>", "renesas,rcar-dmac" as fallback. | 17 | - compatible: "renesas,dmac-<soctype>", "renesas,rcar-dmac" as fallback. |
| 18 | Examples with soctypes are: | 18 | Examples with soctypes are: |
| 19 | - "renesas,dmac-r8a7743" (RZ/G1M) | 19 | - "renesas,dmac-r8a7743" (RZ/G1M) |
| 20 | - "renesas,dmac-r8a7744" (RZ/G1N) | ||
| 20 | - "renesas,dmac-r8a7745" (RZ/G1E) | 21 | - "renesas,dmac-r8a7745" (RZ/G1E) |
| 21 | - "renesas,dmac-r8a77470" (RZ/G1C) | 22 | - "renesas,dmac-r8a77470" (RZ/G1C) |
| 22 | - "renesas,dmac-r8a7790" (R-Car H2) | 23 | - "renesas,dmac-r8a7790" (R-Car H2) |
diff --git a/Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt b/Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt index 482e54362d3e..1743017bd948 100644 --- a/Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt +++ b/Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt | |||
| @@ -4,6 +4,7 @@ Required Properties: | |||
| 4 | -compatible: "renesas,<soctype>-usb-dmac", "renesas,usb-dmac" as fallback. | 4 | -compatible: "renesas,<soctype>-usb-dmac", "renesas,usb-dmac" as fallback. |
| 5 | Examples with soctypes are: | 5 | Examples with soctypes are: |
| 6 | - "renesas,r8a7743-usb-dmac" (RZ/G1M) | 6 | - "renesas,r8a7743-usb-dmac" (RZ/G1M) |
| 7 | - "renesas,r8a7744-usb-dmac" (RZ/G1N) | ||
| 7 | - "renesas,r8a7745-usb-dmac" (RZ/G1E) | 8 | - "renesas,r8a7745-usb-dmac" (RZ/G1E) |
| 8 | - "renesas,r8a7790-usb-dmac" (R-Car H2) | 9 | - "renesas,r8a7790-usb-dmac" (R-Car H2) |
| 9 | - "renesas,r8a7791-usb-dmac" (R-Car M2-W) | 10 | - "renesas,r8a7791-usb-dmac" (R-Car M2-W) |
diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi b/arch/mips/boot/dts/ingenic/jz4740.dtsi index 26c6b561d6f7..6fb16fd24035 100644 --- a/arch/mips/boot/dts/ingenic/jz4740.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi | |||
| @@ -154,6 +154,21 @@ | |||
| 154 | clock-names = "baud", "module"; | 154 | clock-names = "baud", "module"; |
| 155 | }; | 155 | }; |
| 156 | 156 | ||
| 157 | dmac: dma-controller@13020000 { | ||
| 158 | compatible = "ingenic,jz4740-dma"; | ||
| 159 | reg = <0x13020000 0xbc | ||
| 160 | 0x13020300 0x14>; | ||
| 161 | #dma-cells = <2>; | ||
| 162 | |||
| 163 | interrupt-parent = <&intc>; | ||
| 164 | interrupts = <29>; | ||
| 165 | |||
| 166 | clocks = <&cgu JZ4740_CLK_DMA>; | ||
| 167 | |||
| 168 | /* Disable dmac until we have something that uses it */ | ||
| 169 | status = "disabled"; | ||
| 170 | }; | ||
| 171 | |||
| 157 | uhc: uhc@13030000 { | 172 | uhc: uhc@13030000 { |
| 158 | compatible = "ingenic,jz4740-ohci", "generic-ohci"; | 173 | compatible = "ingenic,jz4740-ohci", "generic-ohci"; |
| 159 | reg = <0x13030000 0x1000>; | 174 | reg = <0x13030000 0x1000>; |
diff --git a/arch/mips/boot/dts/ingenic/jz4770.dtsi b/arch/mips/boot/dts/ingenic/jz4770.dtsi index 7c2804f3f5f1..49ede6c14ff3 100644 --- a/arch/mips/boot/dts/ingenic/jz4770.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4770.dtsi | |||
| @@ -196,6 +196,36 @@ | |||
| 196 | status = "disabled"; | 196 | status = "disabled"; |
| 197 | }; | 197 | }; |
| 198 | 198 | ||
| 199 | dmac0: dma-controller@13420000 { | ||
| 200 | compatible = "ingenic,jz4770-dma"; | ||
| 201 | reg = <0x13420000 0xC0 | ||
| 202 | 0x13420300 0x20>; | ||
| 203 | |||
| 204 | #dma-cells = <1>; | ||
| 205 | |||
| 206 | clocks = <&cgu JZ4770_CLK_DMA>; | ||
| 207 | interrupt-parent = <&intc>; | ||
| 208 | interrupts = <24>; | ||
| 209 | |||
| 210 | /* Disable dmac0 until we have something that uses it */ | ||
| 211 | status = "disabled"; | ||
| 212 | }; | ||
| 213 | |||
| 214 | dmac1: dma-controller@13420100 { | ||
| 215 | compatible = "ingenic,jz4770-dma"; | ||
| 216 | reg = <0x13420100 0xC0 | ||
| 217 | 0x13420400 0x20>; | ||
| 218 | |||
| 219 | #dma-cells = <1>; | ||
| 220 | |||
| 221 | clocks = <&cgu JZ4770_CLK_DMA>; | ||
| 222 | interrupt-parent = <&intc>; | ||
| 223 | interrupts = <23>; | ||
| 224 | |||
