From: Conor Dooley <conor@kernel.org>
To: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>,
Vinod Koul <vkoul@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
dmaengine@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/3] dt-bindings: dma: ti: k3-bcdma: Describe cfg register regions
Date: Thu, 10 Aug 2023 19:35:20 +0100 [thread overview]
Message-ID: <20230810-prelaw-payback-9388222dd6d3@spud> (raw)
In-Reply-To: <20230810174356.3322583-2-vigneshr@ti.com>
[-- Attachment #1.1: Type: text/plain, Size: 3186 bytes --]
On Thu, Aug 10, 2023 at 11:13:53PM +0530, Vignesh Raghavendra wrote:
> Block copy DMA(BCDMA)module on K3 SoCs have ring cfg, TX and RX
> channel cfg register regions which are usually configured by a Device
> Management firmware. But certain entities such as bootloader (like
> U-Boot) may have to access them directly. Describe this region in the
> binding documentation for completeness of module description.
>
> Keep the binding compatible with existing DTS files by requiring first
> five regions to be present at least.
>
> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
> ---
> .../devicetree/bindings/dma/ti/k3-bcdma.yaml | 25 +++++++++++++------
> 1 file changed, 17 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
> index 4ca300a42a99..d166e284532b 100644
> --- a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
> +++ b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml
> @@ -37,11 +37,11 @@ properties:
>
> reg:
> minItems: 3
> - maxItems: 5
> + maxItems: 8
How come none of these reg entries have a description? What
differentiates a "gcfg" from a "cfg" for example?
>
> reg-names:
> minItems: 3
> - maxItems: 5
> + maxItems: 8
>
> "#dma-cells":
> const: 3
> @@ -161,14 +161,19 @@ allOf:
> properties:
> reg:
> minItems: 5
> + maxItems: 8
>
> reg-names:
> + minItems: 5
> items:
> - const: gcfg
> - const: bchanrt
> - const: rchanrt
> - const: tchanrt
> - const: ringrt
> + - const: cfg
> + - const: tchan
> + - const: rchan
>
> required:
> - ti,sci-rm-range-bchan
> @@ -216,12 +221,16 @@ examples:
> main_bcdma: dma-controller@485c0100 {
> compatible = "ti,am64-dmss-bcdma";
>
> - reg = <0x0 0x485c0100 0x0 0x100>,
> - <0x0 0x4c000000 0x0 0x20000>,
> - <0x0 0x4a820000 0x0 0x20000>,
> - <0x0 0x4aa40000 0x0 0x20000>,
> - <0x0 0x4bc00000 0x0 0x100000>;
> - reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt";
> + reg = <0x00 0x485c0100 0x00 0x100>,
Why have you added extra zeros? (0x00)
Thanks,
Conor.
> + <0x00 0x4c000000 0x00 0x20000>,
> + <0x00 0x4a820000 0x00 0x20000>,
> + <0x00 0x4aa40000 0x00 0x20000>,
> + <0x00 0x4bc00000 0x00 0x100000>,
> + <0x00 0x48600000 0x00 0x8000>,
> + <0x00 0x484a4000 0x00 0x2000>,
> + <0x00 0x484c2000 0x00 0x2000>;
> + reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
> + "cfg", "tchan", "rchan";
> msi-parent = <&inta_main_dmss>;
> #dma-cells = <3>;
>
> --
> 2.41.0
>
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-08-10 18:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-10 17:43 [PATCH 0/3] dt-bindings: dma: ti: k3* : Update optional reg regions Vignesh Raghavendra
2023-08-10 17:43 ` [PATCH 1/3] dt-bindings: dma: ti: k3-bcdma: Describe cfg register regions Vignesh Raghavendra
2023-08-10 18:35 ` Conor Dooley [this message]
2023-08-11 4:38 ` Vignesh Raghavendra
2023-08-27 7:06 ` Péter Ujfalusi
2023-08-10 17:43 ` [PATCH 2/3] dt-bindings: dma: ti: k3-pktdma: " Vignesh Raghavendra
2023-08-27 7:10 ` Péter Ujfalusi
2023-08-10 17:43 ` [PATCH 3/3] dt-bindings: dma: ti: k3-udma: " Vignesh Raghavendra
2023-08-11 15:16 ` [PATCH 0/3] dt-bindings: dma: ti: k3* : Update optional reg regions Péter Ujfalusi
2023-08-11 16:04 ` Vignesh Raghavendra
2023-08-27 7:18 ` Péter Ujfalusi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230810-prelaw-payback-9388222dd6d3@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.ujfalusi@gmail.com \
--cc=robh+dt@kernel.org \
--cc=vigneshr@ti.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox