xref: /linux/Documentation/devicetree/bindings/sound/infineon,peb2466.yaml (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
14c03e952SHerve Codina# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
24c03e952SHerve Codina%YAML 1.2
34c03e952SHerve Codina---
44c03e952SHerve Codina$id: http://devicetree.org/schemas/sound/infineon,peb2466.yaml#
54c03e952SHerve Codina$schema: http://devicetree.org/meta-schemas/core.yaml#
64c03e952SHerve Codina
74c03e952SHerve Codinatitle: Infineon PEB2466 codec
84c03e952SHerve Codina
94c03e952SHerve Codinamaintainers:
104c03e952SHerve Codina  - Herve Codina <herve.codina@bootlin.com>
114c03e952SHerve Codina
124c03e952SHerve Codinadescription: |
134c03e952SHerve Codina  The Infineon PEB2466 codec is a programmable DSP-based four channels codec
144c03e952SHerve Codina  with filters capabilities.
154c03e952SHerve Codina
164c03e952SHerve Codina  The time-slots used by the codec must be set and so, the properties
174c03e952SHerve Codina  'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and
184c03e952SHerve Codina  'dai-tdm-slot-rx-mask' must be present in the sound card node for sub-nodes
194c03e952SHerve Codina  that involve the codec. The codec uses one 8bit time-slot per channel.
204c03e952SHerve Codina  'dai-tdm-tdm-slot-with' must be set to 8.
214c03e952SHerve Codina
224c03e952SHerve Codina  The PEB2466 codec also supports 28 gpios (signaling pins).
234c03e952SHerve Codina
244c03e952SHerve CodinaallOf:
254c03e952SHerve Codina  - $ref: /schemas/spi/spi-peripheral-props.yaml
264c03e952SHerve Codina  - $ref: dai-common.yaml#
274c03e952SHerve Codina
284c03e952SHerve Codinaproperties:
294c03e952SHerve Codina  compatible:
304c03e952SHerve Codina    const: infineon,peb2466
314c03e952SHerve Codina
324c03e952SHerve Codina  reg:
334c03e952SHerve Codina    description:
344c03e952SHerve Codina      SPI device address.
354c03e952SHerve Codina    maxItems: 1
364c03e952SHerve Codina
374c03e952SHerve Codina  clocks:
384c03e952SHerve Codina    items:
394c03e952SHerve Codina      - description: Master clock
404c03e952SHerve Codina
414c03e952SHerve Codina  clock-names:
424c03e952SHerve Codina    items:
434c03e952SHerve Codina      - const: mclk
444c03e952SHerve Codina
454c03e952SHerve Codina  spi-max-frequency:
464c03e952SHerve Codina    maximum: 8192000
474c03e952SHerve Codina
484c03e952SHerve Codina  reset-gpios:
494c03e952SHerve Codina    description:
504c03e952SHerve Codina      GPIO used to reset the device.
514c03e952SHerve Codina    maxItems: 1
524c03e952SHerve Codina
534c03e952SHerve Codina  firmware-name:
54*059870e5SKrzysztof Kozlowski    maxItems: 1
554c03e952SHerve Codina    description:
564c03e952SHerve Codina      Filters coefficients file to load. If this property is omitted, internal
574c03e952SHerve Codina      filters are disabled.
584c03e952SHerve Codina
594c03e952SHerve Codina  '#sound-dai-cells':
604c03e952SHerve Codina    const: 0
614c03e952SHerve Codina
624c03e952SHerve Codina  '#gpio-cells':
634c03e952SHerve Codina    const: 2
644c03e952SHerve Codina
654c03e952SHerve Codina  gpio-controller: true
664c03e952SHerve Codina
674c03e952SHerve Codinarequired:
684c03e952SHerve Codina  - compatible
694c03e952SHerve Codina  - reg
704c03e952SHerve Codina  - '#sound-dai-cells'
714c03e952SHerve Codina  - gpio-controller
724c03e952SHerve Codina  - '#gpio-cells'
734c03e952SHerve Codina
744c03e952SHerve CodinaunevaluatedProperties: false
754c03e952SHerve Codina
764c03e952SHerve Codinaexamples:
774c03e952SHerve Codina  - |
784c03e952SHerve Codina    #include <dt-bindings/gpio/gpio.h>
794c03e952SHerve Codina    spi {
804c03e952SHerve Codina        #address-cells = <1>;
814c03e952SHerve Codina        #size-cells = <0>;
824c03e952SHerve Codina        audio-codec@0 {
834c03e952SHerve Codina            compatible = "infineon,peb2466";
844c03e952SHerve Codina            reg = <0>;
854c03e952SHerve Codina            spi-max-frequency = <8192000>;
864c03e952SHerve Codina            reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
874c03e952SHerve Codina            #sound-dai-cells = <0>;
884c03e952SHerve Codina            gpio-controller;
894c03e952SHerve Codina            #gpio-cells = <2>;
904c03e952SHerve Codina        };
914c03e952SHerve Codina    };
92