From: Nick Hawkins <[email protected]>

Add support for the HPE GXP SPI Controller.

Signed-off-by: Nick Hawkins <[email protected]>

---

v2:
 *Created binding documentation as it does not exist for linux.
---
 doc/device-tree-bindings/spi/hpe,gxp-spi.yaml | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 doc/device-tree-bindings/spi/hpe,gxp-spi.yaml

diff --git a/doc/device-tree-bindings/spi/hpe,gxp-spi.yaml 
b/doc/device-tree-bindings/spi/hpe,gxp-spi.yaml
new file mode 100644
index 0000000000..5e23de1847
--- /dev/null
+++ b/doc/device-tree-bindings/spi/hpe,gxp-spi.yaml
@@ -0,0 +1,37 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/spi/hpe,gxp-spi.yaml#";
+$schema: "http://devicetree.org/meta-schemas/core.yaml#";
+
+title: HPE GXP SPI Controller
+
+maintainers:
+  - Nick Hawkins <[email protected]>
+  - Jean-Marie Verdun <[email protected]>
+
+allOf:
+  - $ref: "spi-controller.yaml#"
+
+properties:
+  compatible:
+    const: mikrotik,rb4xx-spi
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    spi@c00000200{
+          compatible = "hpe,gxp-spi";
+          reg = <0xc0000200 0x80>;
+          #address-cells = <1>;
+          #size-cells = <0>;
+    };
+
-- 
2.17.1

Reply via email to