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

ASoC: dt-bindings: ti,pcm1862: convert to dtschema

convert the Texas Instruments PCM186x Universal audio ADC bindings
to DT schema.

The PCM186x codec provides a single digital audio interface. Therefore
this binding adds a reference to dai-common.yaml and defines
'#sound-dai-cells = 0".

Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20251104-dtbs-v7-1-224aacb09671@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Ranganath V N and committed by
Mark Brown
aa897ffc c4e68959

+76 -42
-42
Documentation/devicetree/bindings/sound/pcm186x.txt
··· 1 - Texas Instruments PCM186x Universal Audio ADC 2 - 3 - These devices support both I2C and SPI (configured with pin strapping 4 - on the board). 5 - 6 - Required properties: 7 - 8 - - compatible : "ti,pcm1862", 9 - "ti,pcm1863", 10 - "ti,pcm1864", 11 - "ti,pcm1865" 12 - 13 - - reg : The I2C address of the device for I2C, the chip select 14 - number for SPI. 15 - 16 - - avdd-supply: Analog core power supply (3.3v) 17 - - dvdd-supply: Digital core power supply 18 - - iovdd-supply: Digital IO power supply 19 - See regulator/regulator.txt for more information 20 - 21 - CODEC input pins: 22 - * VINL1 23 - * VINR1 24 - * VINL2 25 - * VINR2 26 - * VINL3 27 - * VINR3 28 - * VINL4 29 - * VINR4 30 - 31 - The pins can be used in referring sound node's audio-routing property. 32 - 33 - Example: 34 - 35 - pcm186x: audio-codec@4a { 36 - compatible = "ti,pcm1865"; 37 - reg = <0x4a>; 38 - 39 - avdd-supply = <&reg_3v3_analog>; 40 - dvdd-supply = <&reg_3v3>; 41 - iovdd-supply = <&reg_1v8>; 42 - };
+76
Documentation/devicetree/bindings/sound/ti,pcm1862.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/ti,pcm1862.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments PCM186x Universal Audio ADC 8 + 9 + maintainers: 10 + - Ranganath V N <vnranganath.20@gmail.com> 11 + 12 + description: | 13 + The Texas Instruments PCM186x family are multi-channel audio ADCs 14 + that support both I2C and SPI control interfaces, selected by 15 + pin strapping. These devices include on-chip programmable gain 16 + amplifiers and support differential or single-ended analog inputs. 17 + 18 + CODEC input pins: 19 + * VINL1 20 + * VINR1 21 + * VINL2 22 + * VINR2 23 + * VINL3 24 + * VINR3 25 + * VINL4 26 + * VINR4 27 + 28 + The pins can be used in referring sound node's audio-routing property. 29 + 30 + allOf: 31 + - $ref: dai-common.yaml# 32 + 33 + properties: 34 + compatible: 35 + enum: 36 + - ti,pcm1862 37 + - ti,pcm1863 38 + - ti,pcm1864 39 + - ti,pcm1865 40 + 41 + reg: 42 + maxItems: 1 43 + 44 + avdd-supply: true 45 + 46 + dvdd-supply: true 47 + 48 + iovdd-supply: true 49 + 50 + '#sound-dai-cells': 51 + const: 0 52 + 53 + required: 54 + - compatible 55 + - reg 56 + - avdd-supply 57 + - dvdd-supply 58 + - iovdd-supply 59 + 60 + unevaluatedProperties: false 61 + 62 + examples: 63 + - | 64 + i2c { 65 + #address-cells = <1>; 66 + #size-cells = <0>; 67 + 68 + audio-codec@4a { 69 + compatible = "ti,pcm1865"; 70 + reg = <0x4a>; 71 + 72 + avdd-supply = <&reg_3v3_analog>; 73 + dvdd-supply = <&reg_3v3>; 74 + iovdd-supply = <&reg_1v8>; 75 + }; 76 + };