-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: dt-bindings: tlv320aic32x4: convert to DT schema format
Convert the binding to DT schema format. Since commit 514b044 ("ASoC: tlv320aic32x4: Model PLL in CCF") clocks & clock-names = "mclk" is mandatory, it has been added to required properties as well. '#sound-dai-cells' is added for reference from simple-audio-card. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230616083549.2331830-1-alexander.stein@ew.tq-group.com Signed-off-by: Mark Brown <broonie@kernel.org>
- Loading branch information
Alexander Stein
authored and
Mark Brown
committed
Jun 16, 2023
1 parent
1a32b4b
commit 289650d
Showing
2 changed files
with
101 additions
and
42 deletions.
There are no files selected for viewing
101 changes: 101 additions & 0 deletions
101
Documentation/devicetree/bindings/sound/ti,tlv320aic32x4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
# Copyright (C) 2019 Texas Instruments Incorporated | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/sound/ti,tlv320aic32x4.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Texas Instruments TLV320AIC32x4 Stereo Audio codec | ||
|
||
maintainers: | ||
- Alexander Stein <alexander.stein@ew.tq-group.com> | ||
|
||
description: | | ||
The TLV320AIC32x4 audio codec can be accessed using I2C or SPI | ||
properties: | ||
compatible: | ||
enum: | ||
- ti,tas2505 | ||
- ti,tlv320aic32x4 | ||
- ti,tlv320aic32x6 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
items: | ||
- description: Master clock | ||
|
||
clock-names: | ||
items: | ||
- const: mclk | ||
|
||
av-supply: | ||
description: Analog core power supply | ||
|
||
dv-supply: | ||
description: Digital core power supply | ||
|
||
iov-supply: | ||
description: Digital IO power supply | ||
|
||
ldoin-supply: | ||
description: LDO power supply | ||
|
||
reset-gpios: | ||
maxItems: 1 | ||
|
||
'#sound-dai-cells': | ||
const: 0 | ||
|
||
aic32x4-gpio-func: | ||
description: | | ||
GPIO function configuration for pins MFP1-MFP5. | ||
Types are defined in include/sound/tlv320aic32x4.h | ||
$ref: /schemas/types.yaml#/definitions/uint32-array | ||
minItems: 5 | ||
maxItems: 5 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- clock-names | ||
- iov-supply | ||
|
||
allOf: | ||
- $ref: dai-common.yaml# | ||
- if: | ||
not: | ||
required: | ||
- ldoin-supply | ||
then: | ||
required: | ||
- av-supply | ||
- dv-supply | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
audio-codec@18 { | ||
compatible = "ti,tlv320aic32x4"; | ||
reg = <0x18>; | ||
iov-supply = <®_3v3>; | ||
ldoin-supply = <®_3v3>; | ||
clocks = <&clks 201>; | ||
clock-names = "mclk"; | ||
aic32x4-gpio-func= < | ||
0xff /* AIC32X4_MFPX_DEFAULT_VALUE */ | ||
0xff /* AIC32X4_MFPX_DEFAULT_VALUE */ | ||
0x04 /* MFP3 AIC32X4_MFP3_GPIO_ENABLED */ | ||
0xff /* AIC32X4_MFPX_DEFAULT_VALUE */ | ||
0x08 /* MFP5 AIC32X4_MFP5_GPIO_INPUT */ | ||
>; | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.