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
18properties:
19  compatible:
20    const: mscc,zl38060
21
22  reg:
23    description:
24      SPI device address.
25    maxItems: 1
26
27  spi-max-frequency:
28    maximum: 24000000
29
30  reset-gpios:
31    description:
32      A GPIO line handling reset of the chip. As the line is active low,
33      it should be marked GPIO_ACTIVE_LOW (see ../gpio/gpio.txt)
34    maxItems: 1
35
36  '#gpio-cells':
37    const: 2
38
39  gpio-controller: true
40
41  '#sound-dai-cells':
42    const: 0
43
44required:
45  - compatible
46  - reg
47  - '#gpio-cells'
48  - gpio-controller
49  - '#sound-dai-cells'
50
51additionalProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/gpio/gpio.h>
56    spi0 {
57        #address-cells = <1>;
58        #size-cells = <0>;
59
60        codec: zl38060@0 {
61            gpio-controller;
62            #gpio-cells = <2>;
63            #sound-dai-cells = <0>;
64            compatible = "mscc,zl38060";
65            reg = <0>;
66            spi-max-frequency = <12000000>;
67            reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
68        };
69    };
70