dt-bindings: nvmem: move deprecated cells binding to its own file
authorRafał Miłecki <rafal@milecki.pl>
Fri, 20 Oct 2023 10:55:42 +0000 (11:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2023 17:19:06 +0000 (19:19 +0200)
Support for old NVMEM fixed cells was deprecated in favour of
"fixed-layout". It's still part of the nvmem.yaml though and may be
unknowingly used by new bindings added without much of analyze.

To make it more difficult to accidentally support old syntax move its
binding to separated file with "deprecated" in its name.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20231020105545.216052-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 files changed:
Documentation/devicetree/bindings/mtd/mtd.yaml
Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml
Documentation/devicetree/bindings/nvmem/amlogic,meson-gxbb-efuse.yaml
Documentation/devicetree/bindings/nvmem/amlogic,meson6-efuse.yaml
Documentation/devicetree/bindings/nvmem/apple,efuses.yaml
Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml
Documentation/devicetree/bindings/nvmem/microchip,sama7g5-otpc.yaml
Documentation/devicetree/bindings/nvmem/mxs-ocotp.yaml
Documentation/devicetree/bindings/nvmem/nvmem-deprecated-cells.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/nvmem/nvmem.yaml
Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
Documentation/devicetree/bindings/nvmem/qcom,sec-qfprom.yaml
Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml
Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml
Documentation/devicetree/bindings/nvmem/rockchip-efuse.yaml
Documentation/devicetree/bindings/nvmem/socionext,uniphier-efuse.yaml
Documentation/devicetree/bindings/nvmem/sunplus,sp7021-ocotp.yaml
Documentation/devicetree/bindings/rtc/amlogic,meson6-rtc.yaml

index b82ca03e969c2affea40954e1a6384860792cbb3..f322290ee5165f5de8b4168ceb9731cf7ac2a317 100644 (file)
@@ -43,7 +43,12 @@ patternProperties:
     deprecated: true
 
   "^otp(-[0-9]+)?$":
-    $ref: ../nvmem/nvmem.yaml#
+    type: object
+
+    allOf:
+      - $ref: ../nvmem/nvmem.yaml#
+      - $ref: ../nvmem/nvmem-deprecated-cells.yaml#
+
     unevaluatedProperties: false
 
     description: |
index 5474d63268dc5f3840c0ab65b747b638148e8521..9518281007af77694180dc00b4b8568578dfd616 100644 (file)
@@ -19,6 +19,7 @@ maintainers:
 allOf:
   - $ref: /schemas/mtd/partitions/partition.yaml#
   - $ref: /schemas/nvmem/nvmem.yaml#
+  - $ref: /schemas/nvmem/nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index e49c2754ff55d29c595599e42e7446079b9297fb..9801fe6f91b55fb43740ea28e20a02af0d9627c1 100644 (file)
@@ -11,6 +11,7 @@ maintainers:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index 84b3dfd21e090fff83b76b76c6f578f2b26b4013..b5cf740f96fa5cd44f82ddc0d8c590517cb91446 100644 (file)
@@ -12,6 +12,7 @@ maintainers:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index e0860b6b85f34648df439eda12778030b334f751..d3abdafdbca06245cdba000ce2ca757b5ce77d3f 100644 (file)
@@ -16,6 +16,7 @@ maintainers:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index 99e60d713dace749407ddd4fbb9a85e4c759ee1f..be1314454bec3e2cb5a82a3aaf64c7f9bbf5a8ea 100644 (file)
@@ -16,6 +16,7 @@ description: |
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index 7ec2988b597e8d9b2a73114476b8f20c721c014c..cf5f9e22bb7e66ffc0fdf08b78d6372c0b30bdb4 100644 (file)
@@ -16,6 +16,7 @@ maintainers:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   $nodename:
index a296d348adb4e4904d0b206a3ab7c7d274cc87ca..cc25f2927682ea8022122ec0afd6bb2fb3d691f2 100644 (file)
@@ -16,6 +16,7 @@ description: |
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index a9b822aeaa7edb2737c0ca68358cb8cf3daaa578..f43186f9860756914d4a99432bd743b520b0a33c 100644 (file)
@@ -11,6 +11,7 @@ maintainers:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
diff --git a/Documentation/devicetree/bindings/nvmem/nvmem-deprecated-cells.yaml b/Documentation/devicetree/bindings/nvmem/nvmem-deprecated-cells.yaml
new file mode 100644 (file)
index 0000000..951af28
--- /dev/null
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/nvmem-deprecated-cells.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NVMEM old syntax for fixed cells
+
+maintainers:
+  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+description: |
+  Before introducing NVMEM layouts all NVMEM (fixed) cells were defined
+  as direct device subnodes. That syntax was replaced by "fixed-layout"
+  and is deprecated now. No new bindings should use it.
+
+patternProperties:
+  "@[0-9a-f]+(,[0-7])?$":
+    type: object
+    allOf:
+      - $ref: layouts/fixed-cell.yaml
+      - properties:
+          compatible: false
+    deprecated: true
+
+additionalProperties: true
+
+...
index 9f921d94014222351e92f1f7e3ca276cd48437cf..4fd015d402cef4a23bb5fd3036188c8b95e0d3f3 100644 (file)
@@ -46,15 +46,6 @@ properties:
       container may reference more advanced (dynamic) layout
       parsers.
 
-patternProperties:
-  "@[0-9a-f]+(,[0-7])?$":
-    type: object
-    allOf:
-      - $ref: layouts/fixed-cell.yaml
-      - properties:
-          compatible: false
-    deprecated: true
-
 additionalProperties: true
 
 examples:
index 8740938c32eb2188307b1eabfee82e4e70114dbc..8c8f05d9eaf1e38932856edf84daa20811188dc8 100644 (file)
@@ -11,6 +11,7 @@ maintainers:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index 9b133f783d2939a81728b345e9578fb7e3d62641..2ada2099946d5feac37c3a338fb27f7aa20ce45e 100644 (file)
@@ -16,6 +16,7 @@ description:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index cd980def97b8c36b15a1c45ebfe4c49b99eaea02..068bedf5dbc9b9a6035cc63505760fbea8d556d6 100644 (file)
@@ -16,6 +16,7 @@ description: |
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index 9c6eff7889282be7ad0f872cc650356379e57b3d..a44d44b328091db6e3aafc8ed4689d2fec53b2a3 100644 (file)
@@ -49,6 +49,7 @@ required:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
   - if:
       properties:
index c5403e149080ceab83c755c7139d61aa0b1939e9..b80fd8d1ae5ba9b61348517f7afd8cd9672bb87f 100644 (file)
@@ -11,6 +11,7 @@ maintainers:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index efccc5aacbe0cd605c9efb8eac48588a95ba9670..e27cbae2d63a0f92a35b3c803f24ab4c03fcc3ec 100644 (file)
@@ -12,6 +12,7 @@ maintainers:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index da3f1de7d281740b9e2a02f2e1e68645e1208114..af97eeb8316cbaa5d1bec5f881b55d7adb2cf93a 100644 (file)
@@ -12,6 +12,7 @@ maintainers:
 
 allOf:
   - $ref: nvmem.yaml#
+  - $ref: nvmem-deprecated-cells.yaml#
 
 properties:
   compatible:
index 8bf7d3a9be98c599ba5f87eae33ee870ca2c827b..3a4551253e3ea5e07cfd71e8eb9c39f23400ea53 100644 (file)
@@ -13,6 +13,7 @@ maintainers:
 allOf:
   - $ref: rtc.yaml#
   - $ref: /schemas/nvmem/nvmem.yaml#
+  - $ref: /schemas/nvmem/nvmem-deprecated-cells.yaml#
 
 properties:
   compatible: