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

ASoC: dt-bindings: convert tas571x.txt to dt-schema

Convert the text bindings for the Texas Instruments
TAS5711/TAS5717/TAS5719/TAS5721 stereo power amplifiers to
dt-schema.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240611-topic-amlogic-upstream-bindings-convert-tas57xx-v2-1-38269edc1d95@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Neil Armstrong and committed by
Mark Brown
a9c8ca5d fe833e43

+133 -49
-49
Documentation/devicetree/bindings/sound/tas571x.txt
··· 1 - Texas Instruments TAS5711/TAS5717/TAS5719/TAS5721 stereo power amplifiers 2 - 3 - The codec is controlled through an I2C interface. It also has two other 4 - signals that can be wired up to GPIOs: reset (strongly recommended), and 5 - powerdown (optional). 6 - 7 - Required properties: 8 - 9 - - compatible: should be one of the following: 10 - - "ti,tas5707" 11 - - "ti,tas5711", 12 - - "ti,tas5717", 13 - - "ti,tas5719", 14 - - "ti,tas5721" 15 - - "ti,tas5733" 16 - - reg: The I2C address of the device 17 - - #sound-dai-cells: must be equal to 0 18 - 19 - Optional properties: 20 - 21 - - reset-gpios: GPIO specifier for the TAS571x's active low reset line 22 - - pdn-gpios: GPIO specifier for the TAS571x's active low powerdown line 23 - - clocks: clock phandle for the MCLK input 24 - - clock-names: should be "mclk" 25 - - AVDD-supply: regulator phandle for the AVDD supply (all chips) 26 - - DVDD-supply: regulator phandle for the DVDD supply (all chips) 27 - - HPVDD-supply: regulator phandle for the HPVDD supply (5717/5719) 28 - - PVDD_AB-supply: regulator phandle for the PVDD_AB supply (5717/5719) 29 - - PVDD_CD-supply: regulator phandle for the PVDD_CD supply (5717/5719) 30 - - PVDD_A-supply: regulator phandle for the PVDD_A supply (5711) 31 - - PVDD_B-supply: regulator phandle for the PVDD_B supply (5711) 32 - - PVDD_C-supply: regulator phandle for the PVDD_C supply (5711) 33 - - PVDD_D-supply: regulator phandle for the PVDD_D supply (5711) 34 - - DRVDD-supply: regulator phandle for the DRVDD supply (5721) 35 - - PVDD-supply: regulator phandle for the PVDD supply (5721) 36 - 37 - Example: 38 - 39 - tas5717: audio-codec@2a { 40 - compatible = "ti,tas5717"; 41 - reg = <0x2a>; 42 - #sound-dai-cells = <0>; 43 - 44 - reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; 45 - pdn-gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; 46 - 47 - clocks = <&clk_core CLK_I2S>; 48 - clock-names = "mclk"; 49 - };
+133
Documentation/devicetree/bindings/sound/ti,tas57xx.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,tas57xx.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments TAS5711/TAS5717/TAS5719/TAS5721 stereo power amplifiers 8 + 9 + maintainers: 10 + - Neil Armstrong <neil.armstrong@linaro.org> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - ti,tas5707 16 + - ti,tas5711 17 + - ti,tas5717 18 + - ti,tas5719 19 + - ti,tas5721 20 + - ti,tas5733 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + reset-gpios: 26 + maxItems: 1 27 + description: GPIO for the active low reset line 28 + 29 + pdn-gpios: 30 + maxItems: 1 31 + description: GPIO for the active low powerdown line 32 + 33 + clocks: 34 + maxItems: 1 35 + 36 + clock-names: 37 + const: mclk 38 + 39 + AVDD-supply: true 40 + DVDD-supply: true 41 + HPVDD-supply: true 42 + PVDD_AB-supply: true 43 + PVDD_CD-supply: true 44 + PVDD_A-supply: true 45 + PVDD_B-supply: true 46 + PVDD_C-supply: true 47 + PVDD_D-supply: true 48 + DRVDD-supply: true 49 + PVDD-supply: true 50 + 51 + '#sound-dai-cells': 52 + const: 0 53 + 54 + port: 55 + $ref: audio-graph-port.yaml# 56 + unevaluatedProperties: false 57 + 58 + required: 59 + - compatible 60 + - reg 61 + - '#sound-dai-cells' 62 + 63 + allOf: 64 + - $ref: dai-common.yaml# 65 + - if: 66 + properties: 67 + compatible: 68 + contains: 69 + enum: 70 + - ti,tas5717 71 + - ti,tas5719 72 + then: 73 + properties: 74 + PVDD_A-supply: false 75 + PVDD_B-supply: false 76 + PVDD_C-supply: false 77 + PVDD_D-supply: false 78 + DRVDD-supply: false 79 + PVDD-supply: false 80 + 81 + - if: 82 + properties: 83 + compatible: 84 + contains: 85 + enum: 86 + - ti,tas5711 87 + then: 88 + properties: 89 + HPVDD-supply: false 90 + PVDD_AB-supply: false 91 + PVDD_CD-supply: false 92 + DRVDD-supply: false 93 + PVDD-supply: false 94 + 95 + - if: 96 + properties: 97 + compatible: 98 + contains: 99 + enum: 100 + - ti,tas5721 101 + then: 102 + properties: 103 + HPVDD-supply: false 104 + PVDD_AB-supply: false 105 + PVDD_CD-supply: false 106 + PVDD_A-supply: false 107 + PVDD_B-supply: false 108 + PVDD_C-supply: false 109 + PVDD_D-supply: false 110 + 111 + unevaluatedProperties: false 112 + 113 + examples: 114 + - | 115 + i2c { 116 + #address-cells = <1>; 117 + #size-cells = <0>; 118 + 119 + codec@2a { 120 + compatible = "ti,tas5717"; 121 + reg = <0x2a>; 122 + #sound-dai-cells = <0>; 123 + reset-gpios = <&gpio1 15 0>; 124 + pdn-gpios = <&gpio1 15 0>; 125 + AVDD-supply = <&avdd_supply>; 126 + DVDD-supply = <&dvdd_supply>; 127 + HPVDD-supply = <&hpvdd_supply>; 128 + PVDD_AB-supply = <&pvdd_ab_supply>; 129 + PVDD_CD-supply = <&pvdd_cd_supply>; 130 + }; 131 + }; 132 + 133 + ...