linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] Fix some issues in QCOM UFS bindings
@ 2023-08-14 10:14 Luca Weiss
  2023-08-14 10:14 ` [PATCH v6 1/4] dt-bindings: ufs: qcom: Add reg-names property for ICE Luca Weiss
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Luca Weiss @ 2023-08-14 10:14 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Alim Akhtar,
	Avri Altman, Bart Van Assche, Rob Herring, Krzysztof Kozlowski,
	Iskren Chernev, Manivannan Sadhasivam, Conor Dooley, Herbert Xu,
	David S. Miller, Martin K. Petersen
  Cc: linux-arm-msm, linux-scsi, devicetree, linux-kernel,
	~postmarketos/upstreaming, phone-devel, linux-crypto, Luca Weiss,
	Krzysztof Kozlowski, Bhupesh Sharma, Eric Biggers, Rob Herring,
	Iskren Chernev

This series aims to solve the dtbs_check errors from the qcom ufs
bindings. It has changed in scope a bit since v1, so it may be a bit all
over the place.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
Changes in v6:
- Rebase on linux-next
- Drop applied dts patch
- Pick up tags
- Link to v5: https://lore.kernel.org/r/20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com

Changes in v5:
- Convert sm8450.dtsi to use qcom,ice property, so stop modifying schema
  for sm8450 and only add qcom,ice property.
- Move reg-names names to top-level with only minItems/maxItems in the
  'if'
- Link to v4: https://lore.kernel.org/r/20221209-dt-binding-ufs-v4-0-14ced60f3d1b@fairphone.com

Changes in v4:
- Pick up tags
- Rebase on linux-next (again)
- Link to v3: https://lore.kernel.org/r/20221209-dt-binding-ufs-v3-0-499dff23a03c@fairphone.com

Changes in v3:
- Drop applied patch
- Pick up sm6115 patch from v5 https://lore.kernel.org/all/20221030094258.486428-2-iskren.chernev@gmail.com/
- Rebase on linux-next
- Link to v2: https://lore.kernel.org/r/20221209-dt-binding-ufs-v2-0-dc7a04699579@fairphone.com

Changes in v2:
- Add new patch adding reg-names to sm6115 & rebase series on top of sm6115
  addition
- Fix binding example after sm8450 move, split this patch from original patch
  since it became too big
- Move reg-names definition to top-level
- Link to v1: https://lore.kernel.org/r/20221209-dt-binding-ufs-v1-0-8d502f0e18d5@fairphone.com

---
Iskren Chernev (1):
      dt-bindings: ufs: qcom: Add sm6115 binding

Luca Weiss (3):
      dt-bindings: ufs: qcom: Add reg-names property for ICE
      dt-bindings: ufs: qcom: Add ICE to sm8450 example
      dt-bindings: crypto: ice: Document sm8450 inline crypto engine

 .../bindings/crypto/qcom,inline-crypto-engine.yaml |  1 +
 .../devicetree/bindings/ufs/qcom,ufs.yaml          | 44 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)
---
base-commit: 13055cce6d3df0a2704721d6e2fd9011e973f53d
change-id: 20221209-dt-binding-ufs-2d7f64797ff2

Best regards,
-- 
Luca Weiss <luca.weiss@fairphone.com>


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

* [PATCH v6 1/4] dt-bindings: ufs: qcom: Add reg-names property for ICE
  2023-08-14 10:14 [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Luca Weiss
@ 2023-08-14 10:14 ` Luca Weiss
  2023-08-14 10:14 ` [PATCH v6 2/4] dt-bindings: ufs: qcom: Add sm6115 binding Luca Weiss
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Luca Weiss @ 2023-08-14 10:14 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Alim Akhtar,
	Avri Altman, Bart Van Assche, Rob Herring, Krzysztof Kozlowski,
	Iskren Chernev, Manivannan Sadhasivam, Conor Dooley, Herbert Xu,
	David S. Miller, Martin K. Petersen
  Cc: linux-arm-msm, linux-scsi, devicetree, linux-kernel,
	~postmarketos/upstreaming, phone-devel, linux-crypto, Luca Weiss,
	Krzysztof Kozlowski

The code in ufs-qcom-ice.c needs the ICE reg to be named "ice". Add this
in the bindings so the existing dts can validate successfully.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
index bdfa86a0cc98..4cc3f8f03b33 100644
--- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
+++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
@@ -79,6 +79,11 @@ properties:
     minItems: 1
     maxItems: 2
 
+  reg-names:
+    items:
+      - const: std
+      - const: ice
+
   required-opps:
     maxItems: 1
 
@@ -134,6 +139,8 @@ allOf:
         reg:
           minItems: 1
           maxItems: 1
+        reg-names:
+          maxItems: 1
 
   - if:
       properties:
@@ -162,6 +169,10 @@ allOf:
         reg:
           minItems: 2
           maxItems: 2
+        reg-names:
+          minItems: 2
+      required:
+        - reg-names
 
   - if:
       properties:
@@ -190,6 +201,8 @@ allOf:
         reg:
           minItems: 1
           maxItems: 1
+        reg-names:
+          maxItems: 1
 
     # TODO: define clock bindings for qcom,msm8994-ufshc
 

-- 
2.41.0


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

* [PATCH v6 2/4] dt-bindings: ufs: qcom: Add sm6115 binding
  2023-08-14 10:14 [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Luca Weiss
  2023-08-14 10:14 ` [PATCH v6 1/4] dt-bindings: ufs: qcom: Add reg-names property for ICE Luca Weiss
@ 2023-08-14 10:14 ` Luca Weiss
  2023-08-14 10:14 ` [PATCH v6 3/4] dt-bindings: ufs: qcom: Add ICE to sm8450 example Luca Weiss
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Luca Weiss @ 2023-08-14 10:14 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Alim Akhtar,
	Avri Altman, Bart Van Assche, Rob Herring, Krzysztof Kozlowski,
	Iskren Chernev, Manivannan Sadhasivam, Conor Dooley, Herbert Xu,
	David S. Miller, Martin K. Petersen
  Cc: linux-arm-msm, linux-scsi, devicetree, linux-kernel,
	~postmarketos/upstreaming, phone-devel, linux-crypto, Luca Weiss,
	Krzysztof Kozlowski, Bhupesh Sharma, Eric Biggers,
	Iskren Chernev

From: Iskren Chernev <me@iskren.info>

Add SM6115 UFS to DT schema.

Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Iskren Chernev <me@iskren.info>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
 .../devicetree/bindings/ufs/qcom,ufs.yaml          | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
index 4cc3f8f03b33..2b0831622cf0 100644
--- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
+++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
@@ -29,6 +29,7 @@ properties:
           - qcom,sa8775p-ufshc
           - qcom,sc8280xp-ufshc
           - qcom,sdm845-ufshc
+          - qcom,sm6115-ufshc
           - qcom,sm6350-ufshc
           - qcom,sm8150-ufshc
           - qcom,sm8250-ufshc
@@ -204,6 +205,35 @@ allOf:
         reg-names:
           maxItems: 1
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,sm6115-ufshc
+    then:
+      properties:
+        clocks:
+          minItems: 8
+          maxItems: 8
+        clock-names:
+          items:
+            - const: core_clk
+            - const: bus_aggr_clk
+            - const: iface_clk
+            - const: core_clk_unipro
+            - const: ref_clk
+            - const: tx_lane0_sync_clk
+            - const: rx_lane0_sync_clk
+            - const: ice_core_clk
+        reg:
+          minItems: 2
+          maxItems: 2
+        reg-names:
+          minItems: 2
+      required:
+        - reg-names
+
     # TODO: define clock bindings for qcom,msm8994-ufshc
 
   - if:

-- 
2.41.0


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

* [PATCH v6 3/4] dt-bindings: ufs: qcom: Add ICE to sm8450 example
  2023-08-14 10:14 [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Luca Weiss
  2023-08-14 10:14 ` [PATCH v6 1/4] dt-bindings: ufs: qcom: Add reg-names property for ICE Luca Weiss
  2023-08-14 10:14 ` [PATCH v6 2/4] dt-bindings: ufs: qcom: Add sm6115 binding Luca Weiss
@ 2023-08-14 10:14 ` Luca Weiss
  2023-08-14 10:14 ` [PATCH v6 4/4] dt-bindings: crypto: ice: Document sm8450 inline crypto engine Luca Weiss
  2023-08-24 17:10 ` [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Rob Herring
  4 siblings, 0 replies; 7+ messages in thread
From: Luca Weiss @ 2023-08-14 10:14 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Alim Akhtar,
	Avri Altman, Bart Van Assche, Rob Herring, Krzysztof Kozlowski,
	Iskren Chernev, Manivannan Sadhasivam, Conor Dooley, Herbert Xu,
	David S. Miller, Martin K. Petersen
  Cc: linux-arm-msm, linux-scsi, devicetree, linux-kernel,
	~postmarketos/upstreaming, phone-devel, linux-crypto, Luca Weiss,
	Rob Herring

SM8450 actually supports ICE (Inline Crypto Engine) so adjust the
example to match.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Acked-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
index 2b0831622cf0..462ead5a1cec 100644
--- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
+++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
@@ -317,5 +317,6 @@ examples:
                             <0 0>,
                             <0 0>,
                             <0 0>;
+            qcom,ice = <&ice>;
         };
     };

-- 
2.41.0


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

* [PATCH v6 4/4] dt-bindings: crypto: ice: Document sm8450 inline crypto engine
  2023-08-14 10:14 [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Luca Weiss
                   ` (2 preceding siblings ...)
  2023-08-14 10:14 ` [PATCH v6 3/4] dt-bindings: ufs: qcom: Add ICE to sm8450 example Luca Weiss
@ 2023-08-14 10:14 ` Luca Weiss
  2023-08-24 17:10 ` [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Rob Herring
  4 siblings, 0 replies; 7+ messages in thread
From: Luca Weiss @ 2023-08-14 10:14 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Alim Akhtar,
	Avri Altman, Bart Van Assche, Rob Herring, Krzysztof Kozlowski,
	Iskren Chernev, Manivannan Sadhasivam, Conor Dooley, Herbert Xu,
	David S. Miller, Martin K. Petersen
  Cc: linux-arm-msm, linux-scsi, devicetree, linux-kernel,
	~postmarketos/upstreaming, phone-devel, linux-crypto, Luca Weiss,
	Krzysztof Kozlowski

Document the compatible used for the inline crypto engine found on
SM8450.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
index 92e1d76e29ee..7da9aa82d837 100644
--- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
@@ -13,6 +13,7 @@ properties:
   compatible:
     items:
       - enum:
+          - qcom,sm8450-inline-crypto-engine
           - qcom,sm8550-inline-crypto-engine
       - const: qcom,inline-crypto-engine
 

-- 
2.41.0


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

* Re: [PATCH v6 0/4] Fix some issues in QCOM UFS bindings
  2023-08-14 10:14 [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Luca Weiss
                   ` (3 preceding siblings ...)
  2023-08-14 10:14 ` [PATCH v6 4/4] dt-bindings: crypto: ice: Document sm8450 inline crypto engine Luca Weiss
@ 2023-08-24 17:10 ` Rob Herring
  2023-08-25  6:38   ` Luca Weiss
  4 siblings, 1 reply; 7+ messages in thread
From: Rob Herring @ 2023-08-24 17:10 UTC (permalink / raw)
  To: Luca Weiss
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Alim Akhtar,
	Avri Altman, Bart Van Assche, Krzysztof Kozlowski,
	Iskren Chernev, Manivannan Sadhasivam, Conor Dooley, Herbert Xu,
	David S. Miller, Martin K. Petersen, linux-arm-msm, linux-scsi,
	devicetree, linux-kernel, ~postmarketos/upstreaming, phone-devel,
	linux-crypto, Krzysztof Kozlowski, Bhupesh Sharma, Eric Biggers

On Mon, Aug 14, 2023 at 12:14:12PM +0200, Luca Weiss wrote:
> This series aims to solve the dtbs_check errors from the qcom ufs
> bindings. It has changed in scope a bit since v1, so it may be a bit all
> over the place.
> 
> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
> ---
> Changes in v6:
> - Rebase on linux-next
> - Drop applied dts patch
> - Pick up tags
> - Link to v5: https://lore.kernel.org/r/20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com
> 
> Changes in v5:
> - Convert sm8450.dtsi to use qcom,ice property, so stop modifying schema
>   for sm8450 and only add qcom,ice property.
> - Move reg-names names to top-level with only minItems/maxItems in the
>   'if'
> - Link to v4: https://lore.kernel.org/r/20221209-dt-binding-ufs-v4-0-14ced60f3d1b@fairphone.com
> 
> Changes in v4:
> - Pick up tags
> - Rebase on linux-next (again)
> - Link to v3: https://lore.kernel.org/r/20221209-dt-binding-ufs-v3-0-499dff23a03c@fairphone.com
> 
> Changes in v3:
> - Drop applied patch
> - Pick up sm6115 patch from v5 https://lore.kernel.org/all/20221030094258.486428-2-iskren.chernev@gmail.com/
> - Rebase on linux-next
> - Link to v2: https://lore.kernel.org/r/20221209-dt-binding-ufs-v2-0-dc7a04699579@fairphone.com
> 
> Changes in v2:
> - Add new patch adding reg-names to sm6115 & rebase series on top of sm6115
>   addition
> - Fix binding example after sm8450 move, split this patch from original patch
>   since it became too big
> - Move reg-names definition to top-level
> - Link to v1: https://lore.kernel.org/r/20221209-dt-binding-ufs-v1-0-8d502f0e18d5@fairphone.com
> 
> ---
> Iskren Chernev (1):
>       dt-bindings: ufs: qcom: Add sm6115 binding
> 
> Luca Weiss (3):
>       dt-bindings: ufs: qcom: Add reg-names property for ICE
>       dt-bindings: ufs: qcom: Add ICE to sm8450 example
>       dt-bindings: crypto: ice: Document sm8450 inline crypto engine
> 
>  .../bindings/crypto/qcom,inline-crypto-engine.yaml |  1 +
>  .../devicetree/bindings/ufs/qcom,ufs.yaml          | 44 ++++++++++++++++++++++
>  2 files changed, 45 insertions(+)

I guess the subsystem maintainers aren't going to pick this up, so I've 
applied it.

Rob

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

* Re: [PATCH v6 0/4] Fix some issues in QCOM UFS bindings
  2023-08-24 17:10 ` [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Rob Herring
@ 2023-08-25  6:38   ` Luca Weiss
  0 siblings, 0 replies; 7+ messages in thread
From: Luca Weiss @ 2023-08-25  6:38 UTC (permalink / raw)
  To: Rob Herring
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Alim Akhtar,
	Avri Altman, Bart Van Assche, Krzysztof Kozlowski,
	Iskren Chernev, Manivannan Sadhasivam, Conor Dooley, Herbert Xu,
	David S. Miller, Martin K. Petersen, linux-arm-msm, linux-scsi,
	devicetree, linux-kernel, ~postmarketos/upstreaming, phone-devel,
	linux-crypto, Krzysztof Kozlowski, Bhupesh Sharma, Eric Biggers

On Thu Aug 24, 2023 at 7:10 PM CEST, Rob Herring wrote:
> On Mon, Aug 14, 2023 at 12:14:12PM +0200, Luca Weiss wrote:
> > This series aims to solve the dtbs_check errors from the qcom ufs
> > bindings. It has changed in scope a bit since v1, so it may be a bit all
> > over the place.
> > 
> > Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
> > ---
> > Changes in v6:
> > - Rebase on linux-next
> > - Drop applied dts patch
> > - Pick up tags
> > - Link to v5: https://lore.kernel.org/r/20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com
> > 
> > Changes in v5:
> > - Convert sm8450.dtsi to use qcom,ice property, so stop modifying schema
> >   for sm8450 and only add qcom,ice property.
> > - Move reg-names names to top-level with only minItems/maxItems in the
> >   'if'
> > - Link to v4: https://lore.kernel.org/r/20221209-dt-binding-ufs-v4-0-14ced60f3d1b@fairphone.com
> > 
> > Changes in v4:
> > - Pick up tags
> > - Rebase on linux-next (again)
> > - Link to v3: https://lore.kernel.org/r/20221209-dt-binding-ufs-v3-0-499dff23a03c@fairphone.com
> > 
> > Changes in v3:
> > - Drop applied patch
> > - Pick up sm6115 patch from v5 https://lore.kernel.org/all/20221030094258.486428-2-iskren.chernev@gmail.com/
> > - Rebase on linux-next
> > - Link to v2: https://lore.kernel.org/r/20221209-dt-binding-ufs-v2-0-dc7a04699579@fairphone.com
> > 
> > Changes in v2:
> > - Add new patch adding reg-names to sm6115 & rebase series on top of sm6115
> >   addition
> > - Fix binding example after sm8450 move, split this patch from original patch
> >   since it became too big
> > - Move reg-names definition to top-level
> > - Link to v1: https://lore.kernel.org/r/20221209-dt-binding-ufs-v1-0-8d502f0e18d5@fairphone.com
> > 
> > ---
> > Iskren Chernev (1):
> >       dt-bindings: ufs: qcom: Add sm6115 binding
> > 
> > Luca Weiss (3):
> >       dt-bindings: ufs: qcom: Add reg-names property for ICE
> >       dt-bindings: ufs: qcom: Add ICE to sm8450 example
> >       dt-bindings: crypto: ice: Document sm8450 inline crypto engine
> > 
> >  .../bindings/crypto/qcom,inline-crypto-engine.yaml |  1 +
> >  .../devicetree/bindings/ufs/qcom,ufs.yaml          | 44 ++++++++++++++++++++++
> >  2 files changed, 45 insertions(+)
>
> I guess the subsystem maintainers aren't going to pick this up, so I've 
> applied it.

Thanks Rob, appreciate it!

>
> Rob


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

end of thread, other threads:[~2023-08-25  6:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-14 10:14 [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Luca Weiss
2023-08-14 10:14 ` [PATCH v6 1/4] dt-bindings: ufs: qcom: Add reg-names property for ICE Luca Weiss
2023-08-14 10:14 ` [PATCH v6 2/4] dt-bindings: ufs: qcom: Add sm6115 binding Luca Weiss
2023-08-14 10:14 ` [PATCH v6 3/4] dt-bindings: ufs: qcom: Add ICE to sm8450 example Luca Weiss
2023-08-14 10:14 ` [PATCH v6 4/4] dt-bindings: crypto: ice: Document sm8450 inline crypto engine Luca Weiss
2023-08-24 17:10 ` [PATCH v6 0/4] Fix some issues in QCOM UFS bindings Rob Herring
2023-08-25  6:38   ` Luca Weiss

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