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