]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: dt-bindings: lpc32xx: Add lpc32xx i2s DT binding
authorPiotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
Thu, 27 Jun 2024 15:00:21 +0000 (17:00 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jun 2024 12:39:22 +0000 (13:39 +0100)
Add nxp,lpc3220-i2s DT binding documentation.

Signed-off-by: Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240627150046.258795-4-piotr.wojtaszczyk@timesys.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/nxp,lpc3220-i2s.yaml [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/sound/nxp,lpc3220-i2s.yaml b/Documentation/devicetree/bindings/sound/nxp,lpc3220-i2s.yaml
new file mode 100644 (file)
index 0000000..40a0877
--- /dev/null
@@ -0,0 +1,73 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/nxp,lpc3220-i2s.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP LPC32XX I2S Controller
+
+description:
+  The I2S controller in LPC32XX SoCs, ASoC DAI.
+
+maintainers:
+  - J.M.B. Downing <jonathan.downing@nautel.com>
+  - Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
+
+allOf:
+  - $ref: dai-common.yaml#
+
+properties:
+  compatible:
+    enum:
+      - nxp,lpc3220-i2s
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    items:
+      - description: input clock of the peripheral.
+
+  dmas:
+    items:
+      - description: RX DMA Channel
+      - description: TX DMA Channel
+
+  dma-names:
+    items:
+      - const: rx
+      - const: tx
+
+  "#sound-dai-cells":
+    const: 0
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - dmas
+  - dma-names
+  - '#sound-dai-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/lpc32xx-clock.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2s@20094000 {
+      compatible = "nxp,lpc3220-i2s";
+      reg = <0x20094000 0x1000>;
+      interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
+      clocks = <&clk LPC32XX_CLK_I2S0>;
+      dmas = <&dma 0 1>, <&dma 13 1>;
+      dma-names = "rx", "tx";
+      #sound-dai-cells = <0>;
+    };
+
+...
index d3b064ce0ba634eb5c9d574c1a2b9bd88f3db811..5e5701402009945d8cc4ecb46e3f62edd1863bf4 100644 (file)
@@ -8909,6 +8909,15 @@ S:       Maintained
 F:     sound/soc/fsl/fsl*
 F:     sound/soc/fsl/imx*
 
+FREESCALE SOC LPC32XX SOUND DRIVERS
+M:     J.M.B. Downing <jonathan.downing@nautel.com>
+M:     Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
+R:     Vladimir Zapolskiy <vz@mleia.com>
+L:     alsa-devel@alsa-project.org (moderated for non-subscribers)
+L:     linuxppc-dev@lists.ozlabs.org
+S:     Maintained
+F:     Documentation/devicetree/bindings/sound/nxp,lpc3220-i2s.yaml
+
 FREESCALE SOC SOUND QMC DRIVER
 M:     Herve Codina <herve.codina@bootlin.com>
 L:     alsa-devel@alsa-project.org (moderated for non-subscribers)