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