Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: cirrus,cs4270: Convert to dtschema

Convert the Cirrus Logic CS4270 audio CODEC bindings to DT schema. Add
missing va-supply, vd-supply and vlc-supply properties, because they
are already being used in the DTS and the driver for this device.

Cc: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240709184231.125207-1-animeshagarwal28@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Animesh Agarwal and committed by
Mark Brown
e021e0ee a8915e2f

+59 -21
+59
Documentation/devicetree/bindings/sound/cirrus,cs4270.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/cirrus,cs4270.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Cirrus Logic CS4270 audio CODEC 8 + 9 + maintainers: 10 + - patches@opensource.cirrus.com 11 + 12 + description: 13 + The CS4270 is a stereo audio codec. The driver for this device currently only 14 + supports I2C. 15 + 16 + allOf: 17 + - $ref: dai-common.yaml# 18 + 19 + properties: 20 + compatible: 21 + const: cirrus,cs4270 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + '#sound-dai-cells': 27 + const: 0 28 + 29 + reset-gpios: 30 + description: 31 + This pin will be deasserted before communication to the codec starts. 32 + maxItems: 1 33 + 34 + va-supply: 35 + description: Analog power supply. 36 + 37 + vd-supply: 38 + description: Digital power supply. 39 + 40 + vlc-supply: 41 + description: Serial Control Port power supply. 42 + 43 + required: 44 + - compatible 45 + - reg 46 + 47 + unevaluatedProperties: false 48 + 49 + examples: 50 + - | 51 + i2c { 52 + #address-cells = <1>; 53 + #size-cells = <0>; 54 + 55 + codec@48 { 56 + compatible = "cirrus,cs4270"; 57 + reg = <0x48>; 58 + }; 59 + };
-21
Documentation/devicetree/bindings/sound/cs4270.txt
··· 1 - CS4270 audio CODEC 2 - 3 - The driver for this device currently only supports I2C. 4 - 5 - Required properties: 6 - 7 - - compatible : "cirrus,cs4270" 8 - 9 - - reg : the I2C address of the device for I2C 10 - 11 - Optional properties: 12 - 13 - - reset-gpios : a GPIO spec for the reset pin. If specified, it will be 14 - deasserted before communication to the codec starts. 15 - 16 - Example: 17 - 18 - codec: cs4270@48 { 19 - compatible = "cirrus,cs4270"; 20 - reg = <0x48>; 21 - };