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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Convert cypress,hyperflash bindings to YAML schema

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

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@xxxxxx>
+
+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>;
+        };
+    };
-- 
2.32.0




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux