* [PATCH v2] ASoC: dt-bindings: wm8741: Convert to DT schema
@ 2026-11-09 16:55 Lorena Tanase
0 siblings, 0 replies; only message in thread
From: Lorena Tanase @ 2026-11-09 16:55 UTC (permalink / raw)
To: lgirdwood, broonie, robh, krzk+dt, conor+dt
Cc: linux-sound, devicetree, linux-kernel, Lorena Tanase
Convert the WM8741 audio CODEC bindings to DT schema.
Signed-off-by: Lorena Tanase <tanaselorena3@gmail.com>
---
.../devicetree/bindings/sound/wlf,wm8741.yaml | 40 +++++++++++++++++++
.../devicetree/bindings/sound/wm8741.txt | 29 --------------
2 files changed, 40 insertions(+), 29 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8741.yaml
delete mode 100644 Documentation/devicetree/bindings/sound/wm8741.txt
diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8741.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8741.yaml
new file mode 100644
index 000000000000..a9a7fc2414bb
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/wlf,wm8741.yaml
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/wlf,wm8741.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: WM8741 audio codec
+
+description: |
+ Wolfson Microelectronics WM8741 audio CODEC
+
+maintainers:
+ - patches@opensource.cirrus.com
+
+properties:
+ compatible:
+ const: wlf,wm8741
+
+ reg:
+ maxItems: 1
+
+diff-mode:
+ description: diferential output mode
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [0, 1, 2, 3]
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ wm8903: codec@1a {
+ compatible = "wlf,wm8741";
+ reg = <0x1a>;
+
+ diff-mode = <3>;
+ };
diff --git a/Documentation/devicetree/bindings/sound/wm8741.txt b/Documentation/devicetree/bindings/sound/wm8741.txt
deleted file mode 100644
index b69e196c741c..000000000000
--- a/Documentation/devicetree/bindings/sound/wm8741.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-WM8741 audio CODEC
-
-This device supports both I2C and SPI (configured with pin strapping
-on the board).
-
-Required properties:
-
- - compatible : "wlf,wm8741"
-
- - reg : the I2C address of the device for I2C, the chip select
- number for SPI.
-
-Optional properties:
-
- - diff-mode: Differential output mode configuration. Default value for field
- DIFF in register R8 (MODE_CONTROL_2). If absent, the default is 0, shall be:
- 0 = stereo
- 1 = mono left
- 2 = stereo reversed
- 3 = mono right
-
-Example:
-
-wm8741: codec@1a {
- compatible = "wlf,wm8741";
- reg = <0x1a>;
-
- diff-mode = <3>;
-};
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-09 16:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 16:55 [PATCH v2] ASoC: dt-bindings: wm8741: Convert to DT schema Lorena Tanase
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®