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