Skip to contentSkip to conversation

arm64: dts: ti: k3-am65-main: Add DMA entries for main_spi0

PATCH Applied Vignesh Raghavendra 2 participants 3 messages Mar 12, 2020 – Mar 20, 2020

Subsystems (2)
lore
Share & tools
lore

Vignesh Raghavendra

author maintainer
#0 lore raw

PATCH 1/2 arm64: dts: ti: k3-am65-main: Add DMA entries for main_spi0

Add DMA entry for main_spi0, that has SPI flash connected, for better throughput and reduced CPU load.

---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/ti/k3-am65-main.dtsi +2 -0
index e5df20a2d2f9..0ff291ef2950 100644
@@ -189,6 +189,8 @@ main_spi0: spi@2100000 {
 		power-domains = <&k3_pds 137 TI_SCI_PD_EXCLUSIVE>;
 		#address-cells = <1>;
 		#size-cells = <0>;
+		dmas = <&main_udmap 0xc500>, <&main_udmap 0x4500>;
+		dma-names = "tx0", "rx0";
 	};
 
 	main_spi1: spi@2110000 {
Signature · 1 line
2.25.1
author maintainer
#1 lore raw

PATCH 2/2 arm64: dts: ti: k3-am65-mcu: Add DMA entries for ADC

Add DMA entries for ADC nodes

---
 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi +6 -0
index 92629cbdc184..e85498f0dd05 100644
@@ -82,6 +82,9 @@ tscadc0: tscadc@40200000 {
 		assigned-clocks = <&k3_clks 0 2>;
 		assigned-clock-rates = <60000000>;
 		clock-names = "adc_tsc_fck";
+		dmas = <&mcu_udmap 0x7100>,
+			<&mcu_udmap 0x7101 >;
+		dma-names = "fifo0", "fifo1";
 
 		adc {
 			#io-channel-cells = <1>;
@@ -97,6 +100,9 @@ tscadc1: tscadc@40210000 {
 		assigned-clocks = <&k3_clks 1 2>;
 		assigned-clock-rates = <60000000>;
 		clock-names = "adc_tsc_fck";
+		dmas = <&mcu_udmap 0x7102>,
+			<&mcu_udmap 0x7103>;
+		dma-names = "fifo0", "fifo1";
 
 		adc {
 			#io-channel-cells = <1>;
Signature · 1 line
2.25.1
Applied
#2 lore raw

Re: [PATCH 2/2] arm64: dts: ti: k3-am65-mcu: Add DMA entries for ADC

Quoted 3 lines · Vignesh Raghavendra

Add DMA entries for ADC nodes

Queued both patches towards 5.7, thanks.

-Tero

Quoted 20 lines
---
  arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 6 ++++++
  1 file changed, 6 insertions(+)
arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi +3 -0
index 92629cbdc184..e85498f0dd05 100644
@@ -82,6 +82,9 @@ tscadc0: tscadc@40200000 {
  		assigned-clocks = <&k3_clks 0 2>;
  		assigned-clock-rates = <60000000>;
  		clock-names = "adc_tsc_fck";
+		dmas = <&mcu_udmap 0x7100>,
+			<&mcu_udmap 0x7101 >;
+		dma-names = "fifo0", "fifo1";
 
  		adc {
  			#io-channel-cells = <1>;

arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi tscadc1: tscadc@40210000 { · line 108

Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi +3 -0
@@ -97,6 +100,9 @@ tscadc1: tscadc@40210000 {
  		assigned-clocks = <&k3_clks 1 2>;
  		assigned-clock-rates = <60000000>;
  		clock-names = "adc_tsc_fck";
+		dmas = <&mcu_udmap 0x7102>,
+			<&mcu_udmap 0x7103>;
+		dma-names = "fifo0", "fifo1";
 
  		adc {
  			#io-channel-cells = <1>;

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki