Skip to contentSkip to conversation

dt-bindings: nvmem: snvs-lpgpr: Fix i.MX8M compatible strings

PATCH Applied Marek Vasut 4 participants 4 messages Nov 2, 2022 – Nov 11, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: nvmem: snvs-lpgpr: Fix i.MX8M compatible strings

The compatible strings for "fsl,imx8m*-snvs-lpgpr" always contain the fallback "fsl,imx7d-snvs-lpgpr" compatible in DTs too, since the fallback compatible is what the driver matches on, this way:
compatible = "fsl,imx8mm-snvs-lpgpr", "fsl,imx7d-snvs-lpgpr"
The older "fsl,imx7d-snvs-lpgpr" and "fsl,imx6*-snvs-lpgpr" used only that single compatible string.

Document both options in the binding document.

---
Cc: Anson Huang <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Oleksij Rempel <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 .../devicetree/bindings/nvmem/snvs-lpgpr.yaml | 20 +++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/nvmem/snvs-lpgpr.yaml +12 -8
index e374aa7891ae7..ec20e33d9b8f8 100644
@@ -11,14 +11,18 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,imx6q-snvs-lpgpr
-      - fsl,imx6ul-snvs-lpgpr
-      - fsl,imx7d-snvs-lpgpr
-      - fsl,imx8mm-snvs-lpgpr
-      - fsl,imx8mn-snvs-lpgpr
-      - fsl,imx8mp-snvs-lpgpr
-      - fsl,imx8mq-snvs-lpgpr
+    oneOf:
+      - items:
+          - enum:
+              - fsl,imx8mm-snvs-lpgpr
+              - fsl,imx8mn-snvs-lpgpr
+              - fsl,imx8mp-snvs-lpgpr
+              - fsl,imx8mq-snvs-lpgpr
+          - const: fsl,imx7d-snvs-lpgpr
+      - enum:
+          - fsl,imx6q-snvs-lpgpr
+          - fsl,imx6ul-snvs-lpgpr
+          - fsl,imx7d-snvs-lpgpr
 
 required:
   - compatible
Signature · 1 line
2.35.1
Acked-by on v1 1/1
#1 lore raw

Am Mittwoch, 2. November 2022, 23:25:43 CET schrieb Marek Vasut:

Quoted 47 lines

The compatible strings for "fsl,imx8m*-snvs-lpgpr" always contain the fallback "fsl,imx7d-snvs-lpgpr" compatible in DTs too, since the fallback compatible is what the driver matches on, this way:
compatible = "fsl,imx8mm-snvs-lpgpr", "fsl,imx7d-snvs-lpgpr"
The older "fsl,imx7d-snvs-lpgpr" and "fsl,imx6*-snvs-lpgpr" used only that single compatible string.

Document both options in the binding document.

---
Cc: Anson Huang <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Oleksij Rempel <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 .../devicetree/bindings/nvmem/snvs-lpgpr.yaml | 20 +++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
(quoted diff) +0 -0

b/Documentation/devicetree/bindings/nvmem/snvs-lpgpr.yaml index e374aa7891ae7..ec20e33d9b8f8 100644

Documentation/devicetree/bindings/nvmem/snvs-lpgpr.yaml +5 -8
@@ -11,14 +11,18 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,imx6q-snvs-lpgpr
-      - fsl,imx6ul-snvs-lpgpr
-      - fsl,imx7d-snvs-lpgpr
-      - fsl,imx8mm-snvs-lpgpr
-      - fsl,imx8mn-snvs-lpgpr
-      - fsl,imx8mp-snvs-lpgpr
-      - fsl,imx8mq-snvs-lpgpr
+    oneOf:
+      - items:
+          - enum:
+              - fsl,imx8mm-snvs-lpgpr
+              - fsl,imx8mn-snvs-lpgpr

Documentation/devicetree/bindings/nvmem/snvs-lpgpr.yaml maintainers: · line 28

Quoted 10 lines
Documentation/devicetree/bindings/nvmem/snvs-lpgpr.yaml +7 -0
+              - fsl,imx8mp-snvs-lpgpr
+              - fsl,imx8mq-snvs-lpgpr
+          - const: fsl,imx7d-snvs-lpgpr
+      - enum:
+          - fsl,imx6q-snvs-lpgpr
+          - fsl,imx6ul-snvs-lpgpr
+          - fsl,imx7d-snvs-lpgpr
 
 required:
   - compatible
Acked-by on v1 1/1
#2 lore raw
In reply to Marek Vasut
Quoted 11 lines · Marek Vasut

The compatible strings for "fsl,imx8m*-snvs-lpgpr" always contain the fallback "fsl,imx7d-snvs-lpgpr" compatible in DTs too, since the fallback compatible is what the driver matches on, this way:
compatible = "fsl,imx8mm-snvs-lpgpr", "fsl,imx7d-snvs-lpgpr"
The older "fsl,imx7d-snvs-lpgpr" and "fsl,imx6*-snvs-lpgpr" used only that single compatible string.

Document both options in the binding document.

---

Best regards,
Krzysztof

Applied
#3 lore raw
In reply to Marek Vasut
Quoted 10 lines · Marek Vasut

The compatible strings for "fsl,imx8m*-snvs-lpgpr" always contain the fallback "fsl,imx7d-snvs-lpgpr" compatible in DTs too, since the fallback compatible is what the driver matches on, this way:
compatible = "fsl,imx8mm-snvs-lpgpr", "fsl,imx7d-snvs-lpgpr"
The older "fsl,imx7d-snvs-lpgpr" and "fsl,imx6*-snvs-lpgpr" used only that single compatible string.

Document both options in the binding document.

Applied, thanks!

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel