diff mbox series

[1/2] dt-bindings: mtd: Convert cypress, hyperflash to YAML schema

Message ID 20210611053533.16701-2-vigneshr@ti.com
State New
Headers show
Series mtd: Convert hyperflash/hyperbus bindings to YAML schema | expand

Commit Message

Vignesh Raghavendra June 11, 2021, 5:35 a.m. UTC
Convert cypress,hyperflash bindings to YAML schema

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
---
 .../bindings/mtd/cypress,hyperflash.yaml      | 51 +++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mtd/cypress,hyperflash.yaml

Comments

Rob Herring June 11, 2021, 3:10 p.m. UTC | #1
On Thu, Jun 10, 2021 at 11:35 PM Vignesh Raghavendra <vigneshr@ti.com> wrote:
>
> Convert cypress,hyperflash bindings to YAML schema
>
> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
> ---
>  .../bindings/mtd/cypress,hyperflash.yaml      | 51 +++++++++++++++++++
>  1 file changed, 51 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mtd/cypress,hyperflash.yaml

This isn't needed[1].

Rob

[1] https://lore.kernel.org/linux-devicetree/20210607193500.3085920-1-robh@kernel.org/
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mtd/cypress,hyperflash.yaml b/Documentation/devicetree/bindings/mtd/cypress,hyperflash.yaml
new file mode 100644
index 000000000000..4341c0b0410c
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/cypress,hyperflash.yaml
@@ -0,0 +1,51 @@ 
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mtd/cypress,hyperflash.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: HyperFlash serial NOR flash chips
+
+maintainers:
+  - Vignesh Raghavendra <vigneshr@ti.com>
+
+allOf:
+  - $ref: "mtd.yaml#"
+
+properties:
+  compatible:
+    items:
+      - const: cypress,hyperflash
+      - const: cfi-flash
+    description:
+      HyperFlash serial NOR flash chips compliant with Cypress HyperBus
+      specification and supports Cypress CFI specification 1.5 command set.
+
+  reg:
+    maxItems: 1
+
+  partitions:
+    type: object
+
+  '#address-cells': true
+  '#size-cells': true
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    memory-controller {
+        #address-cells = <1>;
+        #size-cells = <1>;
+
+        flash@0 {
+            #address-cells = <1>;
+            #size-cells = <1>;
+            compatible = "cypress,hyperflash", "cfi-flash";
+            reg = <0x0 0x4000000>;
+        };
+    };