xref: /linux/Documentation/devicetree/bindings/sound/foursemi,fs2105s.yaml (revision 48a710760e10a4f36e11233a21860796ba204b1e)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/foursemi,fs2105s.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: FourSemi FS2104/5S Digital Audio Amplifier
8
9maintainers:
10  - Nick Li <nick.li@foursemi.com>
11
12description:
13  The FS2104 is a 15W Inductor-Less, Stereo, Closed-Loop,
14  Digital Input Class-D Power Amplifier with Enhanced Signal Processing.
15  The FS2105S is a 30W Inductor-Less, Stereo, Closed-Loop,
16  Digital Input Class-D Power Amplifier with Enhanced Signal Processing.
17
18properties:
19  compatible:
20    oneOf:
21      - items:
22          - enum:
23              - foursemi,fs2104
24          - const: foursemi,fs2105s
25      - enum:
26          - foursemi,fs2105s
27
28  reg:
29    maxItems: 1
30
31  clocks:
32    items:
33      - description: The clock of I2S BCLK
34
35  clock-names:
36    items:
37      - const: bclk
38
39  interrupts:
40    maxItems: 1
41
42  '#sound-dai-cells':
43    const: 0
44
45  pvdd-supply:
46    description:
47      Regulator for power supply(PVDD in datasheet).
48
49  dvdd-supply:
50    description:
51      Regulator for digital supply(DVDD in datasheet).
52
53  reset-gpios:
54    maxItems: 1
55    description:
56      It's the SDZ pin in datasheet, the pin is active low,
57      it will power down and reset the chip to shut down state.
58
59  firmware-name:
60    maxItems: 1
61    description: |
62      The firmware(*.bin) contains:
63      a. Register initialization settings
64      b. DSP effect parameters
65      c. Multi-scene sound effect configurations(optional)
66      It's gernerated by FourSemi's tuning tool.
67
68required:
69  - compatible
70  - reg
71  - '#sound-dai-cells'
72  - pvdd-supply
73  - dvdd-supply
74  - reset-gpios
75  - firmware-name
76
77allOf:
78  - $ref: dai-common.yaml#
79
80unevaluatedProperties: false
81
82examples:
83  - |
84    #include <dt-bindings/gpio/gpio.h>
85    i2c {
86        #address-cells = <1>;
87        #size-cells = <0>;
88        audio-codec@68 {
89            compatible = "foursemi,fs2105s";
90            reg = <0x68>;
91            clocks = <&clocks 18>;
92            clock-names = "bclk";
93            #sound-dai-cells = <0>;
94            pvdd-supply = <&pvdd_supply>;
95            dvdd-supply = <&dvdd_supply>;
96            reset-gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
97            firmware-name = "fs2105s-btl-2p0-0s.bin";
98            pinctrl-names = "default";
99            pinctrl-0 = <&fs210x_pins_default>;
100        };
101    };
102