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