Skip to content

Commit 87c0881

Browse files
KarlK90broonie
authored andcommitted
ASoC: dt-bindings: ti,pcm1754: add binding documentation
The Texas Instruments PCM1754 is a simple stereo DAC without any digital management interface but soft mute, PCM input format and 44.1 kHz digital de-emphasis can be configured via strapping pins. Only soft mute and PCM input format selection is currently exposed via optional GPIOs in the driver. Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/20250910-v6-12-topic-pcm1754-v2-1-0917dbe73c65@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 76eeb9b commit 87c0881

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
7+
title: Texas Instruments PCM1754 Stereo DAC
8+
9+
description:
10+
The PCM1754 is a simple stereo DAC that is controlled via hardware gpios.
11+
12+
maintainers:
13+
- Stefan Kerkmann <s.kerkmann@pengutronix.de>
14+
15+
allOf:
16+
- $ref: dai-common.yaml#
17+
18+
properties:
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+
38+
required:
39+
- compatible
40+
- '#sound-dai-cells'
41+
- vcc-supply
42+
43+
additionalProperties: false
44+
45+
examples:
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+
};

0 commit comments

Comments
 (0)