[PATCH v2 1/6] ASoC: dt-bindings: amlogic,gx-audin: add schema
Valerio Setti
vsetti at baylibre.com
Thu Sep 17 14:02:31 PDT 2026
AUDIN provides I2S audio input support to the Meson GX platforms
(GXBB/GXL).
Note: GXBB and GXL are not known to differ so the driver binds on the
'amlogic,gx-audin' fallback.
Signed-off-by: Valerio Setti <vsetti at baylibre.com>
---
.../bindings/sound/amlogic,gx-audin.yaml | 66 ++++++++++++++++++++++
1 file changed, 66 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/amlogic,gx-audin.yaml b/Documentation/devicetree/bindings/sound/amlogic,gx-audin.yaml
new file mode 100644
index 000000000000..76e6a6ddef36
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/amlogic,gx-audin.yaml
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/amlogic,gx-audin.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Amlogic GX AUDIN
+
+maintainers:
+ - Valerio Setti <vsetti at baylibre.com>
+
+description:
+ AUDIN is the audio input block of the Amlogic GXBB/GXL SoCs. It supports
+ various input formatters (I2S, SPDIF, PCM, HDMI) feeding three FIFOs that
+ transfer captured samples to memory. The sound-dai cell selects the FIFO.
+
+allOf:
+ - $ref: dai-common.yaml#
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - amlogic,gxbb-audin
+ - amlogic,gxl-audin
+ - const: amlogic,gx-audin
+
+ reg:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: AUDIN peripheral clock
+
+required:
+ - compatible
+ - reg
+ - resets
+ - interrupts
+ - clocks
+ - "#sound-dai-cells"
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/gxbb-clkc.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
+
+ audio-controller at a000 {
+ compatible = "amlogic,gxbb-audin", "amlogic,gx-audin";
+ reg = <0xa000 0x148>;
+ resets = <&reset RESET_AUDIN>;
+ interrupts = <GIC_SPI 7 IRQ_TYPE_EDGE_RISING>;
+ sound-name-prefix = "AUDIN";
+ #sound-dai-cells = <1>;
+ clocks = <&clkc CLKID_I2S_SPDIF>;
+ };
--
2.47.3
More information about the linux-amlogic
mailing list