xref: /freebsd/sys/contrib/device-tree/Bindings/sound/renesas,idt821034.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*cb7aa33aSEmmanuel Vadot%YAML 1.2
3*cb7aa33aSEmmanuel Vadot---
4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/renesas,idt821034.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: Renesas IDT821034 codec device
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotmaintainers:
10*cb7aa33aSEmmanuel Vadot  - Herve Codina <herve.codina@bootlin.com>
11*cb7aa33aSEmmanuel Vadot
12*cb7aa33aSEmmanuel Vadotdescription: |
13*cb7aa33aSEmmanuel Vadot  The IDT821034 codec is a four channel PCM codec with onchip filters and
14*cb7aa33aSEmmanuel Vadot  programmable gain setting.
15*cb7aa33aSEmmanuel Vadot
16*cb7aa33aSEmmanuel Vadot  The time-slots used by the codec must be set and so, the properties
17*cb7aa33aSEmmanuel Vadot  'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and
18*cb7aa33aSEmmanuel Vadot  'dai-tdm-slot-rx-mask' must be present in the ALSA sound card node for
19*cb7aa33aSEmmanuel Vadot  sub-nodes that involve the codec. The codec uses one 8bit time-slot per
20*cb7aa33aSEmmanuel Vadot  channel.
21*cb7aa33aSEmmanuel Vadot  'dai-tdm-tdm-slot-with' must be set to 8.
22*cb7aa33aSEmmanuel Vadot
23*cb7aa33aSEmmanuel Vadot  The IDT821034 codec also supports 5 gpios (SLIC signals) per channel.
24*cb7aa33aSEmmanuel Vadot
25*cb7aa33aSEmmanuel VadotallOf:
26*cb7aa33aSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
27*cb7aa33aSEmmanuel Vadot  - $ref: dai-common.yaml#
28*cb7aa33aSEmmanuel Vadot
29*cb7aa33aSEmmanuel Vadotproperties:
30*cb7aa33aSEmmanuel Vadot  compatible:
31*cb7aa33aSEmmanuel Vadot    const: renesas,idt821034
32*cb7aa33aSEmmanuel Vadot
33*cb7aa33aSEmmanuel Vadot  reg:
34*cb7aa33aSEmmanuel Vadot    description:
35*cb7aa33aSEmmanuel Vadot      SPI device address.
36*cb7aa33aSEmmanuel Vadot    maxItems: 1
37*cb7aa33aSEmmanuel Vadot
38*cb7aa33aSEmmanuel Vadot  spi-max-frequency:
39*cb7aa33aSEmmanuel Vadot    maximum: 8192000
40*cb7aa33aSEmmanuel Vadot
41*cb7aa33aSEmmanuel Vadot  spi-cpha: true
42*cb7aa33aSEmmanuel Vadot
43*cb7aa33aSEmmanuel Vadot  '#sound-dai-cells':
44*cb7aa33aSEmmanuel Vadot    const: 0
45*cb7aa33aSEmmanuel Vadot
46*cb7aa33aSEmmanuel Vadot  '#gpio-cells':
47*cb7aa33aSEmmanuel Vadot    const: 2
48*cb7aa33aSEmmanuel Vadot
49*cb7aa33aSEmmanuel Vadot  gpio-controller: true
50*cb7aa33aSEmmanuel Vadot
51*cb7aa33aSEmmanuel Vadotrequired:
52*cb7aa33aSEmmanuel Vadot  - compatible
53*cb7aa33aSEmmanuel Vadot  - reg
54*cb7aa33aSEmmanuel Vadot  - spi-cpha
55*cb7aa33aSEmmanuel Vadot  - '#sound-dai-cells'
56*cb7aa33aSEmmanuel Vadot  - gpio-controller
57*cb7aa33aSEmmanuel Vadot  - '#gpio-cells'
58*cb7aa33aSEmmanuel Vadot
59*cb7aa33aSEmmanuel VadotunevaluatedProperties: false
60*cb7aa33aSEmmanuel Vadot
61*cb7aa33aSEmmanuel Vadotexamples:
62*cb7aa33aSEmmanuel Vadot  - |
63*cb7aa33aSEmmanuel Vadot    spi {
64*cb7aa33aSEmmanuel Vadot        #address-cells = <1>;
65*cb7aa33aSEmmanuel Vadot        #size-cells = <0>;
66*cb7aa33aSEmmanuel Vadot        audio-codec@0 {
67*cb7aa33aSEmmanuel Vadot            compatible = "renesas,idt821034";
68*cb7aa33aSEmmanuel Vadot            reg = <0>;
69*cb7aa33aSEmmanuel Vadot            spi-max-frequency = <8192000>;
70*cb7aa33aSEmmanuel Vadot            spi-cpha;
71*cb7aa33aSEmmanuel Vadot            #sound-dai-cells = <0>;
72*cb7aa33aSEmmanuel Vadot            gpio-controller;
73*cb7aa33aSEmmanuel Vadot            #gpio-cells = <2>;
74*cb7aa33aSEmmanuel Vadot        };
75*cb7aa33aSEmmanuel Vadot    };
76