[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220426022413.885092-1-jerry.huang@nxp.com>
Date: Tue, 26 Apr 2022 10:24:11 +0800
From: Changming Huang <jerry.huang@....com>
To: broonie@...nel.org, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, linux-spi@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
shawnguo@...nel.org, leoyang.li@....com,
linux-arm-kernel@...ts.infradead.org
Cc: Changming Huang <jerry.huang@....com>
Subject: [PATCH 1/3 v5] dt-bindings: dspi: added for MikcroBus socket
Signed-off-by: Changming Huang <jerry.huang@....com>
---
changes in v5:
- rename compatible name to mikcroe,mikcroe-socket
changes in v4:
- rename example node, adjust description
changes in v3:
- add the dt-bindings
.../bindings/spi/mikcroe,mikcroe-socket.yaml | 50 +++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/mikcroe,mikcroe-socket.yaml
diff --git a/Documentation/devicetree/bindings/spi/mikcroe,mikcroe-socket.yaml b/Documentation/devicetree/bindings/spi/mikcroe,mikcroe-socket.yaml
new file mode 100644
index 000000000000..2b0abf7f1d84
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/mikcroe,mikcroe-socket.yaml
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/spi/mikcroe,mikcroe-spi#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MikcroBus SPI device bindings
+
+maintainers:
+ - Changming Huang <jerry.huang@....com>
+
+allOf:
+ - $ref: "spi-controller.yaml"
+
+properties:
+ compatible:
+ const: mikcroe,mikcroe-socket
+
+ reg:
+ maxItems: 1
+
+ spi-max-frequency: true
+
+ fsl,spi-cs-sck-delay: true
+
+ fsl,spi-sck-cs-delay: true
+
+required:
+ - compatible
+ - reg
+ - spi-max-frequency
+
+additionalProperties: false
+
+examples:
+ - |
+ &dspi2 {
+ bus-num = <2>;
+ status = "okay";
+
+ spi@0 {
+ compatible = "mikcroe,mikcroe-socket";
+ reg = <0>;
+ spi-max-frequency = <2000000>;
+ fsl,spi-cs-sck-delay = <1000000>;
+ fsl,spi-sck-cs-delay = <50>;
+ };
+ };
+
+...
--
2.25.1
Powered by blists - more mailing lists