[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240427075426.662671-2-qiujingbao.dlmu@gmail.com>
Date: Sat, 27 Apr 2024 15:54:25 +0800
From: Jingbao Qiu <qiujingbao.dlmu@...il.com>
To: broonie@...nel.org,
robh@...nel.org,
krzysztof.kozlowski+dt@...aro.org,
conor+dt@...nel.org,
unicorn_wang@...look.com,
inochiama@...look.com,
paul.walmsley@...ive.com,
palmer@...belt.com,
aou@...s.berkeley.edu
Cc: dlan@...too.org,
linux-spi@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org,
Jingbao Qiu <qiujingbao.dlmu@...il.com>
Subject: [PATCH v1 1/2] dt-bindings: mtd: add sophgo spi-nor-controller
Add YAML bindings for cv1800 spi nor controller.
Signed-off-by: Jingbao Qiu <qiujingbao.dlmu@...il.com>
---
.../bindings/spi/sophgo,spi-cv1800-nor.yaml | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/sophgo,spi-cv1800-nor.yaml
diff --git a/Documentation/devicetree/bindings/spi/sophgo,spi-cv1800-nor.yaml b/Documentation/devicetree/bindings/spi/sophgo,spi-cv1800-nor.yaml
new file mode 100644
index 000000000000..121a80fbf2d5
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/sophgo,spi-cv1800-nor.yaml
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/spi/sophgo,spi-cv1800-nor.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SPI controller for Sophgo RISC-V SoCs
+
+maintainers:
+ - Jingbao Qiu <qiujingbao.dlmu@...il.com>
+
+allOf:
+ - $ref: /schemas/spi/spi-controller.yaml#
+
+properties:
+ compatible:
+ const: sophgo,cv1800b-nor
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ spi@...00000 {
+ compatible = "sophgo,cv1800b-nor";
+ reg = <0x10000000 0x10000000>;
+ };
--
2.25.1
Powered by blists - more mailing lists