Skip to content

Commit

Permalink
Merge branch 'topic/jz' into for-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
vinodkoul committed Oct 24, 2018
2 parents b29cf44 + d426c51 commit 81c3ee0
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 84 deletions.
14 changes: 10 additions & 4 deletions Documentation/devicetree/bindings/dma/jz4780-dma.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

Required properties:

- compatible: Should be "ingenic,jz4780-dma"
- reg: Should contain the DMA controller registers location and length.
- compatible: Should be one of:
* ingenic,jz4740-dma
* ingenic,jz4725b-dma
* ingenic,jz4770-dma
* ingenic,jz4780-dma
- reg: Should contain the DMA channel registers location and length, followed
by the DMA controller registers location and length.
- interrupts: Should contain the interrupt specifier of the DMA controller.
- clocks: Should contain a clock specifier for the JZ4780 PDMA clock.
- #dma-cells: Must be <2>. Number of integer cells in the dmas property of
Expand All @@ -19,9 +24,10 @@ Optional properties:

Example:

dma: dma@13420000 {
dma: dma-controller@13420000 {
compatible = "ingenic,jz4780-dma";
reg = <0x13420000 0x10000>;
reg = <0x13420000 0x400
0x13421000 0x40>;

interrupt-parent = <&intc>;
interrupts = <10>;
Expand Down
15 changes: 15 additions & 0 deletions arch/mips/boot/dts/ingenic/jz4740.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,21 @@
clock-names = "baud", "module";
};

dmac: dma-controller@13020000 {
compatible = "ingenic,jz4740-dma";
reg = <0x13020000 0xbc
0x13020300 0x14>;
#dma-cells = <2>;

interrupt-parent = <&intc>;
interrupts = <29>;

clocks = <&cgu JZ4740_CLK_DMA>;

/* Disable dmac until we have something that uses it */
status = "disabled";
};

uhc: uhc@13030000 {
compatible = "ingenic,jz4740-ohci", "generic-ohci";
reg = <0x13030000 0x1000>;
Expand Down
30 changes: 30 additions & 0 deletions arch/mips/boot/dts/ingenic/jz4770.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,36 @@
status = "disabled";
};

dmac0: dma-controller@13420000 {
compatible = "ingenic,jz4770-dma";
reg = <0x13420000 0xC0
0x13420300 0x20>;

#dma-cells = <1>;

clocks = <&cgu JZ4770_CLK_DMA>;
interrupt-parent = <&intc>;
interrupts = <24>;

/* Disable dmac0 until we have something that uses it */
status = "disabled";
};

dmac1: dma-controller@13420100 {
compatible = "ingenic,jz4770-dma";
reg = <0x13420100 0xC0
0x13420400 0x20>;

#dma-cells = <1>;

clocks = <&cgu JZ4770_CLK_DMA>;
interrupt-parent = <&intc>;
interrupts = <23>;

/* Disable dmac1 until we have something that uses it */
status = "disabled";
};

uhc: uhc@13430000 {
compatible = "generic-ohci";
reg = <0x13430000 0x1000>;
Expand Down
3 changes: 2 additions & 1 deletion arch/mips/boot/dts/ingenic/jz4780.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@

dma: dma@13420000 {
compatible = "ingenic,jz4780-dma";
reg = <0x13420000 0x10000>;
reg = <0x13420000 0x400
0x13421000 0x40>;
#dma-cells = <2>;

interrupt-parent = <&intc>;
Expand Down
2 changes: 1 addition & 1 deletion drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ config DMA_JZ4740

config DMA_JZ4780
tristate "JZ4780 DMA support"
depends on MACH_JZ4780 || COMPILE_TEST
depends on MIPS || COMPILE_TEST
select DMA_ENGINE
select DMA_VIRTUAL_CHANNELS
help
Expand Down
Loading

0 comments on commit 81c3ee0

Please sign in to comment.