mbox series

[v3,0/4] dt-bindings: dma: ti: k3*: Update optional reg regions

Message ID 20231124045722.191817-1-vigneshr@ti.com
Headers show
Series dt-bindings: dma: ti: k3*: Update optional reg regions | expand

Message

Vignesh Raghavendra Nov. 24, 2023, 4:57 a.m. UTC
DMAs on TI K3 SoCs have channel configuration registers region which are
usually hidden from Linux and configured via Device Manager Firmware
APIs. But certain early SWs like bootloader which run before Device
Manager is fully up would need to directly configure these registers and
thus require to be in DT description.

This add bindings for such configuration regions.  Backward
compatibility is maintained to existing DT by only mandating existing
regions to be present and this new region as optional.

This update is mainly to aid SPL/U-Boot to reuse kernel DT as is. And is
applicable to entire K3 SoCs.

v3:
Add back toplevel reg and reg-names constraints in k3-bcdma.yaml
v2: https://lore.kernel.org/all/20231122154238.815781-1-vigneshr@ti.com

v2:
Fix issues pointed out by Conor and Peter
* Add new patch 1/4 to describe existing register regions
* Rename cfg region as ring
* Add bchan register space for bcdma
* Include descriptions for new registers
v1: https://lore.kernel.org/all/20230810174356.3322583-1-vigneshr@ti.com/

Vignesh Raghavendra (4):
  dt-bindings: dma: ti: k3-*: Add descriptions for register regions
  dt-bindings: dma: ti: k3-bcdma: Describe cfg register regions
  dt-bindings: dma: ti: k3-pktdma: Describe cfg register regions
  dt-bindings: dma: ti: k3-udma: Describe cfg register regions

 .../devicetree/bindings/dma/ti/k3-bcdma.yaml  | 39 ++++++++++++++++---
 .../devicetree/bindings/dma/ti/k3-pktdma.yaml | 26 +++++++++++--
 .../devicetree/bindings/dma/ti/k3-udma.yaml   | 20 ++++++++--
 3 files changed, 73 insertions(+), 12 deletions(-)

Comments

Vinod Koul Nov. 24, 2023, 1:33 p.m. UTC | #1
On Fri, 24 Nov 2023 10:27:18 +0530, Vignesh Raghavendra wrote:
> DMAs on TI K3 SoCs have channel configuration registers region which are
> usually hidden from Linux and configured via Device Manager Firmware
> APIs. But certain early SWs like bootloader which run before Device
> Manager is fully up would need to directly configure these registers and
> thus require to be in DT description.
> 
> This add bindings for such configuration regions.  Backward
> compatibility is maintained to existing DT by only mandating existing
> regions to be present and this new region as optional.
> 
> [...]

Applied, thanks!

[1/4] dt-bindings: dma: ti: k3-*: Add descriptions for register regions
      commit: aaf7b392347bc4b32ffcab11c414d983a782e651
[2/4] dt-bindings: dma: ti: k3-bcdma: Describe cfg register regions
      commit: f04470678132c2d044b92befab39a933ac4d106c
[3/4] dt-bindings: dma: ti: k3-pktdma: Describe cfg register regions
      commit: 8d75e0e5eed23e4f8ced5eacae3255e498a1c304
[4/4] dt-bindings: dma: ti: k3-udma: Describe cfg register regions
      commit: d7aaccd3beb1ec34b04b13fa236f50efb77c8d6c

Best regards,