2023-12-13 13:59:02

by Vignesh Raghavendra

[permalink] [raw]
Subject: [PATCH v2 0/3] arm64: dts: ti: k3: Add additioal regs for DMA components

This adds additional reg ranges which are not directly used by Linux but
by other components like U-Boot

Binding is accepted via dmaengine tree and is in linux-next[0]

[0] https://lore.kernel.org/dmaengine/[email protected]/

v2:
Extend register ranges to match TRM as pointed out by Jai

v1: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Manorit Chawdhry (2):
arm64: dts: ti: k3-am65: Add additional regs for DMA components
arm64: dts: ti: k3-j7*: Add additional regs for DMA components

Vignesh Raghavendra (1):
arm64: dts: ti: k3-am6*: Add additional regs for DMA components

arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 18 ++++++++++++++----
arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 18 ++++++++++++++----
arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 18 ++++++++++++++----
arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 18 ++++++++++++++----
arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 8 ++++++--
.../arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 8 ++++++--
.../arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 8 ++++++--
.../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 8 ++++++--
.../boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 8 ++++++--
14 files changed, 116 insertions(+), 36 deletions(-)

--
2.43.0


2023-12-13 14:04:57

by Vignesh Raghavendra

[permalink] [raw]
Subject: [PATCH v2 2/3] arm64: dts: ti: k3-j7*: Add additional regs for DMA components

From: Manorit Chawdhry <[email protected]>

Add additional reg properties for UDMA and RingAcc nodes which are
mostly used by bootloader components before Device Manager firmware
services are available, in order to setup DMA transfers.

Signed-off-by: Manorit Chawdhry <[email protected]>
Signed-off-by: Vignesh Raghavendra <[email protected]>
---
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 8 ++++++--
8 files changed, 48 insertions(+), 16 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi
index 264913f83287..b8424994ac5f 100644
--- a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi
@@ -281,8 +281,12 @@ main_udmap: dma-controller@31150000 {
compatible = "ti,j721e-navss-main-udmap";
reg = <0x00 0x31150000 0x00 0x100>,
<0x00 0x34000000 0x00 0x100000>,
- <0x00 0x35000000 0x00 0x100000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x00 0x35000000 0x00 0x100000>,
+ <0x00 0x30b00000 0x00 0x4000>,
+ <0x00 0x30c00000 0x00 0x4000>,
+ <0x00 0x30d00000 0x00 0x4000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&main_udmass_inta>;
#dma-cells = <1>;

diff --git a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
index 672cb2acc1be..60b26374ae0c 100644
--- a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
@@ -353,8 +353,12 @@ mcu_udmap: dma-controller@285c0000 {
compatible = "ti,j721e-navss-mcu-udmap";
reg = <0x00 0x285c0000 0x00 0x100>,
<0x00 0x2a800000 0x00 0x40000>,
- <0x00 0x2aa00000 0x00 0x40000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x00 0x2aa00000 0x00 0x40000>,
+ <0x00 0x284a0000 0x00 0x4000>,
+ <0x00 0x284c0000 0x00 0x4000>,
+ <0x00 0x28400000 0x00 0x2000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&main_udmass_inta>;
#dma-cells = <1>;

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
index 746b9f8b1c64..2569b4c08ffb 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
@@ -382,8 +382,12 @@ main_udmap: dma-controller@31150000 {
compatible = "ti,j721e-navss-main-udmap";
reg = <0x0 0x31150000 0x0 0x100>,
<0x0 0x34000000 0x0 0x100000>,
- <0x0 0x35000000 0x0 0x100000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x0 0x35000000 0x0 0x100000>,
+ <0x0 0x30b00000 0x0 0x20000>,
+ <0x0 0x30c00000 0x0 0x10000>,
+ <0x0 0x30d00000 0x0 0x8000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&main_udmass_inta>;
#dma-cells = <1>;

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi
index 8f259efe3af9..a74912d9e4da 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi
@@ -475,8 +475,12 @@ mcu_udmap: dma-controller@285c0000 {
compatible = "ti,j721e-navss-mcu-udmap";
reg = <0x0 0x285c0000 0x0 0x100>,
<0x0 0x2a800000 0x0 0x40000>,
- <0x0 0x2aa00000 0x0 0x40000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x0 0x2aa00000 0x0 0x40000>,
+ <0x0 0x284a0000 0x0 0x4000>,
+ <0x0 0x284c0000 0x0 0x4000>,
+ <0x0 0x28400000 0x0 0x2000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&main_udmass_inta>;
#dma-cells = <1>;

diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
index b03731b53a26..bf959312fad0 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
@@ -1086,8 +1086,12 @@ main_udmap: dma-controller@31150000 {
compatible = "ti,j721e-navss-main-udmap";
reg = <0x0 0x31150000 0x0 0x100>,
<0x0 0x34000000 0x0 0x80000>,
- <0x0 0x35000000 0x0 0x200000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x0 0x35000000 0x0 0x200000>,
+ <0x0 0x30b00000 0x0 0x20000>,
+ <0x0 0x30c00000 0x0 0x8000>,
+ <0x0 0x30d00000 0x0 0x4000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&main_udmass_inta>;
#dma-cells = <1>;

diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
index d9e2cab8a8c5..80aa33c58a45 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
@@ -478,8 +478,12 @@ mcu_udmap: dma-controller@285c0000 {
compatible = "ti,j721e-navss-mcu-udmap";
reg = <0x0 0x285c0000 0x0 0x100>,
<0x0 0x2a800000 0x0 0x40000>,
- <0x0 0x2aa00000 0x0 0x40000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x0 0x2aa00000 0x0 0x40000>,
+ <0x0 0x284a0000 0x0 0x4000>,
+ <0x0 0x284c0000 0x0 0x4000>,
+ <0x0 0x28400000 0x0 0x2000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&main_udmass_inta>;
#dma-cells = <1>;

diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
index d89bcddcfe3d..827328450f96 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
@@ -1188,8 +1188,12 @@ main_udmap: dma-controller@31150000 {
compatible = "ti,j721e-navss-main-udmap";
reg = <0x00 0x31150000 0x00 0x100>,
<0x00 0x34000000 0x00 0x80000>,
- <0x00 0x35000000 0x00 0x200000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x00 0x35000000 0x00 0x200000>,
+ <0x00 0x30b00000 0x00 0x20000>,
+ <0x00 0x30c00000 0x00 0x8000>,
+ <0x00 0x30d00000 0x00 0x4000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&main_udmass_inta>;
#dma-cells = <1>;

diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi
index 119f4e2cc0d1..3902a921d7e5 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi
@@ -486,8 +486,12 @@ mcu_udmap: dma-controller@285c0000 {
compatible = "ti,j721e-navss-mcu-udmap";
reg = <0x00 0x285c0000 0x00 0x100>,
<0x00 0x2a800000 0x00 0x40000>,
- <0x00 0x2aa00000 0x00 0x40000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x00 0x2aa00000 0x00 0x40000>,
+ <0x00 0x284a0000 0x00 0x4000>,
+ <0x00 0x284c0000 0x00 0x4000>,
+ <0x00 0x28400000 0x00 0x2000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&main_udmass_inta>;
#dma-cells = <1>;

--
2.43.0

2023-12-13 14:05:00

by Vignesh Raghavendra

[permalink] [raw]
Subject: [PATCH v2 1/3] arm64: dts: ti: k3-am65: Add additional regs for DMA components

From: Manorit Chawdhry <[email protected]>

Add additional reg properties for UDMA and RingAcc nodes which are
mostly used by bootloader components before Device Manager firmware
services are available, in order to setup DMA transfers.

Signed-off-by: Manorit Chawdhry <[email protected]>
Signed-off-by: Vignesh Raghavendra <[email protected]>
---
arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 8 ++++++--
arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index cc59fc648b56..fcea54465636 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -792,8 +792,12 @@ main_udmap: dma-controller@31150000 {
compatible = "ti,am654-navss-main-udmap";
reg = <0x0 0x31150000 0x0 0x100>,
<0x0 0x34000000 0x0 0x100000>,
- <0x0 0x35000000 0x0 0x100000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x0 0x35000000 0x0 0x100000>,
+ <0x0 0x30b00000 0x0 0x10000>,
+ <0x0 0x30c00000 0x0 0x10000>,
+ <0x0 0x30d00000 0x0 0x8000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&inta_main_udmass>;
#dma-cells = <1>;

diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
index edd5cfbec40e..ecd7356f3315 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
@@ -214,8 +214,12 @@ mcu_udmap: dma-controller@285c0000 {
compatible = "ti,am654-navss-mcu-udmap";
reg = <0x0 0x285c0000 0x0 0x100>,
<0x0 0x2a800000 0x0 0x40000>,
- <0x0 0x2aa00000 0x0 0x40000>;
- reg-names = "gcfg", "rchanrt", "tchanrt";
+ <0x0 0x2aa00000 0x0 0x40000>,
+ <0x0 0x284a0000 0x0 0x4000>,
+ <0x0 0x284c0000 0x0 0x4000>,
+ <0x0 0x28400000 0x0 0x2000>;
+ reg-names = "gcfg", "rchanrt", "tchanrt",
+ "tchan", "rchan", "rflow";
msi-parent = <&inta_main_udmass>;
#dma-cells = <1>;

--
2.43.0

2023-12-13 15:25:31

by Jai Luthra

[permalink] [raw]
Subject: Re: [PATCH v2 0/3] arm64: dts: ti: k3: Add additioal regs for DMA components

Hi Vignesh,

On Dec 13, 2023 at 19:21:35 +0530, Raghavendra, Vignesh wrote:
> This adds additional reg ranges which are not directly used by Linux but
> by other components like U-Boot
>
> Binding is accepted via dmaengine tree and is in linux-next[0]
>
> [0] https://lore.kernel.org/dmaengine/[email protected]/
>
> v2:
> Extend register ranges to match TRM as pointed out by Jai

For the series,

Reviewed-by: Jai Luthra <[email protected]>

>
> v1: https://lore.kernel.org/linux-arm-kernel/[email protected]/
>
> Manorit Chawdhry (2):
> arm64: dts: ti: k3-am65: Add additional regs for DMA components
> arm64: dts: ti: k3-j7*: Add additional regs for DMA components
>
> Vignesh Raghavendra (1):
> arm64: dts: ti: k3-am6*: Add additional regs for DMA components
>
> arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 18 ++++++++++++++----
> arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 18 ++++++++++++++----
> arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 18 ++++++++++++++----
> arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 18 ++++++++++++++----
> arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 8 ++++++--
> arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 8 ++++++--
> arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 8 ++++++--
> .../arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 8 ++++++--
> arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 8 ++++++--
> .../arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 8 ++++++--
> arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 8 ++++++--
> .../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 8 ++++++--
> arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 8 ++++++--
> .../boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 8 ++++++--
> 14 files changed, 116 insertions(+), 36 deletions(-)
>
> --
> 2.43.0
>

--
Thanks,
Jai

GPG Fingerprint: 4DE0 D818 E5D5 75E8 D45A AFC5 43DE 91F9 249A 7145


Attachments:
(No filename) (1.94 kB)
signature.asc (849.00 B)
Download all attachments

2023-12-15 19:15:02

by Nishanth Menon

[permalink] [raw]
Subject: Re: [PATCH v2 0/3] arm64: dts: ti: k3: Add additioal regs for DMA components

Hi Vignesh Raghavendra,

On Wed, 13 Dec 2023 19:21:35 +0530, Vignesh Raghavendra wrote:
> This adds additional reg ranges which are not directly used by Linux but
> by other components like U-Boot
>
> Binding is accepted via dmaengine tree and is in linux-next[0]
>
> [0] https://lore.kernel.org/dmaengine/[email protected]/
>
> [...]

I have applied the following to branch ti-k3-dts-next on [1].
Thank you!

[1/3] arm64: dts: ti: k3-am65: Add additional regs for DMA components
commit: 0fa8d3a5eb8e737726a3c7376222ee40fae1988d
[2/3] arm64: dts: ti: k3-j7*: Add additional regs for DMA components
commit: 1b62a3cfddbb5664bc4360b3cb0d76b9b99abdc5
[3/3] arm64: dts: ti: k3-am6*: Add additional regs for DMA components
commit: 7643f7ebcbc723e682d22c207ac35b41d7248650

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D