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