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: ti,pcm512x: Convert to dtschema

Convert the PCM512x and TAS575x audio CODECs/amplifiers bindings to DT
schema format. Add missing sound-dai-cells property.

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://patch.msgid.link/20240717134729.51661-1-animeshagarwal28@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Animesh Agarwal and committed by
Mark Brown
00425bf8 8400291e

+101 -53
-53
Documentation/devicetree/bindings/sound/pcm512x.txt
··· 1 - PCM512x and TAS575x audio CODECs/amplifiers 2 - 3 - These devices support both I2C and SPI (configured with pin strapping 4 - on the board). The TAS575x devices only support I2C. 5 - 6 - Required properties: 7 - 8 - - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141", 9 - "ti,pcm5142", "ti,pcm5242", "ti,tas5754" or "ti,tas5756" 10 - 11 - - reg : the I2C address of the device for I2C, the chip select 12 - number for SPI. 13 - 14 - - AVDD-supply, DVDD-supply, and CPVDD-supply : power supplies for the 15 - device, as covered in bindings/regulator/regulator.txt 16 - 17 - Optional properties: 18 - 19 - - clocks : A clock specifier for the clock connected as SCLK. If this 20 - is absent the device will be configured to clock from BCLK. If pll-in 21 - and pll-out are specified in addition to a clock, the device is 22 - configured to accept clock input on a specified gpio pin. 23 - 24 - - pll-in, pll-out : gpio pins used to connect the pll using <1> 25 - through <6>. The device will be configured for clock input on the 26 - given pll-in pin and PLL output on the given pll-out pin. An 27 - external connection from the pll-out pin to the SCLK pin is assumed. 28 - Caution: the TAS-desvices only support gpios 1,2 and 3 29 - 30 - Examples: 31 - 32 - pcm5122: pcm5122@4c { 33 - compatible = "ti,pcm5122"; 34 - reg = <0x4c>; 35 - 36 - AVDD-supply = <&reg_3v3_analog>; 37 - DVDD-supply = <&reg_1v8>; 38 - CPVDD-supply = <&reg_3v3>; 39 - }; 40 - 41 - 42 - pcm5142: pcm5142@4c { 43 - compatible = "ti,pcm5142"; 44 - reg = <0x4c>; 45 - 46 - AVDD-supply = <&reg_3v3_analog>; 47 - DVDD-supply = <&reg_1v8>; 48 - CPVDD-supply = <&reg_3v3>; 49 - 50 - clocks = <&sck>; 51 - pll-in = <3>; 52 - pll-out = <6>; 53 - };
+101
Documentation/devicetree/bindings/sound/ti,pcm512x.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,pcm512x.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: PCM512x and TAS575x audio CODECs/amplifiers 8 + 9 + maintainers: 10 + - Animesh Agarwal <animeshagarwal28@gmail.com> 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - ti,pcm5121 19 + - ti,pcm5122 20 + - ti,pcm5141 21 + - ti,pcm5142 22 + - ti,pcm5242 23 + - ti,tas5754 24 + - ti,tas5756 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + AVDD-supply: true 30 + 31 + DVDD-supply: true 32 + 33 + CPVDD-supply: true 34 + 35 + clocks: 36 + maxItems: 1 37 + description: A clock specifier for the clock connected as SCLK. If this is 38 + absent the device will be configured to clock from BCLK. If pll-in and 39 + pll-out are specified in addition to a clock, the device is configured to 40 + accept clock input on a specified gpio pin. 41 + 42 + '#sound-dai-cells': 43 + const: 0 44 + 45 + pll-in: 46 + description: GPIO pin used to connect the pll using <1> through <6>. The 47 + device will be configured for clock input on the given pll-in pin. 48 + $ref: /schemas/types.yaml#/definitions/uint32 49 + minimum: 1 50 + maximum: 6 51 + 52 + pll-out: 53 + description: GPIO pin used to connect the pll using <1> through <6>. The 54 + device will be configured for PLL output on the given pll-out pin. An 55 + external connection from the pll-out pin to the SCLK pin is assumed. 56 + $ref: /schemas/types.yaml#/definitions/uint32 57 + minimum: 1 58 + maximum: 6 59 + 60 + required: 61 + - compatible 62 + - reg 63 + - AVDD-supply 64 + - DVDD-supply 65 + - CPVDD-supply 66 + 67 + if: 68 + properties: 69 + compatible: 70 + contains: 71 + enum: 72 + - ti,tas5754 73 + - ti,tas5756 74 + 75 + then: 76 + properties: 77 + pll-in: 78 + maximum: 3 79 + 80 + pll-out: 81 + maximum: 3 82 + 83 + unevaluatedProperties: false 84 + 85 + examples: 86 + - | 87 + i2c { 88 + #address-cells = <1>; 89 + #size-cells = <0>; 90 + codec@4c { 91 + compatible = "ti,pcm5142"; 92 + reg = <0x4c>; 93 + AVDD-supply = <&reg_3v3_analog>; 94 + DVDD-supply = <&reg_1v8>; 95 + CPVDD-supply = <&reg_3v3>; 96 + #sound-dai-cells = <0>; 97 + clocks = <&sck>; 98 + pll-in = <3>; 99 + pll-out = <6>; 100 + }; 101 + };