.../devicetree/bindings/sound/pcm186x.txt | 42 --------------- .../devicetree/bindings/sound/ti,pcm186x.yaml | 61 ++++++++++++++++++++++ 2 files changed, 61 insertions(+), 42 deletions(-)
convert the Texas Instruments PCM186x Universal audio ADC bindings to DT schema.
Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
---
Convert the Texas Instruments PCM186x audio ADC bindings to DT schema.
---
Changes in v2:
- Fixes as per the reviews suggested for the v1.
- Link to v1: https://lore.kernel.org/r/20251021-dtbs-v1-1-493c1aa253bc@gmail.com
---
.../devicetree/bindings/sound/pcm186x.txt | 42 ---------------
.../devicetree/bindings/sound/ti,pcm186x.yaml | 61 ++++++++++++++++++++++
2 files changed, 61 insertions(+), 42 deletions(-)
diff --git a/Documentation/devicetree/bindings/sound/pcm186x.txt b/Documentation/devicetree/bindings/sound/pcm186x.txt
deleted file mode 100644
index 1087f4855980..000000000000
--- a/Documentation/devicetree/bindings/sound/pcm186x.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-Texas Instruments PCM186x Universal Audio ADC
-
-These devices support both I2C and SPI (configured with pin strapping
-on the board).
-
-Required properties:
-
- - compatible : "ti,pcm1862",
- "ti,pcm1863",
- "ti,pcm1864",
- "ti,pcm1865"
-
- - reg : The I2C address of the device for I2C, the chip select
- number for SPI.
-
- - avdd-supply: Analog core power supply (3.3v)
- - dvdd-supply: Digital core power supply
- - iovdd-supply: Digital IO power supply
- See regulator/regulator.txt for more information
-
-CODEC input pins:
- * VINL1
- * VINR1
- * VINL2
- * VINR2
- * VINL3
- * VINR3
- * VINL4
- * VINR4
-
-The pins can be used in referring sound node's audio-routing property.
-
-Example:
-
- pcm186x: audio-codec@4a {
- compatible = "ti,pcm1865";
- reg = <0x4a>;
-
- avdd-supply = <®_3v3_analog>;
- dvdd-supply = <®_3v3>;
- iovdd-supply = <®_1v8>;
- };
diff --git a/Documentation/devicetree/bindings/sound/ti,pcm186x.yaml b/Documentation/devicetree/bindings/sound/ti,pcm186x.yaml
new file mode 100644
index 000000000000..306905eebd68
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/ti,pcm186x.yaml
@@ -0,0 +1,61 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/ti,pcm186x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments PCM186x Universal Audio ADC
+
+maintainers:
+ - Ranganath V N <vnranganath.20@gmail.com>
+
+description:
+ The Texas Instruments PCM186x family are multi-channel audio ADCs
+ that support both I2C and SPI control interfaces, selected by
+ pin strapping. These devices include on-chip programmable gain
+ amplifiers and support differential or single-ended analog inputs.
+
+properties:
+ compatible:
+ enum:
+ - ti,pcm1862
+ - ti,pcm1863
+ - ti,pcm1864
+ - ti,pcm1865
+
+ reg:
+ maxItems: 1
+
+ avdd-supply: true
+
+ dvdd-supply: true
+
+ iovdd-supply: true
+
+ '#sound-dai-cells':
+ const: 0
+
+required:
+ - compatible
+ - reg
+ - avdd-supply
+ - dvdd-supply
+ - iovdd-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ audio-codec@4a {
+ compatible = "ti,pcm1865";
+ reg = <0x4a>;
+
+ avdd-supply = <®_3v3_analog>;
+ dvdd-supply = <®_3v3>;
+ iovdd-supply = <®_1v8>;
+ };
+ };
---
base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada
change-id: 20251021-dtbs-3a31f699c461
Best regards,
--
Ranganath V N <vnranganath.20@gmail.com>
On Sun, Oct 26, 2025 at 10:56:16PM +0530, Ranganath V N wrote: > convert the Texas Instruments PCM186x Universal audio ADC bindings to DT schema. > > Signed-off-by: Ranganath V N <vnranganath.20@gmail.com> > --- > Convert the Texas Instruments PCM186x audio ADC bindings to DT schema. > --- > Changes in v2: > - Fixes as per the reviews suggested for the v1. > - Link to v1: https://lore.kernel.org/r/20251021-dtbs-v1-1-493c1aa253bc@gmail.com Still fails to apply I guess due to the unicode control char. > --- > .../devicetree/bindings/sound/pcm186x.txt | 42 --------------- > .../devicetree/bindings/sound/ti,pcm186x.yaml | 61 ++++++++++++++++++++++ > 2 files changed, 61 insertions(+), 42 deletions(-)
On 10/26/25 13:26, Ranganath V N wrote:
> convert the Texas Instruments PCM186x Universal audio ADC bindings to DT schema.
>
> Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
> ---
> Convert the Texas Instruments PCM186x audio ADC bindings to DT schema.
> ---
> Changes in v2:
> - Fixes as per the reviews suggested for the v1.
It's better to list out the actual changes instead of only making
developers go to v1 to see which feedback you actually brought into
version 2. > - Link to v1:
https://lore.kernel.org/r/20251021-dtbs-v1-1-493c1aa253bc@gmail.com
> ---
> .../devicetree/bindings/sound/pcm186x.txt | 42 ---------------
> .../devicetree/bindings/sound/ti,pcm186x.yaml | 61 ++++++++++++++++++++++
> 2 files changed, 61 insertions(+), 42 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/sound/pcm186x.txt b/Documentation/devicetree/bindings/sound/pcm186x.txt
> deleted file mode 100644
> index 1087f4855980..000000000000
> --- a/Documentation/devicetree/bindings/sound/pcm186x.txt
> +++ /dev/null
> @@ -1,42 +0,0 @@
> -Texas Instruments PCM186x Universal Audio ADC
> -
> -These devices support both I2C and SPI (configured with pin strapping
> -on the board).
> -
> -Required properties:
> -
> - - compatible : "ti,pcm1862",
> - "ti,pcm1863",
> - "ti,pcm1864",
> - "ti,pcm1865"
> -
> - - reg : The I2C address of the device for I2C, the chip select
> - number for SPI.
> -
> - - avdd-supply: Analog core power supply (3.3v)
> - - dvdd-supply: Digital core power supply
> - - iovdd-supply: Digital IO power supply
> - See regulator/regulator.txt for more information
> -
> -CODEC input pins:
> - * VINL1
> - * VINR1
> - * VINL2
> - * VINR2
> - * VINL3
> - * VINR3
> - * VINL4
> - * VINR4
> -
> -The pins can be used in referring sound node's audio-routing property.
> -
> -Example:
> -
> - pcm186x: audio-codec@4a {
> - compatible = "ti,pcm1865";
> - reg = <0x4a>;
> -
> - avdd-supply = <®_3v3_analog>;
> - dvdd-supply = <®_3v3>;
> - iovdd-supply = <®_1v8>;
> - };
> diff --git a/Documentation/devicetree/bindings/sound/ti,pcm186x.yaml b/Documentation/devicetree/bindings/sound/ti,pcm186x.yaml
> new file mode 100644
> index 000000000000..306905eebd68
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/ti,pcm186x.yaml
> @@ -0,0 +1,61 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/ti,pcm186x.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments PCM186x Universal Audio ADC
> +
> +maintainers:
> + - Ranganath V N <vnranganath.20@gmail.com>
> +
> +description:
> + The Texas Instruments PCM186x family are multi-channel audio ADCs
> + that support both I2C and SPI control interfaces, selected by
> + pin strapping. These devices include on-chip programmable gain
> + amplifiers and support differential or single-ended analog inputs.
> +
> +properties:
> + compatible:
> + enum:
> + - ti,pcm1862
> + - ti,pcm1863
> + - ti,pcm1864
> + - ti,pcm1865
> +
> + reg:
> + maxItems: 1
> +
> + avdd-supply: true
> +
> + dvdd-supply: true
> +
> + iovdd-supply: true
> +
> + '#sound-dai-cells':
> + const: 0
> +
> +required:
> + - compatible
> + - reg
> + - avdd-supply
> + - dvdd-supply
> + - iovdd-supply
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + audio-codec@4a {
> + compatible = "ti,pcm1865";
> + reg = <0x4a>;
> +
> + avdd-supply = <®_3v3_analog>;
> + dvdd-supply = <®_3v3>;
> + iovdd-supply = <®_1v8>;
> + };
> + };
>
> ---
> base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada
> change-id: 20251021-dtbs-3a31f699c461
>
> Best regards,
© 2016 - 2025 Red Hat, Inc.