mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 12:26:41 +07:00
ARM: DTS: da850: Use the new DT bindings for the eDMA3
Switch to use the ti,edma3-tpcc and ti,edma3-tptc binding for the eDMA3. With the new bindings boards can customize and tweak the DMA channel priority to match their needs. With the new binding the memcpy is safe to be used since with the old binding it was not possible for a driver to know which channel is allowed to be used as non HW triggered channel. Using the new binding will allow us to reserve PaRAM slots to be used by the DSP which was not possible before and prevented the da850 boards to be moved to DT only. Note that the DMA memcpy is disabled, it can be enabled by reserving channels for memcpy by adding the following property to the edma node: ti,edma-memcpy-channels = <20 21>; /* Reserving channel 20 and 21 for memcpy */ Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Tested-by: Sushaanth Srirangapathi <sushaanth.s@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
This commit is contained in:
parent
dfaebb509b
commit
7a7faedde6
@ -28,3 +28,7 @@ serial2: serial@1d0d000 {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&edma0 {
|
||||||
|
ti,edma-reserved-slot-ranges = <32 50>;
|
||||||
|
};
|
||||||
|
@ -242,3 +242,7 @@ &mcasp0 {
|
|||||||
tx-num-evt = <32>;
|
tx-num-evt = <32>;
|
||||||
rx-num-evt = <32>;
|
rx-num-evt = <32>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&edma0 {
|
||||||
|
ti,edma-reserved-slot-ranges = <32 50>;
|
||||||
|
};
|
||||||
|
@ -151,11 +151,27 @@ mii_pins: pinmux_mii_pins {
|
|||||||
|
|
||||||
};
|
};
|
||||||
edma0: edma@01c00000 {
|
edma0: edma@01c00000 {
|
||||||
compatible = "ti,edma3";
|
compatible = "ti,edma3-tpcc";
|
||||||
/* eDMA3 CC0: 0x01c0 0000 - 0x01c0 7fff */
|
/* eDMA3 CC0: 0x01c0 0000 - 0x01c0 7fff */
|
||||||
reg = <0x0 0x8000>;
|
reg = <0x0 0x8000>;
|
||||||
interrupts = <11 13 12>;
|
reg-names = "edma3_cc";
|
||||||
#dma-cells = <1>;
|
interrupts = <11 12>;
|
||||||
|
interrupt-names = "edma3_ccint", "edma3_ccerrint";
|
||||||
|
#dma-cells = <2>;
|
||||||
|
|
||||||
|
ti,tptcs = <&edma0_tptc0 7>, <&edma0_tptc1 0>;
|
||||||
|
};
|
||||||
|
edma0_tptc0: tptc@01c08000 {
|
||||||
|
compatible = "ti,edma3-tptc";
|
||||||
|
reg = <0x8000 0x400>;
|
||||||
|
interrupts = <13>;
|
||||||
|
interrupt-names = "edm3_tcerrint";
|
||||||
|
};
|
||||||
|
edma0_tptc1: tptc@01c08400 {
|
||||||
|
compatible = "ti,edma3-tptc";
|
||||||
|
reg = <0x8400 0x400>;
|
||||||
|
interrupts = <32>;
|
||||||
|
interrupt-names = "edm3_tcerrint";
|
||||||
};
|
};
|
||||||
serial0: serial@1c42000 {
|
serial0: serial@1c42000 {
|
||||||
compatible = "ns16550a";
|
compatible = "ns16550a";
|
||||||
@ -286,8 +302,8 @@ mcasp0: mcasp@01d00000 {
|
|||||||
interrupts = <54>;
|
interrupts = <54>;
|
||||||
interrupt-names = "common";
|
interrupt-names = "common";
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
dmas = <&edma0 1>,
|
dmas = <&edma0 1 1>,
|
||||||
<&edma0 0>;
|
<&edma0 0 1>;
|
||||||
dma-names = "tx", "rx";
|
dma-names = "tx", "rx";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user