[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241216110341.3707-2-quic_pkumpatl@quicinc.com>
Date: Mon, 16 Dec 2024 16:33:40 +0530
From: Prasad Kumpatla <quic_pkumpatl@...cinc.com>
To: Fabio Estevam <festevam@...il.com>, Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>
Cc: linux-sound@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, quic_mohsquicinc.com@...lcomm.com,
kernel@...cinc.com, Prasad Kumpatla <quic_pkumpatl@...cinc.com>
Subject: [PATCH v1 1/2] ASoC: dt-bindings: Add support for master clock frequency
Introduce a property specifies the frequency of the master clock
provided to the codec slave. The slave has the capability to adjust
the frequency according to user needs in the defined range.
Also fixed yamllint check errors.
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@...cinc.com>
---
.../devicetree/bindings/sound/fsl,sgtl5000.yaml | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/sound/fsl,sgtl5000.yaml b/Documentation/devicetree/bindings/sound/fsl,sgtl5000.yaml
index c6ab1ca16763..2512cad10961 100644
--- a/Documentation/devicetree/bindings/sound/fsl,sgtl5000.yaml
+++ b/Documentation/devicetree/bindings/sound/fsl,sgtl5000.yaml
@@ -44,14 +44,14 @@ properties:
values of 2k, 4k or 8k. If set to 0 it will be off. If this node is not
mentioned or if the value is unknown, then micbias resistor is set to
4k.
- enum: [ 0, 2, 4, 8 ]
+ enum: [0, 2, 4, 8]
micbias-voltage-m-volts:
description: The bias voltage to be used in mVolts. The voltage can take
values from 1.25V to 3V by 250mV steps. If this node is not mentioned
or the value is unknown, then the value is set to 1.25V.
$ref: /schemas/types.yaml#/definitions/uint32
- enum: [ 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000 ]
+ enum: [1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000]
lrclk-strength:
description: |
@@ -64,7 +64,7 @@ properties:
2 = 3.33 mA 5.74 mA 8.03 mA
3 = 4.99 mA 8.61 mA 12.05 mA
$ref: /schemas/types.yaml#/definitions/uint32
- enum: [ 0, 1, 2, 3 ]
+ enum: [0, 1, 2, 3]
sclk-strength:
description: |
@@ -77,12 +77,20 @@ properties:
2 = 3.33 mA 5.74 mA 8.03 mA
3 = 4.99 mA 8.61 mA 12.05 mA
$ref: /schemas/types.yaml#/definitions/uint32
- enum: [ 0, 1, 2, 3 ]
+ enum: [0, 1, 2, 3]
port:
$ref: audio-graph-port.yaml#
unevaluatedProperties: false
+ mclk-rate:
+ description: |
+ Master clock rate in Hz. This property specifies the frequency
+ of the master clock provided to the codec slave.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 8000000
+ maximum: 27000000
+
required:
- compatible
- reg
@@ -108,6 +116,7 @@ examples:
micbias-voltage-m-volts = <2250>;
VDDA-supply = <®_3p3v>;
VDDIO-supply = <®_3p3v>;
+ mclk-rate = <12288000>;
};
};
...
--
2.17.1
Powered by blists - more mailing lists