Skip to content

Commit e35cf9f

Browse files
Dan Murphybroonie
authored andcommitted
ASoC: tas2562: Convert the tas2562 binding to yaml
Convert the TAS2562 text file to yaml format. Signed-off-by: Dan Murphy <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f78a970 commit e35cf9f

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
# Copyright (C) 2019 Texas Instruments Incorporated
3+
%YAML 1.2
4+
---
5+
$id: "http://devicetree.org/schemas/sound/tas2562.yaml#"
6+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7+
8+
title: Texas Instruments TAS2562 Smart PA
9+
10+
maintainers:
11+
- Dan Murphy <[email protected]>
12+
13+
description: |
14+
The TAS2562 is a mono, digital input Class-D audio amplifier optimized for
15+
efficiently driving high peak power into small loudspeakers.
16+
Integrated speaker voltage and current sense provides for
17+
real time monitoring of loudspeaker behavior.
18+
19+
properties:
20+
compatible:
21+
enum:
22+
- ti,tas2562
23+
- ti,tas2563
24+
25+
reg:
26+
maxItems: 1
27+
description: |
28+
I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f
29+
30+
shut-down-gpios:
31+
description: GPIO used to control the state of the device.
32+
deprecated: true
33+
34+
shutdown-gpios:
35+
description: GPIO used to control the state of the device.
36+
37+
interrupts:
38+
maxItems: 1
39+
40+
ti,imon-slot-no:
41+
$ref: /schemas/types.yaml#/definitions/uint32
42+
description: TDM TX current sense time slot.
43+
44+
'#sound-dai-cells':
45+
const: 1
46+
47+
required:
48+
- compatible
49+
- reg
50+
51+
additionalProperties: false
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/gpio/gpio.h>
56+
i2c0 {
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
codec: codec@4c {
60+
compatible = "ti,tas2562";
61+
reg = <0x4c>;
62+
#sound-dai-cells = <1>;
63+
interrupt-parent = <&gpio1>;
64+
interrupts = <14>;
65+
shutdown-gpios = <&gpio1 15 0>;
66+
ti,imon-slot-no = <0>;
67+
};
68+
};
69+

0 commit comments

Comments
 (0)