Skip to contentSkip to conversation

dt_bindings: sound: ti,pcm186x: convert to dtschema

PATCH Superseded Ranganath V N 2 participants 2 messages Oct 21, 2025 – Oct 24, 2025

Subsystems (3)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt_bindings: sound: ti,pcm186x: convert to dtschema

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

---
Convert the Texas Instruments PCM186x audio ADC bindings to DT schema.

---
 .../devicetree/bindings/sound/pcm186x.txt          | 42 --------------
 .../devicetree/bindings/sound/ti,pcm186x.yaml      | 67 ++++++++++++++++++++++
 2 files changed, 67 insertions(+), 42 deletions(-)
Documentation/devicetree/bindings/sound/pcm186x.txt deleted +0 -42
deleted file mode 100644
index 1087f4855980..000000000000
@@ -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 = <&reg_3v3_analog>;
-		dvdd-supply = <&reg_3v3>;
-		iovdd-supply = <&reg_1v8>;
-	};
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +67 -0

67 lines not on this page · raw message

---
base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada
change-id: 20251021-dtbs-3a31f699c461

Best regards,

Signature · 1 line
Ranganath V N <[email protected]>
maintainer
#1 lore raw
Quoted 1 line · Ranganath V N

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

Your patch fails to apply with "b4 am" due to the following:

WARNING: Message contains suspicious unicode control characters!
Subject: [PATCH] dt_bindings: sound: ti,pcm186x: convert to dtschema
Line: +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -------^
Char: ZERO WIDTH NO-BREAK SPACE (0xfeff)
If you are sure about this, rerun with the right flag to allow.

Please fix and resend. Some comments below.

Quoted 65 lines

---
Convert the Texas Instruments PCM186x audio ADC bindings to DT schema.

---
 .../devicetree/bindings/sound/pcm186x.txt          | 42 --------------
 .../devicetree/bindings/sound/ti,pcm186x.yaml      | 67 ++++++++++++++++++++++
 2 files changed, 67 insertions(+), 42 deletions(-)
Documentation/devicetree/bindings/sound/pcm186x.txt deleted +0 -42
deleted file mode 100644
index 1087f4855980..000000000000
@@ -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 = <&reg_3v3_analog>;
-		dvdd-supply = <&reg_3v3>;
-		iovdd-supply = <&reg_1v8>;
-	};
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +2 -0
new file mode 100644
index 000000000000..f1ade490f688
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2

Documentation/devicetree/bindings/sound/ti,pcm186x.yaml line 12

Quoted 10 lines
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +10 -0
+---
+$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 <[email protected]>
+
+description: |

Don't need '|' unless there is formatting.

Quoted 4 lines
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +4 -0
+  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.

Documentation/devicetree/bindings/sound/ti,pcm186x.yaml line 26

Quoted 10 lines
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +10 -0
+
+properties:
+  compatible:
+    enum:
+      - ti,pcm1862
+      - ti,pcm1863
+      - ti,pcm1864
+      - ti,pcm1865
+    description:
+      Must be one of the supported PCM186x models.

Drop the description.

Documentation/devicetree/bindings/sound/ti,pcm186x.yaml line 32

Quoted 6 lines
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +6 -0
+
+  reg:
+    maxItems: 1
+    description: |
+      For I2C, this is the 7-bit slave address of the device.
+      For SPI, this is the chip-select number.

That's true for every I2C or SPI device. Drop.

Documentation/devicetree/bindings/sound/ti,pcm186x.yaml line 42

Quoted 10 lines
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +10 -0
+
+  avdd-supply: true
+
+  dvdd-supply: true
+
+  iovdd-supply: true
+
+  '#sound-dai-cells':
+    const: 0
+    description: Number of cells used to identify a DAI endpoint (fixed to 0).

That's true for every DAI and stated by the constraints already. Drop.

Quoted 7 lines
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +7 -0
+
+required:
+  - compatible
+  - reg
+  - avdd-supply
+  - dvdd-supply
+  - iovdd-supply

Documentation/devicetree/bindings/sound/ti,pcm186x.yaml line 59

Quoted 10 lines
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +10 -0
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pcm186x: audio-codec@4a {

Drop unused labels.

Quoted 17 lines
Documentation/devicetree/bindings/sound/ti,pcm186x.yaml new file +8 -1
+            compatible = "ti,pcm1865";
+            reg = <0x4a>;
+
+            avdd-supply = <&reg_3v3_analog>;
+            dvdd-supply = <&reg_3v3>;
+            iovdd-supply = <&reg_1v8>;
+        };
+    };
 
---

base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada
change-id: 20251021-dtbs-3a31f699c461

Best regards,

Signature · 1 line
Ranganath V N <[email protected]>