[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220420073146.38086-1-jerry.huang@nxp.com>
Date: Wed, 20 Apr 2022 15:31:45 +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/2 v4] dt-bindings: dspi: added for semtech sx1301
Add DT Binding doc for semtech sx1301
Signed-off-by: Changming Huang <jerry.huang@....com>
---
changes in v4:
- rename example node, adjust description
changes in v3:
- add the dt-bindings
.../bindings/spi/semtech,sx1301.yaml | 45 +++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/semtech,sx1301.yaml
diff --git a/Documentation/devicetree/bindings/spi/semtech,sx1301.yaml b/Documentation/devicetree/bindings/spi/semtech,sx1301.yaml
new file mode 100644
index 000000000000..420fe8d23a1e
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/semtech,sx1301.yaml
@@ -0,0 +1,45 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/spi/semtech,sx1301.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Semtech sx1301 SPI controller bindings
+
+maintainers:
+ - Changming Huang <jerry.huang@....com>
+
+allOf:
+ - $ref: "spi-controller.yaml"
+
+properties:
+ compatible:
+ const: semtech,sx1301
+
+ 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:
+ - |
+ spi@0 {
+ compatible = "semtech,sx1301";
+ 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