linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Mediatek SCP dt-binding tweaks
@ 2022-05-03 21:11 Nícolas F. R. A. Prado
  2022-05-03 21:11 ` [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp Nícolas F. R. A. Prado
  2022-05-03 21:11 ` [PATCH v3 2/2] dt-bindings: remoteproc: mediatek: Add optional memory-region to mtk,scp Nícolas F. R. A. Prado
  0 siblings, 2 replies; 5+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-05-03 21:11 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: AngeloGioacchino Del Regno, kernel, Nícolas F. R. A. Prado,
	Krzysztof Kozlowski, Mathieu Poirier, Matthias Brugger,
	Rob Herring, Tinghan Shen, devicetree, linux-arm-kernel,
	linux-kernel, linux-mediatek, linux-remoteproc


Two simple patches for the Mediatek SCP dt-binding. The first fixes the
reg/reg-names property while the second adds a new optional
memory-region property.

v2: https://lore.kernel.org/all/20220502192420.2548512-1-nfraprado@collabora.com
v1: https://lore.kernel.org/all/20220429211111.2214119-1-nfraprado@collabora.com

Changes in v3:
- Made the cfg reg required again. After looking again into the mtk-scp
  driver, only l1tcm is optional.

Changes in v2:
- Dropped type and description from memory-region since it's a
  well-known property
- Set memory-region maxItems to 1

Nícolas F. R. A. Prado (2):
  dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp
  dt-bindings: remoteproc: mediatek: Add optional memory-region to
    mtk,scp

 .../devicetree/bindings/remoteproc/mtk,scp.yaml          | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
2.36.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp
  2022-05-03 21:11 [PATCH v3 0/2] Mediatek SCP dt-binding tweaks Nícolas F. R. A. Prado
@ 2022-05-03 21:11 ` Nícolas F. R. A. Prado
  2022-05-04  8:21   ` AngeloGioacchino Del Regno
  2022-05-05  9:13   ` Krzysztof Kozlowski
  2022-05-03 21:11 ` [PATCH v3 2/2] dt-bindings: remoteproc: mediatek: Add optional memory-region to mtk,scp Nícolas F. R. A. Prado
  1 sibling, 2 replies; 5+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-05-03 21:11 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: AngeloGioacchino Del Regno, kernel, Nícolas F. R. A. Prado,
	Krzysztof Kozlowski, Mathieu Poirier, Matthias Brugger,
	Rob Herring, Tinghan Shen, devicetree, linux-arm-kernel,
	linux-kernel, linux-mediatek, linux-remoteproc

The SCP has three memory regions: sram, cfg and l1tcm. While the first
two are required, l1tcm is optional. Fix the dt-binding so that it can
be omitted and update the description. This gets rid of dtbs_check
warnings for devicetrees where the l1tcm reg is missing like mt8183.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

---

Changes in v3:
- Made the cfg reg required again. After looking again into the mtk-scp
  driver, only l1tcm is optional.
- Added mention that a dtbs_check warning gets fixed by patch in commit
  message.

 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
index 823a236242de..eeea84379a1e 100644
--- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
@@ -23,11 +23,13 @@ properties:
 
   reg:
     description:
-      Should contain the address ranges for memory regions SRAM, CFG, and
-      L1TCM.
+      Should contain the address ranges for memory regions SRAM, CFG, and,
+      optionally, L1TCM.
+    minItems: 2
     maxItems: 3
 
   reg-names:
+    minItems: 2
     items:
       - const: sram
       - const: cfg
-- 
2.36.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v3 2/2] dt-bindings: remoteproc: mediatek: Add optional memory-region to mtk,scp
  2022-05-03 21:11 [PATCH v3 0/2] Mediatek SCP dt-binding tweaks Nícolas F. R. A. Prado
  2022-05-03 21:11 ` [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp Nícolas F. R. A. Prado
@ 2022-05-03 21:11 ` Nícolas F. R. A. Prado
  1 sibling, 0 replies; 5+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-05-03 21:11 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: AngeloGioacchino Del Regno, kernel, Nícolas F. R. A. Prado,
	Krzysztof Kozlowski, Mathieu Poirier, Matthias Brugger,
	Rob Herring, Tinghan Shen, devicetree, linux-arm-kernel,
	linux-kernel, linux-mediatek, linux-remoteproc

The SCP co-processor can optionally be passed a reserved memory region
to use. Add this property in the dt-binding.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Rob Herring <robh@kernel.org>

---

(no changes since v2)

Changes in v2:
- Dropped type and description since it's a well-known property
- Set maxItems to 1

 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
index eeea84379a1e..395c80bce713 100644
--- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
@@ -47,6 +47,9 @@ properties:
   interrupts:
     maxItems: 1
 
+  memory-region:
+    maxItems: 1
+
 required:
   - compatible
   - reg
-- 
2.36.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp
  2022-05-03 21:11 ` [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp Nícolas F. R. A. Prado
@ 2022-05-04  8:21   ` AngeloGioacchino Del Regno
  2022-05-05  9:13   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-05-04  8:21 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Bjorn Andersson
  Cc: kernel, Krzysztof Kozlowski, Mathieu Poirier, Matthias Brugger,
	Rob Herring, Tinghan Shen, devicetree, linux-arm-kernel,
	linux-kernel, linux-mediatek, linux-remoteproc

Il 03/05/22 23:11, Nícolas F. R. A. Prado ha scritto:
> The SCP has three memory regions: sram, cfg and l1tcm. While the first
> two are required, l1tcm is optional. Fix the dt-binding so that it can
> be omitted and update the description. This gets rid of dtbs_check
> warnings for devicetrees where the l1tcm reg is missing like mt8183.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

> 
> ---
> 
> Changes in v3:
> - Made the cfg reg required again. After looking again into the mtk-scp
>    driver, only l1tcm is optional.
> - Added mention that a dtbs_check warning gets fixed by patch in commit
>    message.
> 
>   Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
> index 823a236242de..eeea84379a1e 100644
> --- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
> +++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml
> @@ -23,11 +23,13 @@ properties:
>   
>     reg:
>       description:
> -      Should contain the address ranges for memory regions SRAM, CFG, and
> -      L1TCM.
> +      Should contain the address ranges for memory regions SRAM, CFG, and,
> +      optionally, L1TCM.
> +    minItems: 2
>       maxItems: 3
>   
>     reg-names:
> +    minItems: 2
>       items:
>         - const: sram
>         - const: cfg




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp
  2022-05-03 21:11 ` [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp Nícolas F. R. A. Prado
  2022-05-04  8:21   ` AngeloGioacchino Del Regno
@ 2022-05-05  9:13   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-05  9:13 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Bjorn Andersson
  Cc: AngeloGioacchino Del Regno, kernel, Krzysztof Kozlowski,
	Mathieu Poirier, Matthias Brugger, Rob Herring, Tinghan Shen,
	devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
	linux-remoteproc

On 03/05/2022 23:11, Nícolas F. R. A. Prado wrote:
> The SCP has three memory regions: sram, cfg and l1tcm. While the first
> two are required, l1tcm is optional. Fix the dt-binding so that it can
> be omitted and update the description. This gets rid of dtbs_check
> warnings for devicetrees where the l1tcm reg is missing like mt8183.

Please add "if:then:" for this case (need to put all ifs in allOf). I
understand that l1tcm is optional *only* on mt8183.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-05  9:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-03 21:11 [PATCH v3 0/2] Mediatek SCP dt-binding tweaks Nícolas F. R. A. Prado
2022-05-03 21:11 ` [PATCH v3 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp Nícolas F. R. A. Prado
2022-05-04  8:21   ` AngeloGioacchino Del Regno
2022-05-05  9:13   ` Krzysztof Kozlowski
2022-05-03 21:11 ` [PATCH v3 2/2] dt-bindings: remoteproc: mediatek: Add optional memory-region to mtk,scp Nícolas F. R. A. Prado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).