Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 1/2 V4] ASoC: dt-bindings: Add cmx655 codec
@ 2025-02-14 21:58 Nikola Jelic
  2025-02-14 21:58 ` [PATCH 2/2 V5] ASoC: codecs: cmx655: Add CML's CMX655D codec Nikola Jelic
  2025-02-16 13:03 ` [PATCH 1/2 V4] ASoC: dt-bindings: Add cmx655 codec Krzysztof Kozlowski
  0 siblings, 2 replies; 8+ messages in thread
From: Nikola Jelic @ 2025-02-14 21:58 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, robh, krzk+dt, conor+dt,
	linux-sound, devicetree, linux-kernel
  Cc: rwalton

Signed-off-by: Nikola Jelic <nikola.jelic83@gmail.com>

---
V3 -> V4: review remarks
V2 -> V3: fixed dt_binding_check + yamllint warnings
V1 -> V2: removed the txt file, fixed review remarks
---
 .../bindings/sound/cml,cmx655d.yaml           | 62 +++++++++++++++++++
 .../devicetree/bindings/vendor-prefixes.yaml  |  2 +
 2 files changed, 64 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/cml,cmx655d.yaml

diff --git a/Documentation/devicetree/bindings/sound/cml,cmx655d.yaml b/Documentation/devicetree/bindings/sound/cml,cmx655d.yaml
new file mode 100644
index 000000000000..577e1d4942c6
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/cml,cmx655d.yaml
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/cml,cmx655d.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: CML Micro CMX655D codec
+
+maintainers:
+  - Richard Walton <rwalton@cmlmicro.com>
+  - Nikola Jelic <nikola.jelic83@gmail.com>
+
+description:
+  The CMX655D is an ultra-low power voice codec.
+
+allOf:
+  - $ref: dai-common.yaml#
+
+properties:
+  compatible:
+    const: cml,cmx655d
+
+  reg:
+    maxItems: 1
+
+  "#sound-dai-cells":
+    const: 0
+
+  reset-gpios:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    const: cmx-irq
+
+required:
+  - compatible
+  - reg
+  - '#sound-dai-cells'
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        audio-codec@54 {
+            compatible = "cml,cmx655d";
+            reg = <0x54>;
+            #sound-dai-cells = <0>;
+            reset-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
+            interrupt-parent = <&gpio>;
+            interrupts = <25 IRQ_TYPE_EDGE_RISING>;
+        };
+
+    };
+...
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index dac80c62b742..74f925f3e3cb 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -310,6 +310,8 @@ patternProperties:
     description: Carl Cloos Schweisstechnik GmbH.
   "^cloudengines,.*":
     description: Cloud Engines, Inc.
+  "^cml,.*":
+    description: CML Micro, Ltd.
   "^cnm,.*":
     description: Chips&Media, Inc.
   "^cnxt,.*":
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-03-24  7:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14 21:58 [PATCH 1/2 V4] ASoC: dt-bindings: Add cmx655 codec Nikola Jelic
2025-02-14 21:58 ` [PATCH 2/2 V5] ASoC: codecs: cmx655: Add CML's CMX655D codec Nikola Jelic
2025-02-16 13:04   ` Krzysztof Kozlowski
2025-02-16 13:03 ` [PATCH 1/2 V4] ASoC: dt-bindings: Add cmx655 codec Krzysztof Kozlowski
2025-02-16 13:06   ` Krzysztof Kozlowski
2025-03-21 22:22     ` [PATCH V6 1/2] " Nikola Jelic
2025-03-21 22:22       ` [PATCH V6 2/2] ASoC: codecs: cmx655: Add CML's CMX655D codec Nikola Jelic
2025-03-24  7:55       ` [PATCH V6 1/2] ASoC: dt-bindings: Add cmx655 codec Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox