Skip to contentSkip to conversation

dt-bindings: net: marvell-bluetooth: Convert txt bindings to yaml

PATCH Applied David Heidelberg 2 participants 2 messages Oct 9, 2021 – Oct 19, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: net: marvell-bluetooth: Convert txt bindings to yaml

Convert documentation for The Marvell Avastar 88W8897 into YAML syntax.

---
 .../bindings/net/marvell-bluetooth.txt        | 25 ---------------
 .../bindings/net/marvell-bluetooth.yaml       | 31 +++++++++++++++++++
 2 files changed, 31 insertions(+), 25 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/net/marvell-bluetooth.txt
 create mode 100644 Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
Documentation/devicetree/bindings/net/marvell-bluetooth.txt deleted +0 -25
deleted file mode 100644
index 0e2842296032..000000000000
@@ -1,25 +0,0 @@
-Marvell Bluetooth Chips
------------------------
-
-This documents the binding structure and common properties for serial
-attached Marvell Bluetooth devices. The following chips are included in
-this binding:
-
-* Marvell 88W8897 Bluetooth devices
-
-Required properties:
- - compatible: should be:
-    "mrvl,88w8897"
-
-Optional properties:
-None so far
-
-Example:
-
-&serial0 {
-	compatible = "ns16550a";
-	...
-	bluetooth {
-		compatible = "mrvl,88w8897";
-	};
-};
Documentation/devicetree/bindings/net/marvell-bluetooth.yaml new file +31 -0
new file mode 100644
index 000000000000..08813e3ecff6
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/net/marvell-bluetooth.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Marvell Bluetooth chips
+
+description: |
+  This documents the binding structure and common properties for serial
+  attached Marvell Bluetooth devices.
+
+maintainers:
+  - Rob Herring <[email protected]>
+
+properties:
+  compatible:
+    const: mrvl,88w8897
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    serial {
+      bluetooth {
+        compatible = "mrvl,88w8897";
+      };
+    };
Signature · 1 line
2.33.0
maintainer Applied
#1 lore raw
Quoted 10 lines · David Heidelberg

Convert documentation for The Marvell Avastar 88W8897 into YAML syntax.

---
 .../bindings/net/marvell-bluetooth.txt        | 25 ---------------
 .../bindings/net/marvell-bluetooth.yaml       | 31 +++++++++++++++++++
 2 files changed, 31 insertions(+), 25 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/net/marvell-bluetooth.txt
 create mode 100644 Documentation/devicetree/bindings/net/marvell-bluetooth.yaml

Applied, thanks!