linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example
@ 2022-04-02 15:55 Krzysztof Kozlowski
  2022-04-02 15:55 ` [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-02 15:55 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Andy Gross, Bjorn Andersson, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, David S. Miller,
	Jakub Kicinski, Paolo Abeni, Alex Elder, linux-arm-msm,
	linux-kernel, devicetree, netdev
  Cc: Krzysztof Kozlowski, Rob Herring

Consumer examples in the bindings of resource providers are trivial,
useless and duplicating code.  Additionally the incomplete qcom,smp2p
example triggers DT schema warnings.

Cleanup the example by removing the consumer part and fixing the
indentation to DT schema convention.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../bindings/mailbox/qcom-ipcc.yaml           | 29 +++++++------------
 1 file changed, 10 insertions(+), 19 deletions(-)

diff --git a/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml b/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml
index 866efb278813..dfdc72345a2a 100644
--- a/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml
+++ b/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml
@@ -61,23 +61,14 @@ additionalProperties: false
 
 examples:
   - |
-        #include <dt-bindings/interrupt-controller/arm-gic.h>
-        #include <dt-bindings/mailbox/qcom-ipcc.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/mailbox/qcom-ipcc.h>
 
-        mailbox@408000 {
-                compatible = "qcom,sm8250-ipcc", "qcom,ipcc";
-                reg = <0x408000 0x1000>;
-                interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
-                interrupt-controller;
-                #interrupt-cells = <3>;
-                #mbox-cells = <2>;
-        };
-
-        smp2p-modem {
-                compatible = "qcom,smp2p";
-                interrupts-extended = <&ipcc_mproc IPCC_CLIENT_MPSS
-                                IPCC_MPROC_SIGNAL_SMP2P IRQ_TYPE_EDGE_RISING>;
-                mboxes = <&ipcc_mproc IPCC_CLIENT_MPSS IPCC_MPROC_SIGNAL_SMP2P>;
-
-                /* Other SMP2P fields */
-        };
+    mailbox@408000 {
+        compatible = "qcom,sm8250-ipcc", "qcom,ipcc";
+        reg = <0x408000 0x1000>;
+        interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
+        interrupt-controller;
+        #interrupt-cells = <3>;
+        #mbox-cells = <2>;
+    };
-- 
2.32.0


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

* [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example
  2022-04-02 15:55 [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example Krzysztof Kozlowski
@ 2022-04-02 15:55 ` Krzysztof Kozlowski
  2022-04-04 13:36   ` Alex Elder
                     ` (2 more replies)
  2022-04-04 22:45 ` [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example Rob Herring
  2022-04-20  8:42 ` Krzysztof Kozlowski
  2 siblings, 3 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-02 15:55 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Andy Gross, Bjorn Andersson, Jassi Brar,
	Rob Herring, Krzysztof Kozlowski, David S. Miller,
	Jakub Kicinski, Paolo Abeni, Alex Elder, linux-arm-msm,
	linux-kernel, devicetree, netdev
  Cc: Krzysztof Kozlowski, Rob Herring

The example using qcom,smp2p should have all necessary properties, to
avoid DT schema validation warnings.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/net/qcom,ipa.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Documentation/devicetree/bindings/net/qcom,ipa.yaml
index 58ecc62adfaa..dd4bb2e74880 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml
@@ -182,6 +182,12 @@ examples:
 
         smp2p-mpss {
                 compatible = "qcom,smp2p";
+                interrupts = <GIC_SPI 576 IRQ_TYPE_EDGE_RISING>;
+                mboxes = <&apss_shared 6>;
+                qcom,smem = <94>, <432>;
+                qcom,local-pid = <0>;
+                qcom,remote-pid = <5>;
+
                 ipa_smp2p_out: ipa-ap-to-modem {
                         qcom,entry-name = "ipa";
                         #qcom,smem-state-cells = <1>;
@@ -193,6 +199,7 @@ examples:
                         #interrupt-cells = <2>;
                 };
         };
+
         ipa@1e40000 {
                 compatible = "qcom,sdm845-ipa";
 
-- 
2.32.0


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

* Re: [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example
  2022-04-02 15:55 ` [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example Krzysztof Kozlowski
@ 2022-04-04 13:36   ` Alex Elder
  2022-04-04 22:45   ` Rob Herring
  2022-04-04 22:48   ` Rob Herring
  2 siblings, 0 replies; 9+ messages in thread
From: Alex Elder @ 2022-04-04 13:36 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Manivannan Sadhasivam, Andy Gross,
	Bjorn Andersson, Jassi Brar, Rob Herring, Krzysztof Kozlowski,
	David S. Miller, Jakub Kicinski, Paolo Abeni, Alex Elder,
	linux-arm-msm, linux-kernel, devicetree, netdev
  Cc: Rob Herring

On 4/2/22 10:55 AM, Krzysztof Kozlowski wrote:
> The example using qcom,smp2p should have all necessary properties, to
> avoid DT schema validation warnings.

Looks good to me.  The particular values don't match any
reality, but that doesn't matter for getting the syntactic
parse to pass without error or warning.

Thanks.

Reviewed-by: Alex Elder <elder@linaro.org>

> 
> Reported-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>   Documentation/devicetree/bindings/net/qcom,ipa.yaml | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Documentation/devicetree/bindings/net/qcom,ipa.yaml
> index 58ecc62adfaa..dd4bb2e74880 100644
> --- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml
> +++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml
> @@ -182,6 +182,12 @@ examples:
>   
>           smp2p-mpss {
>                   compatible = "qcom,smp2p";
> +                interrupts = <GIC_SPI 576 IRQ_TYPE_EDGE_RISING>;
> +                mboxes = <&apss_shared 6>;
> +                qcom,smem = <94>, <432>;
> +                qcom,local-pid = <0>;
> +                qcom,remote-pid = <5>;
> +
>                   ipa_smp2p_out: ipa-ap-to-modem {
>                           qcom,entry-name = "ipa";
>                           #qcom,smem-state-cells = <1>;
> @@ -193,6 +199,7 @@ examples:
>                           #interrupt-cells = <2>;
>                   };
>           };
> +
>           ipa@1e40000 {
>                   compatible = "qcom,sdm845-ipa";
>   


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

* Re: [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example
  2022-04-02 15:55 [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example Krzysztof Kozlowski
  2022-04-02 15:55 ` [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example Krzysztof Kozlowski
@ 2022-04-04 22:45 ` Rob Herring
  2022-04-20  8:42 ` Krzysztof Kozlowski
  2 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2022-04-04 22:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: devicetree, Manivannan Sadhasivam, Bjorn Andersson, Andy Gross,
	Krzysztof Kozlowski, Paolo Abeni, linux-arm-msm, netdev,
	Jakub Kicinski, Rob Herring, Alex Elder, David S. Miller,
	Jassi Brar, linux-kernel

On Sat, 02 Apr 2022 17:55:50 +0200, Krzysztof Kozlowski wrote:
> Consumer examples in the bindings of resource providers are trivial,
> useless and duplicating code.  Additionally the incomplete qcom,smp2p
> example triggers DT schema warnings.
> 
> Cleanup the example by removing the consumer part and fixing the
> indentation to DT schema convention.
> 
> Reported-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../bindings/mailbox/qcom-ipcc.yaml           | 29 +++++++------------
>  1 file changed, 10 insertions(+), 19 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example
  2022-04-02 15:55 ` [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example Krzysztof Kozlowski
  2022-04-04 13:36   ` Alex Elder
@ 2022-04-04 22:45   ` Rob Herring
  2022-04-04 22:48   ` Rob Herring
  2 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2022-04-04 22:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: linux-kernel, Jakub Kicinski, Andy Gross, Jassi Brar,
	linux-arm-msm, devicetree, Krzysztof Kozlowski, netdev,
	Rob Herring, David S. Miller, Bjorn Andersson, Alex Elder,
	Paolo Abeni, Manivannan Sadhasivam

On Sat, 02 Apr 2022 17:55:51 +0200, Krzysztof Kozlowski wrote:
> The example using qcom,smp2p should have all necessary properties, to
> avoid DT schema validation warnings.
> 
> Reported-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/net/qcom,ipa.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example
  2022-04-02 15:55 ` [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example Krzysztof Kozlowski
  2022-04-04 13:36   ` Alex Elder
  2022-04-04 22:45   ` Rob Herring
@ 2022-04-04 22:48   ` Rob Herring
  2 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2022-04-04 22:48 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Jassi Brar, Bjorn Andersson, Rob Herring, Jakub Kicinski,
	Alex Elder, Manivannan Sadhasivam, linux-arm-msm, netdev,
	David S. Miller, devicetree, Paolo Abeni, linux-kernel,
	Andy Gross, Krzysztof Kozlowski

On Sat, 02 Apr 2022 17:55:51 +0200, Krzysztof Kozlowski wrote:
> The example using qcom,smp2p should have all necessary properties, to
> avoid DT schema validation warnings.
> 
> Reported-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/net/qcom,ipa.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

The netdev folks probably won't pick this up, so applied, thanks!

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

* Re: [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example
  2022-04-02 15:55 [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example Krzysztof Kozlowski
  2022-04-02 15:55 ` [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example Krzysztof Kozlowski
  2022-04-04 22:45 ` [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example Rob Herring
@ 2022-04-20  8:42 ` Krzysztof Kozlowski
  2022-04-20 14:22   ` Jassi Brar
  2 siblings, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-20  8:42 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Bjorn Andersson, Jassi Brar,
	Krzysztof Kozlowski, Paolo Abeni, linux-arm-msm, linux-kernel,
	devicetree, Andy Gross, netdev
  Cc: Rob Herring, Alex Elder, Jakub Kicinski, David S. Miller, Rob Herring

On 02/04/2022 17:55, Krzysztof Kozlowski wrote:
> Consumer examples in the bindings of resource providers are trivial,
> useless and duplicating code.  Additionally the incomplete qcom,smp2p
> example triggers DT schema warnings.
> 
> Cleanup the example by removing the consumer part and fixing the
> indentation to DT schema convention.
> 
> Reported-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Jassi,
Do you plan to pick this mailbox patch?

Best regards,
Krzysztof

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

* Re: [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example
  2022-04-20  8:42 ` Krzysztof Kozlowski
@ 2022-04-20 14:22   ` Jassi Brar
  2022-04-26 10:36     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 9+ messages in thread
From: Jassi Brar @ 2022-04-20 14:22 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Manivannan Sadhasivam, Bjorn Andersson, Krzysztof Kozlowski,
	Paolo Abeni, linux-arm-msm, Linux Kernel Mailing List,
	Devicetree List, Andy Gross, <netdev@vger.kernel.org>,
	Rob Herring, Alex Elder, Jakub Kicinski, David S. Miller,
	Rob Herring

On Wed, Apr 20, 2022 at 3:42 AM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> On 02/04/2022 17:55, Krzysztof Kozlowski wrote:
> > Consumer examples in the bindings of resource providers are trivial,
> > useless and duplicating code.  Additionally the incomplete qcom,smp2p
> > example triggers DT schema warnings.
> >
> > Cleanup the example by removing the consumer part and fixing the
> > indentation to DT schema convention.
> >
> > Reported-by: Rob Herring <robh@kernel.org>
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> Jassi,
> Do you plan to pick this mailbox patch?
>
Yes, I do.  I am ok too, if you want it through some other tree as a
part of some bigger patchset.

thanks.

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

* Re: [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example
  2022-04-20 14:22   ` Jassi Brar
@ 2022-04-26 10:36     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-26 10:36 UTC (permalink / raw)
  To: Jassi Brar
  Cc: Manivannan Sadhasivam, Bjorn Andersson, Krzysztof Kozlowski,
	Paolo Abeni, linux-arm-msm, Linux Kernel Mailing List,
	Devicetree List, Andy Gross, netdev, Rob Herring, Alex Elder,
	Jakub Kicinski, David S. Miller, Rob Herring

On 20/04/2022 16:22, Jassi Brar wrote:
> On Wed, Apr 20, 2022 at 3:42 AM Krzysztof Kozlowski
> <krzysztof.kozlowski@linaro.org> wrote:
>>
>> On 02/04/2022 17:55, Krzysztof Kozlowski wrote:
>>> Consumer examples in the bindings of resource providers are trivial,
>>> useless and duplicating code.  Additionally the incomplete qcom,smp2p
>>> example triggers DT schema warnings.
>>>
>>> Cleanup the example by removing the consumer part and fixing the
>>> indentation to DT schema convention.
>>>
>>> Reported-by: Rob Herring <robh@kernel.org>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>
>> Jassi,
>> Do you plan to pick this mailbox patch?
>>
> Yes, I do.  I am ok too, if you want it through some other tree as a
> part of some bigger patchset.

It's not going through any other tree, so please pick it up.

Best regards,
Krzysztof

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

end of thread, other threads:[~2022-04-26 10:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-02 15:55 [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example Krzysztof Kozlowski
2022-04-02 15:55 ` [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example Krzysztof Kozlowski
2022-04-04 13:36   ` Alex Elder
2022-04-04 22:45   ` Rob Herring
2022-04-04 22:48   ` Rob Herring
2022-04-04 22:45 ` [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example Rob Herring
2022-04-20  8:42 ` Krzysztof Kozlowski
2022-04-20 14:22   ` Jassi Brar
2022-04-26 10:36     ` Krzysztof Kozlowski

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).