Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/ti,pcm1754.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments PCM1754 Stereo DAC
8
9description:
10 The PCM1754 is a simple stereo DAC that is controlled via hardware gpios.
11
12maintainers:
13 - Stefan Kerkmann <s.kerkmann@pengutronix.de>
14
15allOf:
16 - $ref: dai-common.yaml#
17
18properties:
19 compatible:
20 enum:
21 - ti,pcm1754
22
23 vcc-supply: true
24
25 '#sound-dai-cells':
26 const: 0
27
28 format-gpios:
29 maxItems: 1
30 description:
31 GPIO used to select the PCM format
32
33 mute-gpios:
34 maxItems: 1
35 description:
36 GPIO used to mute all outputs
37
38required:
39 - compatible
40 - '#sound-dai-cells'
41 - vcc-supply
42
43additionalProperties: false
44
45examples:
46 - |
47 #include <dt-bindings/gpio/gpio.h>
48 codec {
49 compatible = "ti,pcm1754";
50 #sound-dai-cells = <0>;
51
52 vcc-supply = <&vcc_reg>;
53 mute-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
54 format-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
55 };