Debian Codegraph @

Documentation/devicetree/bindings/sound/realtek,rt5575.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/realtek,rt5575.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: ALC5575 audio CODEC
8
9 maintainers:
10 - Oder Chiou <[email protected]>
11
12 description:
13 The device supports both I2C and SPI. I2C is mandatory, while SPI is
14 optional depending on the hardware configuration. SPI is used for
15 firmware loading if present.
16
17 allOf:
18 - $ref: dai-common.yaml#
19
20 properties:
21 compatible:
22 const: realtek,rt5575
23
24 reg:
25 maxItems: 1
26
27 spi-parent:
28 description:
29 Optional phandle reference to the SPI controller used for firmware
30 loading. The argument specifies the chip select.
31 $ref: /schemas/types.yaml#/definitions/phandle-array
32
33 required:
34 - compatible
35 - reg
36
37 unevaluatedProperties: false
38
39 examples:
40 # I2C-only node
41 - |
42 i2c {
43 #address-cells = <1>;
44 #size-cells = <0>;
45 codec@57 {
46 compatible = "realtek,rt5575";
47 reg = <0x57>;
48 };
49 };
50
51 # I2C + optional SPI node
52 - |
53 i2c {
54 #address-cells = <1>;
55 #size-cells = <0>;
56 codec@57 {
57 compatible = "realtek,rt5575";
58 reg = <0x57>;
59 spi-parent = <&spi0 0>; /* chip-select 0 */
60 };
61 };