From ae8fc2948b48f001514d4b73167fcef3b398a5fb Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Thu, 20 Jun 2024 00:32:39 +0000 Subject: ASoC: dt-bindings: add missing vender prefix on filename Many Sound yaml files doesn't have vender prefix on filename. Add missing vender prefix for these files. Signed-off-by: Kuninori Morimoto Reviewed-by: Daniel Baluta Reviewed-by: Krzysztof Kozlowski Link: https://msgid.link/r/87wmmkpi6w.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- .../devicetree/bindings/sound/ak4375.yaml | 60 ------ .../devicetree/bindings/sound/ak4613.yaml | 59 ------ .../devicetree/bindings/sound/ak4642.yaml | 59 ------ .../bindings/sound/asahi-kasei,ak4375.yaml | 60 ++++++ .../bindings/sound/asahi-kasei,ak4613.yaml | 59 ++++++ .../bindings/sound/asahi-kasei,ak4642.yaml | 59 ++++++ .../devicetree/bindings/sound/fsl,sgtl5000.yaml | 113 +++++++++++ .../devicetree/bindings/sound/mscc,zl38060.yaml | 72 +++++++ .../devicetree/bindings/sound/realtek,rt1019.yaml | 35 ++++ .../devicetree/bindings/sound/rt1019.yaml | 35 ---- .../devicetree/bindings/sound/sgtl5000.yaml | 113 ----------- .../devicetree/bindings/sound/tas2562.yaml | 81 -------- .../devicetree/bindings/sound/tas2770.yaml | 87 --------- .../devicetree/bindings/sound/tas27xx.yaml | 82 -------- .../devicetree/bindings/sound/tas5805m.yaml | 57 ------ .../devicetree/bindings/sound/ti,tas2562.yaml | 81 ++++++++ .../devicetree/bindings/sound/ti,tas2770.yaml | 87 +++++++++ .../devicetree/bindings/sound/ti,tas27xx.yaml | 82 ++++++++ .../devicetree/bindings/sound/ti,tas5805m.yaml | 57 ++++++ .../bindings/sound/ti,tlv320adcx140.yaml | 209 +++++++++++++++++++++ .../devicetree/bindings/sound/tlv320adcx140.yaml | 209 --------------------- .../devicetree/bindings/sound/wlf,wm8750.yaml | 42 +++++ .../devicetree/bindings/sound/wm8750.yaml | 42 ----- .../devicetree/bindings/sound/zl38060.yaml | 72 ------- 24 files changed, 956 insertions(+), 956 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/ak4375.yaml delete mode 100644 Documentation/devicetree/bindings/sound/ak4613.yaml delete mode 100644 Documentation/devicetree/bindings/sound/ak4642.yaml create mode 100644 Documentation/devicetree/bindings/sound/asahi-kasei,ak4375.yaml create mode 100644 Documentation/devicetree/bindings/sound/asahi-kasei,ak4613.yaml create mode 100644 Documentation/devicetree/bindings/sound/asahi-kasei,ak4642.yaml create mode 100644 Documentation/devicetree/bindings/sound/fsl,sgtl5000.yaml create mode 100644 Documentation/devicetree/bindings/sound/mscc,zl38060.yaml create mode 100644 Documentation/devicetree/bindings/sound/realtek,rt1019.yaml delete mode 100644 Documentation/devicetree/bindings/sound/rt1019.yaml delete mode 100644 Documentation/devicetree/bindings/sound/sgtl5000.yaml delete mode 100644 Documentation/devicetree/bindings/sound/tas2562.yaml delete mode 100644 Documentation/devicetree/bindings/sound/tas2770.yaml delete mode 100644 Documentation/devicetree/bindings/sound/tas27xx.yaml delete mode 100644 Documentation/devicetree/bindings/sound/tas5805m.yaml create mode 100644 Documentation/devicetree/bindings/sound/ti,tas2562.yaml create mode 100644 Documentation/devicetree/bindings/sound/ti,tas2770.yaml create mode 100644 Documentation/devicetree/bindings/sound/ti,tas27xx.yaml create mode 100644 Documentation/devicetree/bindings/sound/ti,tas5805m.yaml create mode 100644 Documentation/devicetree/bindings/sound/ti,tlv320adcx140.yaml delete mode 100644 Documentation/devicetree/bindings/sound/tlv320adcx140.yaml create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8750.yaml delete mode 100644 Documentation/devicetree/bindings/sound/wm8750.yaml delete mode 100644 Documentation/devicetree/bindings/sound/zl38060.yaml (limited to 'Documentation') diff --git a/Documentation/devicetree/bindings/sound/ak4375.yaml b/Documentation/devicetree/bindings/sound/ak4375.yaml deleted file mode 100644 index 587598e122c6..000000000000 --- a/Documentation/devicetree/bindings/sound/ak4375.yaml +++ /dev/null @@ -1,60 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/ak4375.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: AK4375 DAC and headphones amplifier - -maintainers: - - Vincent Knecht - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - const: asahi-kasei,ak4375 - - reg: - maxItems: 1 - - '#sound-dai-cells': - const: 0 - - avdd-supply: - description: regulator phandle for the AVDD power supply. - - tvdd-supply: - description: regulator phandle for the TVDD power supply. - - pdn-gpios: - description: optional GPIO to set the PDN pin. - -required: - - compatible - - reg - - '#sound-dai-cells' - - avdd-supply - - tvdd-supply - -unevaluatedProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - headphones: audio-codec@10 { - compatible = "asahi-kasei,ak4375"; - reg = <0x10>; - avdd-supply = <®_headphones_avdd>; - tvdd-supply = <&pm8916_l6>; - pdn-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>; - pinctrl-names = "default"; - pinctrl-0 = <&headphones_pdn_default>; - #sound-dai-cells = <0>; - }; - }; diff --git a/Documentation/devicetree/bindings/sound/ak4613.yaml b/Documentation/devicetree/bindings/sound/ak4613.yaml deleted file mode 100644 index 75e13414d6eb..000000000000 --- a/Documentation/devicetree/bindings/sound/ak4613.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/ak4613.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: AK4613 I2C transmitter - -maintainers: - - Kuninori Morimoto - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - const: asahi-kasei,ak4613 - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - "#sound-dai-cells": - const: 0 - - ports: - $ref: audio-graph-port.yaml#/definitions/ports - - port: - $ref: audio-graph-port.yaml# - unevaluatedProperties: false - -patternProperties: - "^asahi-kasei,in[1-2]-single-end$": - description: Input Pin 1 - 2. - $ref: /schemas/types.yaml#/definitions/flag - - "^asahi-kasei,out[1-6]-single-end$": - description: Output Pin 1 - 6. - $ref: /schemas/types.yaml#/definitions/flag - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - ak4613: codec@10 { - compatible = "asahi-kasei,ak4613"; - reg = <0x10>; - }; - }; diff --git a/Documentation/devicetree/bindings/sound/ak4642.yaml b/Documentation/devicetree/bindings/sound/ak4642.yaml deleted file mode 100644 index 437fe5d7cae1..000000000000 --- a/Documentation/devicetree/bindings/sound/ak4642.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/ak4642.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: AK4642 I2C transmitter - -maintainers: - - Kuninori Morimoto - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - enum: - - asahi-kasei,ak4642 - - asahi-kasei,ak4643 - - asahi-kasei,ak4648 - - reg: - maxItems: 1 - - "#clock-cells": - const: 0 - "#sound-dai-cells": - const: 0 - - clocks: - maxItems: 1 - - clock-frequency: - description: common clock binding; frequency of MCKO - - clock-output-names: - description: common clock name - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - ak4643: codec@12 { - compatible = "asahi-kasei,ak4643"; - #sound-dai-cells = <0>; - reg = <0x12>; - #clock-cells = <0>; - clocks = <&audio_clock>; - clock-frequency = <12288000>; - clock-output-names = "ak4643_mcko"; - }; - }; diff --git a/Documentation/devicetree/bindings/sound/asahi-kasei,ak4375.yaml b/Documentation/devicetree/bindings/sound/asahi-kasei,ak4375.yaml new file mode 100644 index 000000000000..bc07fcba535b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/asahi-kasei,ak4375.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/asahi-kasei,ak4375.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AK4375 DAC and headphones amplifier + +maintainers: + - Vincent Knecht + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: asahi-kasei,ak4375 + + reg: + maxItems: 1 + + '#sound-dai-cells': + const: 0 + + avdd-supply: + description: regulator phandle for the AVDD power supply. + + tvdd-supply: + description: regulator phandle for the TVDD power supply. + + pdn-gpios: + description: optional GPIO to set the PDN pin. + +required: + - compatible + - reg + - '#sound-dai-cells' + - avdd-supply + - tvdd-supply + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + headphones: audio-codec@10 { + compatible = "asahi-kasei,ak4375"; + reg = <0x10>; + avdd-supply = <®_headphones_avdd>; + tvdd-supply = <&pm8916_l6>; + pdn-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&headphones_pdn_default>; + #sound-dai-cells = <0>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/asahi-kasei,ak4613.yaml b/Documentation/devicetree/bindings/sound/asahi-kasei,ak4613.yaml new file mode 100644 index 000000000000..b49a6cff9f1f --- /dev/null +++ b/Documentation/devicetree/bindings/sound/asahi-kasei,ak4613.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/asahi-kasei,ak4613.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AK4613 I2C transmitter + +maintainers: + - Kuninori Morimoto + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: asahi-kasei,ak4613 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#sound-dai-cells": + const: 0 + + ports: + $ref: audio-graph-port.yaml#/definitions/ports + + port: + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + +patternProperties: + "^asahi-kasei,in[1-2]-single-end$": + description: Input Pin 1 - 2. + $ref: /schemas/types.yaml#/definitions/flag + + "^asahi-kasei,out[1-6]-single-end$": + description: Output Pin 1 - 6. + $ref: /schemas/types.yaml#/definitions/flag + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + ak4613: codec@10 { + compatible = "asahi-kasei,ak4613"; + reg = <0x10>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/asahi-kasei,ak4642.yaml b/Documentation/devicetree/bindings/sound/asahi-kasei,ak4642.yaml new file mode 100644 index 000000000000..fc03f0373a1a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/asahi-kasei,ak4642.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/asahi-kasei,ak4642.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AK4642 I2C transmitter + +maintainers: + - Kuninori Morimoto + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - asahi-kasei,ak4642 + - asahi-kasei,ak4643 + - asahi-kasei,ak4648 + + reg: + maxItems: 1 + + "#clock-cells": + const: 0 + "#sound-dai-cells": + const: 0 + + clocks: + maxItems: 1 + + clock-frequency: + description: common clock binding; frequency of MCKO + + clock-output-names: + description: common clock name + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + ak4643: codec@12 { + compatible = "asahi-kasei,ak4643"; + #sound-dai-cells = <0>; + reg = <0x12>; + #clock-cells = <0>; + clocks = <&audio_clock>; + clock-frequency = <12288000>; + clock-output-names = "ak4643_mcko"; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/fsl,sgtl5000.yaml b/Documentation/devicetree/bindings/sound/fsl,sgtl5000.yaml new file mode 100644 index 000000000000..c6ab1ca16763 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/fsl,sgtl5000.yaml @@ -0,0 +1,113 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/fsl,sgtl5000.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale SGTL5000 Stereo Codec + +maintainers: + - Fabio Estevam + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: fsl,sgtl5000 + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 0 + + assigned-clock-parents: true + assigned-clock-rates: true + assigned-clocks: true + + clocks: + items: + - description: the clock provider of SYS_MCLK + + VDDA-supply: + description: the regulator provider of VDDA + + VDDIO-supply: + description: the regulator provider of VDDIO + + VDDD-supply: + description: the regulator provider of VDDD + + micbias-resistor-k-ohms: + description: The bias resistor to be used in kOhms. The resistor can take + 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 ] + + 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 ] + + lrclk-strength: + description: | + The LRCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the + table below: + + VDDIO 1.8V 2.5V 3.3V + 0 = Disable + 1 = 1.66 mA 2.87 mA 4.02 mA + 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 ] + + sclk-strength: + description: | + The SCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the + table below: + + VDDIO 1.8V 2.5V 3.3V + 0 = Disable + 1 = 1.66 mA 2.87 mA 4.02 mA + 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 ] + + port: + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - "#sound-dai-cells" + - clocks + - VDDA-supply + - VDDIO-supply + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + #sound-dai-cells = <0>; + clocks = <&clks 150>; + micbias-resistor-k-ohms = <2>; + micbias-voltage-m-volts = <2250>; + VDDA-supply = <®_3p3v>; + VDDIO-supply = <®_3p3v>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/sound/mscc,zl38060.yaml b/Documentation/devicetree/bindings/sound/mscc,zl38060.yaml new file mode 100644 index 000000000000..994313fd12b2 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mscc,zl38060.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mscc,zl38060.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ZL38060 Connected Home Audio Processor from Microsemi. + +description: | + The ZL38060 is a "Connected Home Audio Processor" from Microsemi, + which consists of a Digital Signal Processor (DSP), several Digital + Audio Interfaces (DAIs), analog outputs, and a block of 14 GPIOs. + +maintainers: + - Jaroslav Kysela + - Takashi Iwai + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: mscc,zl38060 + + reg: + description: + SPI device address. + maxItems: 1 + + spi-max-frequency: + maximum: 24000000 + + reset-gpios: + description: + A GPIO line handling reset of the chip. As the line is active low, + it should be marked GPIO_ACTIVE_LOW (see ../gpio/gpio.txt) + maxItems: 1 + + '#gpio-cells': + const: 2 + + gpio-controller: true + + '#sound-dai-cells': + const: 0 + +required: + - compatible + - reg + - '#gpio-cells' + - gpio-controller + - '#sound-dai-cells' + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + codec: zl38060@0 { + gpio-controller; + #gpio-cells = <2>; + #sound-dai-cells = <0>; + compatible = "mscc,zl38060"; + reg = <0>; + spi-max-frequency = <12000000>; + reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/realtek,rt1019.yaml b/Documentation/devicetree/bindings/sound/realtek,rt1019.yaml new file mode 100644 index 000000000000..adf5e38f4dbc --- /dev/null +++ b/Documentation/devicetree/bindings/sound/realtek,rt1019.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/realtek,rt1019.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RT1019 Mono Class-D Audio Amplifier + +maintainers: + - jack.yu@realtek.com + +properties: + compatible: + const: realtek,rt1019 + + reg: + maxItems: 1 + description: I2C address of the device. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + rt1019: codec@28 { + compatible = "realtek,rt1019"; + reg = <0x28>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/rt1019.yaml b/Documentation/devicetree/bindings/sound/rt1019.yaml deleted file mode 100644 index 3d5a91a942f4..000000000000 --- a/Documentation/devicetree/bindings/sound/rt1019.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/rt1019.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: RT1019 Mono Class-D Audio Amplifier - -maintainers: - - jack.yu@realtek.com - -properties: - compatible: - const: realtek,rt1019 - - reg: - maxItems: 1 - description: I2C address of the device. - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - rt1019: codec@28 { - compatible = "realtek,rt1019"; - reg = <0x28>; - }; - }; diff --git a/Documentation/devicetree/bindings/sound/sgtl5000.yaml b/Documentation/devicetree/bindings/sound/sgtl5000.yaml deleted file mode 100644 index 1353c051488f..000000000000 --- a/Documentation/devicetree/bindings/sound/sgtl5000.yaml +++ /dev/null @@ -1,113 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/sgtl5000.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale SGTL5000 Stereo Codec - -maintainers: - - Fabio Estevam - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - const: fsl,sgtl5000 - - reg: - maxItems: 1 - - "#sound-dai-cells": - const: 0 - - assigned-clock-parents: true - assigned-clock-rates: true - assigned-clocks: true - - clocks: - items: - - description: the clock provider of SYS_MCLK - - VDDA-supply: - description: the regulator provider of VDDA - - VDDIO-supply: - description: the regulator provider of VDDIO - - VDDD-supply: - description: the regulator provider of VDDD - - micbias-resistor-k-ohms: - description: The bias resistor to be used in kOhms. The resistor can take - 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 ] - - 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 ] - - lrclk-strength: - description: | - The LRCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the - table below: - - VDDIO 1.8V 2.5V 3.3V - 0 = Disable - 1 = 1.66 mA 2.87 mA 4.02 mA - 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 ] - - sclk-strength: - description: | - The SCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the - table below: - - VDDIO 1.8V 2.5V 3.3V - 0 = Disable - 1 = 1.66 mA 2.87 mA 4.02 mA - 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 ] - - port: - $ref: audio-graph-port.yaml# - unevaluatedProperties: false - -required: - - compatible - - reg - - "#sound-dai-cells" - - clocks - - VDDA-supply - - VDDIO-supply - -unevaluatedProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - codec@a { - compatible = "fsl,sgtl5000"; - reg = <0x0a>; - #sound-dai-cells = <0>; - clocks = <&clks 150>; - micbias-resistor-k-ohms = <2>; - micbias-voltage-m-volts = <2250>; - VDDA-supply = <®_3p3v>; - VDDIO-supply = <®_3p3v>; - }; - }; -... diff --git a/Documentation/devicetree/bindings/sound/tas2562.yaml b/Documentation/devicetree/bindings/sound/tas2562.yaml deleted file mode 100644 index d28c102c0ce7..000000000000 --- a/Documentation/devicetree/bindings/sound/tas2562.yaml +++ /dev/null @@ -1,81 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2019 Texas Instruments Incorporated -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/tas2562.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments TAS2562 Smart PA - -maintainers: - - Andrew Davis - -description: | - The TAS2562 is a mono, digital input Class-D audio amplifier optimized for - efficiently driving high peak power into small loudspeakers. - Integrated speaker voltage and current sense provides for - real time monitoring of loudspeaker behavior. - - Specifications about the audio amplifier can be found at: - https://www.ti.com/lit/gpn/tas2562 - https://www.ti.com/lit/gpn/tas2564 - https://www.ti.com/lit/gpn/tas2110 - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - enum: - - ti,tas2562 - - ti,tas2564 - - ti,tas2110 - - reg: - maxItems: 1 - description: | - I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f - - shut-down-gpios: - maxItems: 1 - description: GPIO used to control the state of the device. - deprecated: true - - shutdown-gpios: - maxItems: 1 - description: GPIO used to control the state of the device. - - interrupts: - maxItems: 1 - - ti,imon-slot-no: - $ref: /schemas/types.yaml#/definitions/uint32 - description: TDM TX current sense time slot. - - '#sound-dai-cells': - # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward - # compatibility but is deprecated. - enum: [0, 1] - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - codec: codec@4c { - compatible = "ti,tas2562"; - reg = <0x4c>; - #sound-dai-cells = <0>; - interrupt-parent = <&gpio1>; - interrupts = <14>; - shutdown-gpios = <&gpio1 15 0>; - ti,imon-slot-no = <0>; - }; - }; diff --git a/Documentation/devicetree/bindings/sound/tas2770.yaml b/Documentation/devicetree/bindings/sound/tas2770.yaml deleted file mode 100644 index be2536e8c440..000000000000 --- a/Documentation/devicetree/bindings/sound/tas2770.yaml +++ /dev/null @@ -1,87 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2019-20 Texas Instruments Incorporated -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/tas2770.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments TAS2770 Smart PA - -maintainers: - - Shi Fu - -description: | - The TAS2770 is a mono, digital input Class-D audio amplifier optimized for - efficiently driving high peak power into small loudspeakers. - Integrated speaker voltage and current sense provides for - real time monitoring of loudspeaker behavior. - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - enum: - - ti,tas2770 - - reg: - maxItems: 1 - description: | - I2C address of the device can be between 0x41 to 0x48. - - reset-gpio: - maxItems: 1 - description: GPIO used to reset the device. - - shutdown-gpios: - maxItems: 1 - description: GPIO used to control the state of the device. - - interrupts: - maxItems: 1 - - ti,imon-slot-no: - $ref: /schemas/types.yaml#/definitions/uint32 - description: TDM TX current sense time slot. - - ti,vmon-slot-no: - $ref: /schemas/types.yaml#/definitions/uint32 - description: TDM TX voltage sense time slot. - - ti,asi-format: - deprecated: true - $ref: /schemas/types.yaml#/definitions/uint32 - description: Sets TDM RX capture edge. - enum: - - 0 # Rising edge - - 1 # Falling edge - - '#sound-dai-cells': - # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward - # compatibility but is deprecated. - enum: [0, 1] - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - codec: codec@41 { - compatible = "ti,tas2770"; - reg = <0x41>; - #sound-dai-cells = <0>; - interrupt-parent = <&gpio1>; - interrupts = <14>; - reset-gpio = <&gpio1 15 0>; - shutdown-gpios = <&gpio1 14 0>; - ti,imon-slot-no = <0>; - ti,vmon-slot-no = <2>; - }; - }; diff --git a/Documentation/devicetree/bindings/sound/tas27xx.yaml b/Documentation/devicetree/bindings/sound/tas27xx.yaml deleted file mode 100644 index f2d878f6f495..000000000000 --- a/Documentation/devicetree/bindings/sound/tas27xx.yaml +++ /dev/null @@ -1,82 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2020-2022 Texas Instruments Incorporated -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/tas27xx.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments TAS2764/TAS2780 Smart PA - -maintainers: - - Shenghao Ding - -description: | - The TAS2764/TAS2780 is a mono, digital input Class-D audio amplifier - optimized for efficiently driving high peak power into small - loudspeakers. Integrated speaker voltage and current sense provides - for real time monitoring of loudspeaker behavior. - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - enum: - - ti,tas2764 - - ti,tas2780 - - reg: - maxItems: 1 - description: | - I2C address of the device can be between 0x38 to 0x45. - - reset-gpios: - maxItems: 1 - description: GPIO used to reset the device. - - shutdown-gpios: - maxItems: 1 - description: GPIO used to control the state of the device. - - interrupts: - maxItems: 1 - - ti,imon-slot-no: - $ref: /schemas/types.yaml#/definitions/uint32 - description: TDM TX current sense time slot. - - ti,vmon-slot-no: - $ref: /schemas/types.yaml#/definitions/uint32 - description: TDM TX voltage sense time slot. - - '#sound-dai-cells': - # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward - # compatibility but is deprecated. - enum: [0, 1] - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - codec: codec@38 { - compatible = "ti,tas2764"; - reg = <0x38>; - #sound-dai-cells = <0>; - interrupt-parent = <&gpio1>; - interrupts = <14>; - reset-gpios = <&gpio1 15 0>; - shutdown-gpios = <&gpio1 15 0>; - ti,imon-slot-no = <0>; - ti,vmon-slot-no = <2>; - }; - }; - -... diff --git a/Documentation/devicetree/bindings/sound/tas5805m.yaml b/Documentation/devicetree/bindings/sound/tas5805m.yaml deleted file mode 100644 index 12c41974274e..000000000000 --- a/Documentation/devicetree/bindings/sound/tas5805m.yaml +++ /dev/null @@ -1,57 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/tas5805m.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: TAS5805M audio amplifier - -maintainers: - - Daniel Beer - -description: | - The TAS5805M is a class D audio amplifier with a built-in DSP. - -properties: - compatible: - enum: - - ti,tas5805m - - reg: - maxItems: 1 - description: | - I2C address of the amplifier. See the datasheet for possible values. - - pvdd-supply: - description: | - Regulator for audio power supply (PVDD in the datasheet). - - pdn-gpios: - description: | - Power-down control GPIO (PDN pin in the datasheet). - - ti,dsp-config-name: - description: | - The name of the DSP configuration that should be loaded for this - instance. Configuration blobs are sequences of register writes - generated from TI's PPC3 tool. - $ref: /schemas/types.yaml#/definitions/string - -additionalProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - tas5805m: tas5805m@2c { - reg = <0x2c>; - compatible = "ti,tas5805m"; - - pvdd-supply = <&audiopwr>; - pdn-gpios = <&tlmm 160 0>; - - ti,dsp-config-name = "mono_pbtl_48khz"; - }; - }; -... diff --git a/Documentation/devicetree/bindings/sound/ti,tas2562.yaml b/Documentation/devicetree/bindings/sound/ti,tas2562.yaml new file mode 100644 index 000000000000..8bc3b0c7531e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tas2562.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2019 Texas Instruments Incorporated +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tas2562.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TAS2562 Smart PA + +maintainers: + - Andrew Davis + +description: | + The TAS2562 is a mono, digital input Class-D audio amplifier optimized for + efficiently driving high peak power into small loudspeakers. + Integrated speaker voltage and current sense provides for + real time monitoring of loudspeaker behavior. + + Specifications about the audio amplifier can be found at: + https://www.ti.com/lit/gpn/tas2562 + https://www.ti.com/lit/gpn/tas2564 + https://www.ti.com/lit/gpn/tas2110 + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - ti,tas2562 + - ti,tas2564 + - ti,tas2110 + + reg: + maxItems: 1 + description: | + I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f + + shut-down-gpios: + maxItems: 1 + description: GPIO used to control the state of the device. + deprecated: true + + shutdown-gpios: + maxItems: 1 + description: GPIO used to control the state of the device. + + interrupts: + maxItems: 1 + + ti,imon-slot-no: + $ref: /schemas/types.yaml#/definitions/uint32 + description: TDM TX current sense time slot. + + '#sound-dai-cells': + # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward + # compatibility but is deprecated. + enum: [0, 1] + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec: codec@4c { + compatible = "ti,tas2562"; + reg = <0x4c>; + #sound-dai-cells = <0>; + interrupt-parent = <&gpio1>; + interrupts = <14>; + shutdown-gpios = <&gpio1 15 0>; + ti,imon-slot-no = <0>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/ti,tas2770.yaml b/Documentation/devicetree/bindings/sound/ti,tas2770.yaml new file mode 100644 index 000000000000..362c2e6154f0 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tas2770.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2019-20 Texas Instruments Incorporated +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tas2770.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TAS2770 Smart PA + +maintainers: + - Shi Fu + +description: | + The TAS2770 is a mono, digital input Class-D audio amplifier optimized for + efficiently driving high peak power into small loudspeakers. + Integrated speaker voltage and current sense provides for + real time monitoring of loudspeaker behavior. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - ti,tas2770 + + reg: + maxItems: 1 + description: | + I2C address of the device can be between 0x41 to 0x48. + + reset-gpio: + maxItems: 1 + description: GPIO used to reset the device. + + shutdown-gpios: + maxItems: 1 + description: GPIO used to control the state of the device. + + interrupts: + maxItems: 1 + + ti,imon-slot-no: + $ref: /schemas/types.yaml#/definitions/uint32 + description: TDM TX current sense time slot. + + ti,vmon-slot-no: + $ref: /schemas/types.yaml#/definitions/uint32 + description: TDM TX voltage sense time slot. + + ti,asi-format: + deprecated: true + $ref: /schemas/types.yaml#/definitions/uint32 + description: Sets TDM RX capture edge. + enum: + - 0 # Rising edge + - 1 # Falling edge + + '#sound-dai-cells': + # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward + # compatibility but is deprecated. + enum: [0, 1] + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec: codec@41 { + compatible = "ti,tas2770"; + reg = <0x41>; + #sound-dai-cells = <0>; + interrupt-parent = <&gpio1>; + interrupts = <14>; + reset-gpio = <&gpio1 15 0>; + shutdown-gpios = <&gpio1 14 0>; + ti,imon-slot-no = <0>; + ti,vmon-slot-no = <2>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/ti,tas27xx.yaml b/Documentation/devicetree/bindings/sound/ti,tas27xx.yaml new file mode 100644 index 000000000000..530bc3937847 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tas27xx.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2020-2022 Texas Instruments Incorporated +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tas27xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TAS2764/TAS2780 Smart PA + +maintainers: + - Shenghao Ding + +description: | + The TAS2764/TAS2780 is a mono, digital input Class-D audio amplifier + optimized for efficiently driving high peak power into small + loudspeakers. Integrated speaker voltage and current sense provides + for real time monitoring of loudspeaker behavior. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - ti,tas2764 + - ti,tas2780 + + reg: + maxItems: 1 + description: | + I2C address of the device can be between 0x38 to 0x45. + + reset-gpios: + maxItems: 1 + description: GPIO used to reset the device. + + shutdown-gpios: + maxItems: 1 + description: GPIO used to control the state of the device. + + interrupts: + maxItems: 1 + + ti,imon-slot-no: + $ref: /schemas/types.yaml#/definitions/uint32 + description: TDM TX current sense time slot. + + ti,vmon-slot-no: + $ref: /schemas/types.yaml#/definitions/uint32 + description: TDM TX voltage sense time slot. + + '#sound-dai-cells': + # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward + # compatibility but is deprecated. + enum: [0, 1] + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec: codec@38 { + compatible = "ti,tas2764"; + reg = <0x38>; + #sound-dai-cells = <0>; + interrupt-parent = <&gpio1>; + interrupts = <14>; + reset-gpios = <&gpio1 15 0>; + shutdown-gpios = <&gpio1 15 0>; + ti,imon-slot-no = <0>; + ti,vmon-slot-no = <2>; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/sound/ti,tas5805m.yaml b/Documentation/devicetree/bindings/sound/ti,tas5805m.yaml new file mode 100644 index 000000000000..c2c2835a9e1d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tas5805m.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tas5805m.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TAS5805M audio amplifier + +maintainers: + - Daniel Beer + +description: | + The TAS5805M is a class D audio amplifier with a built-in DSP. + +properties: + compatible: + enum: + - ti,tas5805m + + reg: + maxItems: 1 + description: | + I2C address of the amplifier. See the datasheet for possible values. + + pvdd-supply: + description: | + Regulator for audio power supply (PVDD in the datasheet). + + pdn-gpios: + description: | + Power-down control GPIO (PDN pin in the datasheet). + + ti,dsp-config-name: + description: | + The name of the DSP configuration that should be loaded for this + instance. Configuration blobs are sequences of register writes + generated from TI's PPC3 tool. + $ref: /schemas/types.yaml#/definitions/string + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + tas5805m: tas5805m@2c { + reg = <0x2c>; + compatible = "ti,tas5805m"; + + pvdd-supply = <&audiopwr>; + pdn-gpios = <&tlmm 160 0>; + + ti,dsp-config-name = "mono_pbtl_48khz"; + }; + }; +... diff --git a/Documentation/devicetree/bindings/sound/ti,tlv320adcx140.yaml b/Documentation/devicetree/bindings/sound/ti,tlv320adcx140.yaml new file mode 100644 index 000000000000..876fa97bfbcd --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tlv320adcx140.yaml @@ -0,0 +1,209 @@ +# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) +# Copyright (C) 2019 Texas Instruments Incorporated +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tlv320adcx140.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter + +maintainers: + - Andrew Davis + +description: | + The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital + PDM microphones recording), high-performance audio, analog-to-digital + converter (ADC) with analog inputs supporting up to 2V RMS. The TLV320ADCX140 + family supports line and microphone Inputs, and offers a programmable + microphone bias or supply voltage generation. + + Specifications can be found at: + https://www.ti.com/lit/ds/symlink/tlv320adc3140.pdf + https://www.ti.com/lit/ds/symlink/tlv320adc5140.pdf + https://www.ti.com/lit/ds/symlink/tlv320adc6140.pdf + +properties: + compatible: + enum: + - ti,tlv320adc3140 + - ti,tlv320adc5140 + - ti,tlv320adc6140 + + reg: + maxItems: 1 + description: | + I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f + + reset-gpios: + maxItems: 1 + description: | + GPIO used for hardware reset. + + areg-supply: + description: | + Regulator with AVDD at 3.3V. If not defined then the internal regulator + is enabled. + + ti,mic-bias-source: + description: | + Indicates the source for MIC Bias. + 0 - Mic bias is set to VREF + 1 - Mic bias is set to VREF × 1.096 + 6 - Mic bias is set to AVDD + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 6] + + ti,vref-source: + description: | + Indicates the source for MIC Bias. + 0 - Set VREF to 2.75V + 1 - Set VREF to 2.5V + 2 - Set VREF to 1.375V + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2] + + ti,pdm-edge-select: + description: | + Defines the PDMCLK sampling edge configuration for the PDM inputs. This + array is defined as . + + 0 - (default) Odd channel is latched on the negative edge and even + channel is latched on the positive edge. + 1 - Odd channel is latched on the positive edge and even channel is + latched on the negative edge. + + PDMIN1 - PDMCLK latching edge used for channel 1 and 2 data + PDMIN2 - PDMCLK latching edge used for channel 3 and 4 data + PDMIN3 - PDMCLK latching edge used for channel 5 and 6 data + PDMIN4 - PDMCLK latching edge used for channel 7 and 8 data + + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 4 + items: + maximum: 1 + default: [0, 0, 0, 0] + + ti,gpi-config: + description: | + Defines the configuration for the general purpose input pins (GPI). + The array is defined as . + + 0 - (default) disabled + 1 - GPIX is configured as a general-purpose input (GPI) + 2 - GPIX is configured as a master clock input (MCLK) + 3 - GPIX is configured as an ASI input for daisy-chain (SDIN) + 4 - GPIX is configured as a PDM data input for channel 1 and channel + (PDMDIN1) + 5 - GPIX is configured as a PDM data input for channel 3 and channel + (PDMDIN2) + 6 - GPIX is configured as a PDM data input for channel 5 and channel + (PDMDIN3) + 7 - GPIX is configured as a PDM data input for channel 7 and channel + (PDMDIN4) + + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 4 + items: + maximum: 7 + default: [0, 0, 0, 0] + + ti,gpio-config: + description: | + Defines the configuration and output drive for the General Purpose + Input and Output pin (GPIO1). Its value is a pair, the first value is for + the configuration type and the second value is for the output drive + type. The array is defined as + + configuration for the GPIO pin can be one of the following: + 0 - disabled + 1 - GPIO1 is configured as a general-purpose output (GPO) + 2 - (default) GPIO1 is configured as a device interrupt output (IRQ) + 3 - GPIO1 is configured as a secondary ASI output (SDOUT2) + 4 - GPIO1 is configured as a PDM clock output (PDMCLK) + 8 - GPIO1 is configured as an input to control when MICBIAS turns on or + off (MICBIAS_EN) + 9 - GPIO1 is configured as a general-purpose input (GPI) + 10 - GPIO1 is configured as a master clock input (MCLK) + 11 - GPIO1 is configured as an ASI input for daisy-chain (SDIN) + 12 - GPIO1 is configured as a PDM data input for channel 1 and channel 2 + (PDMDIN1) + 13 - GPIO1 is configured as a PDM data input for channel 3 and channel 4 + (PDMDIN2) + 14 - GPIO1 is configured as a PDM data input for channel 5 and channel 6 + (PDMDIN3) + 15 - GPIO1 is configured as a PDM data input for channel 7 and channel 8 + (PDMDIN4) + + output drive type for the GPIO pin can be one of the following: + 0 - Hi-Z output + 1 - Drive active low and active high + 2 - (default) Drive active low and weak high + 3 - Drive active low and Hi-Z + 4 - Drive weak low and active high + 5 - Drive Hi-Z and active high + + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 2 + items: + maximum: 15 + default: [2, 2] + + ti,asi-tx-drive: + type: boolean + description: | + When set the device will set the Tx ASI output to a Hi-Z state for unused + data cycles. Default is to drive the output low on unused ASI cycles. + +patternProperties: + '^ti,gpo-config-[1-4]$': + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + Defines the configuration and output driver for the general purpose + output pins (GPO). These values are pairs, the first value is for the + configuration type and the second value is for the output drive type. + The array is defined as + + GPO output configuration can be one of the following: + + 0 - (default) disabled + 1 - GPOX is configured as a general-purpose output (GPO) + 2 - GPOX is configured as a device interrupt output (IRQ) + 3 - GPOX is configured as a secondary ASI output (SDOUT2) + 4 - GPOX is configured as a PDM clock output (PDMCLK) + + GPO output drive configuration for the GPO pins can be one of the following: + + 0d - (default) Hi-Z output + 1d - Drive active low and active high + 2d - Drive active low and weak high + 3d - Drive active low and Hi-Z + 4d - Drive weak low and active high + 5d - Drive Hi-Z and active high + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec: codec@4c { + compatible = "ti,tlv320adc5140"; + reg = <0x4c>; + ti,mic-bias-source = <6>; + ti,pdm-edge-select = <0 1 0 1>; + ti,gpi-config = <4 5 6 7>; + ti,gpio-config = <10 2>; + ti,gpo-config-1 = <0 0>; + ti,gpo-config-2 = <0 0>; + reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/tlv320adcx140.yaml b/Documentation/devicetree/bindings/sound/tlv320adcx140.yaml deleted file mode 100644 index f3274bcc4c05..000000000000 --- a/Documentation/devicetree/bindings/sound/tlv320adcx140.yaml +++ /dev/null @@ -1,209 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) -# Copyright (C) 2019 Texas Instruments Incorporated -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/tlv320adcx140.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter - -maintainers: - - Andrew Davis - -description: | - The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital - PDM microphones recording), high-performance audio, analog-to-digital - converter (ADC) with analog inputs supporting up to 2V RMS. The TLV320ADCX140 - family supports line and microphone Inputs, and offers a programmable - microphone bias or supply voltage generation. - - Specifications can be found at: - https://www.ti.com/lit/ds/symlink/tlv320adc3140.pdf - https://www.ti.com/lit/ds/symlink/tlv320adc5140.pdf - https://www.ti.com/lit/ds/symlink/tlv320adc6140.pdf - -properties: - compatible: - enum: - - ti,tlv320adc3140 - - ti,tlv320adc5140 - - ti,tlv320adc6140 - - reg: - maxItems: 1 - description: | - I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f - - reset-gpios: - maxItems: 1 - description: | - GPIO used for hardware reset. - - areg-supply: - description: | - Regulator with AVDD at 3.3V. If not defined then the internal regulator - is enabled. - - ti,mic-bias-source: - description: | - Indicates the source for MIC Bias. - 0 - Mic bias is set to VREF - 1 - Mic bias is set to VREF × 1.096 - 6 - Mic bias is set to AVDD - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 6] - - ti,vref-source: - description: | - Indicates the source for MIC Bias. - 0 - Set VREF to 2.75V - 1 - Set VREF to 2.5V - 2 - Set VREF to 1.375V - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2] - - ti,pdm-edge-select: - description: | - Defines the PDMCLK sampling edge configuration for the PDM inputs. This - array is defined as . - - 0 - (default) Odd channel is latched on the negative edge and even - channel is latched on the positive edge. - 1 - Odd channel is latched on the positive edge and even channel is - latched on the negative edge. - - PDMIN1 - PDMCLK latching edge used for channel 1 and 2 data - PDMIN2 - PDMCLK latching edge used for channel 3 and 4 data - PDMIN3 - PDMCLK latching edge used for channel 5 and 6 data - PDMIN4 - PDMCLK latching edge used for channel 7 and 8 data - - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 4 - items: - maximum: 1 - default: [0, 0, 0, 0] - - ti,gpi-config: - description: | - Defines the configuration for the general purpose input pins (GPI). - The array is defined as . - - 0 - (default) disabled - 1 - GPIX is configured as a general-purpose input (GPI) - 2 - GPIX is configured as a master clock input (MCLK) - 3 - GPIX is configured as an ASI input for daisy-chain (SDIN) - 4 - GPIX is configured as a PDM data input for channel 1 and channel - (PDMDIN1) - 5 - GPIX is configured as a PDM data input for channel 3 and channel - (PDMDIN2) - 6 - GPIX is configured as a PDM data input for channel 5 and channel - (PDMDIN3) - 7 - GPIX is configured as a PDM data input for channel 7 and channel - (PDMDIN4) - - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 4 - items: - maximum: 7 - default: [0, 0, 0, 0] - - ti,gpio-config: - description: | - Defines the configuration and output drive for the General Purpose - Input and Output pin (GPIO1). Its value is a pair, the first value is for - the configuration type and the second value is for the output drive - type. The array is defined as - - configuration for the GPIO pin can be one of the following: - 0 - disabled - 1 - GPIO1 is configured as a general-purpose output (GPO) - 2 - (default) GPIO1 is configured as a device interrupt output (IRQ) - 3 - GPIO1 is configured as a secondary ASI output (SDOUT2) - 4 - GPIO1 is configured as a PDM clock output (PDMCLK) - 8 - GPIO1 is configured as an input to control when MICBIAS turns on or - off (MICBIAS_EN) - 9 - GPIO1 is configured as a general-purpose input (GPI) - 10 - GPIO1 is configured as a master clock input (MCLK) - 11 - GPIO1 is configured as an ASI input for daisy-chain (SDIN) - 12 - GPIO1 is configured as a PDM data input for channel 1 and channel 2 - (PDMDIN1) - 13 - GPIO1 is configured as a PDM data input for channel 3 and channel 4 - (PDMDIN2) - 14 - GPIO1 is configured as a PDM data input for channel 5 and channel 6 - (PDMDIN3) - 15 - GPIO1 is configured as a PDM data input for channel 7 and channel 8 - (PDMDIN4) - - output drive type for the GPIO pin can be one of the following: - 0 - Hi-Z output - 1 - Drive active low and active high - 2 - (default) Drive active low and weak high - 3 - Drive active low and Hi-Z - 4 - Drive weak low and active high - 5 - Drive Hi-Z and active high - - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 2 - maxItems: 2 - items: - maximum: 15 - default: [2, 2] - - ti,asi-tx-drive: - type: boolean - description: | - When set the device will set the Tx ASI output to a Hi-Z state for unused - data cycles. Default is to drive the output low on unused ASI cycles. - -patternProperties: - '^ti,gpo-config-[1-4]$': - $ref: /schemas/types.yaml#/definitions/uint32-array - description: | - Defines the configuration and output driver for the general purpose - output pins (GPO). These values are pairs, the first value is for the - configuration type and the second value is for the output drive type. - The array is defined as - - GPO output configuration can be one of the following: - - 0 - (default) disabled - 1 - GPOX is configured as a general-purpose output (GPO) - 2 - GPOX is configured as a device interrupt output (IRQ) - 3 - GPOX is configured as a secondary ASI output (SDOUT2) - 4 - GPOX is configured as a PDM clock output (PDMCLK) - - GPO output drive configuration for the GPO pins can be one of the following: - - 0d - (default) Hi-Z output - 1d - Drive active low and active high - 2d - Drive active low and weak high - 3d - Drive active low and Hi-Z - 4d - Drive weak low and active high - 5d - Drive Hi-Z and active high - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - codec: codec@4c { - compatible = "ti,tlv320adc5140"; - reg = <0x4c>; - ti,mic-bias-source = <6>; - ti,pdm-edge-select = <0 1 0 1>; - ti,gpi-config = <4 5 6 7>; - ti,gpio-config = <10 2>; - ti,gpo-config-1 = <0 0>; - ti,gpo-config-2 = <0 0>; - reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; - }; - }; diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8750.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8750.yaml new file mode 100644 index 000000000000..96859e38315b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wlf,wm8750.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wlf,wm8750.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WM8750 and WM8987 audio CODECs + +description: | + These devices support both I2C and SPI (configured with pin strapping + on the board). + +maintainers: + - Mark Brown + +properties: + compatible: + enum: + - wlf,wm8750 + - wlf,wm8987 + + reg: + description: + The I2C address of the device for I2C, the chip select number for SPI + maxItems: 1 + +additionalProperties: false + +required: + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@1a { + compatible = "wlf,wm8750"; + reg = <0x1a>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/wm8750.yaml b/Documentation/devicetree/bindings/sound/wm8750.yaml deleted file mode 100644 index 24246ac7bbdf..000000000000 --- a/Documentation/devicetree/bindings/sound/wm8750.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/wm8750.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: WM8750 and WM8987 audio CODECs - -description: | - These devices support both I2C and SPI (configured with pin strapping - on the board). - -maintainers: - - Mark Brown - -properties: - compatible: - enum: - - wlf,wm8750 - - wlf,wm8987 - - reg: - description: - The I2C address of the device for I2C, the chip select number for SPI - maxItems: 1 - -additionalProperties: false - -required: - - reg - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - codec@1a { - compatible = "wlf,wm8750"; - reg = <0x1a>; - }; - }; diff --git a/Documentation/devicetree/bindings/sound/zl38060.yaml b/Documentation/devicetree/bindings/sound/zl38060.yaml deleted file mode 100644 index 8bd201e573aa..000000000000 --- a/Documentation/devicetree/bindings/sound/zl38060.yaml +++ /dev/null @@ -1,72 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/zl38060.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ZL38060 Connected Home Audio Processor from Microsemi. - -description: | - The ZL38060 is a "Connected Home Audio Processor" from Microsemi, - which consists of a Digital Signal Processor (DSP), several Digital - Audio Interfaces (DAIs), analog outputs, and a block of 14 GPIOs. - -maintainers: - - Jaroslav Kysela - - Takashi Iwai - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - const: mscc,zl38060 - - reg: - description: - SPI device address. - maxItems: 1 - - spi-max-frequency: - maximum: 24000000 - - reset-gpios: - description: - A GPIO line handling reset of the chip. As the line is active low, - it should be marked GPIO_ACTIVE_LOW (see ../gpio/gpio.txt) - maxItems: 1 - - '#gpio-cells': - const: 2 - - gpio-controller: true - - '#sound-dai-cells': - const: 0 - -required: - - compatible - - reg - - '#gpio-cells' - - gpio-controller - - '#sound-dai-cells' - -unevaluatedProperties: false - -examples: - - | - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - - codec: zl38060@0 { - gpio-controller; - #gpio-cells = <2>; - #sound-dai-cells = <0>; - compatible = "mscc,zl38060"; - reg = <0>; - spi-max-frequency = <12000000>; - reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; - }; - }; -- cgit v1.2.3-70-g09d2