1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/zl38060.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ZL38060 Connected Home Audio Processor from Microsemi.
8
9description: |
10  The ZL38060 is a "Connected Home Audio Processor" from Microsemi,
11  which consists of a Digital Signal Processor (DSP), several Digital
12  Audio Interfaces (DAIs), analog outputs, and a block of 14 GPIOs.
13
14maintainers:
15  - Jaroslav Kysela <perex@perex.cz>
16  - Takashi Iwai <tiwai@suse.com>
17
18allOf:
19  - $ref: dai-common.yaml#
20
21properties:
22  compatible:
23    const: mscc,zl38060
24
25  reg:
26    description:
27      SPI device address.
28    maxItems: 1
29
30  spi-max-frequency:
31    maximum: 24000000
32
33  reset-gpios:
34    description:
35      A GPIO line handling reset of the chip. As the line is active low,
36      it should be marked GPIO_ACTIVE_LOW (see ../gpio/gpio.txt)
37    maxItems: 1
38
39  '#gpio-cells':
40    const: 2
41
42  gpio-controller: true
43
44  '#sound-dai-cells':
45    const: 0
46
47required:
48  - compatible
49  - reg
50  - '#gpio-cells'
51  - gpio-controller
52  - '#sound-dai-cells'
53
54unevaluatedProperties: false
55
56examples:
57  - |
58    #include <dt-bindings/gpio/gpio.h>
59    spi0 {
60        #address-cells = <1>;
61        #size-cells = <0>;
62
63        codec: zl38060@0 {
64            gpio-controller;
65            #gpio-cells = <2>;
66            #sound-dai-cells = <0>;
67            compatible = "mscc,zl38060";
68            reg = <0>;
69            spi-max-frequency = <12000000>;
70            reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
71        };
72    };
73