Skip to contentSkip to conversation

ASoC: pcm512x: Adds bindings for TAS575x devices

PATCH Superseded Joerg Schambacher 2 participants 3 messages Sep 7, 2023 – Sep 21, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ASoC: pcm512x: Adds bindings for TAS575x devices

The TAS5754/6 power amplifiers use the same pcm512x driver with only minor restictions described in the bindings document.

---
 .../devicetree/bindings/sound/pcm512x.txt     | 22 +++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/sound/pcm512x.txt +18 -4
index 3aae3b41bd8e..b16cd0463695 100644
@@ -1,12 +1,12 @@
-PCM512x audio CODECs
+PCM512x and TAS575x audio CODECs/amplifiers
 
 These devices support both I2C and SPI (configured with pin strapping
-on the board).
+on the board). The TAS575x devices only support I2C.
 
 Required properties:
 
-  - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141" or
-                 "ti,pcm5142"
+  - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141",
+                 "ti,pcm5142", "ti,tas5754" or "ti,tas5756"
 
   - reg : the I2C address of the device for I2C, the chip select
           number for SPI.
@@ -25,6 +25,7 @@ Optional properties:
     through <6>.  The device will be configured for clock input on the
     given pll-in pin and PLL output on the given pll-out pin.  An
     external connection from the pll-out pin to the SCLK pin is assumed.
+    Caution: the TAS-desvices only support gpios 1,2 and 3
 
 Examples:
 
@@ -50,3 +51,16 @@ Examples:
 		pll-in = <3>;
 		pll-out = <6>;
 	};
+
+	tas5756: tas5756@4f {
+		compatible = "ti,tas5756";
+		reg = <0x4f>;
+
+		AVDD-supply = <&reg_3v3_analog>;
+		DVDD-supply = <&reg_1v8>;
+		CPVDD-supply = <&reg_3v3>;
+
+		clocks = <&sck>;
+		pll-in = <1>;
+		pll-out = <2>;
+	};
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/2
#1 lore raw
Quoted 38 lines · Joerg Schambacher

The TAS5754/6 power amplifiers use the same pcm512x driver with only minor restictions described in the bindings document.

---
 .../devicetree/bindings/sound/pcm512x.txt     | 22 +++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/sound/pcm512x.txt +5 -4
index 3aae3b41bd8e..b16cd0463695 100644
@@ -1,12 +1,12 @@
-PCM512x audio CODECs
+PCM512x and TAS575x audio CODECs/amplifiers
 
 These devices support both I2C and SPI (configured with pin strapping
-on the board).
+on the board). The TAS575x devices only support I2C.
 
 Required properties:
 
-  - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141" or
-                 "ti,pcm5142"
+  - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141",
+                 "ti,pcm5142", "ti,tas5754" or "ti,tas5756"
 
   - reg : the I2C address of the device for I2C, the chip select
           number for SPI.
@@ -25,6 +25,7 @@ Optional properties:
     through <6>.  The device will be configured for clock input on the
     given pll-in pin and PLL output on the given pll-out pin.  An
     external connection from the pll-out pin to the SCLK pin is assumed.
+    Caution: the TAS-desvices only support gpios 1,2 and 3
 
 Examples:
 

Documentation/devicetree/bindings/sound/pcm512x.txt Examples: · line 56

Quoted 6 lines
Documentation/devicetree/bindings/sound/pcm512x.txt +3 -0
@@ -50,3 +51,16 @@ Examples:
 		pll-in = <3>;
 		pll-out = <6>;
 	};
+
+	tas5756: tas5756@4f {
+		compatible = "ti,tas5756";

Is there anything new here? Just a different compatible doesn't justify another example.

With that dropped,

#2 lore raw

Am 12.09.2023 um 10:15 hat Rob Herring geschrieben:

Quoted 49 lines · Joerg Schambacher
Quoted 38 lines

The TAS5754/6 power amplifiers use the same pcm512x driver with only minor restictions described in the bindings document.

---
 .../devicetree/bindings/sound/pcm512x.txt     | 22 +++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/sound/pcm512x.txt +5 -4
index 3aae3b41bd8e..b16cd0463695 100644
@@ -1,12 +1,12 @@
-PCM512x audio CODECs
+PCM512x and TAS575x audio CODECs/amplifiers
 
 These devices support both I2C and SPI (configured with pin strapping
-on the board).
+on the board). The TAS575x devices only support I2C.
 
 Required properties:
 
-  - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141" or
-                 "ti,pcm5142"
+  - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141",
+                 "ti,pcm5142", "ti,tas5754" or "ti,tas5756"
 
   - reg : the I2C address of the device for I2C, the chip select
           number for SPI.
@@ -25,6 +25,7 @@ Optional properties:
     through <6>.  The device will be configured for clock input on the
     given pll-in pin and PLL output on the given pll-out pin.  An
     external connection from the pll-out pin to the SCLK pin is assumed.
+    Caution: the TAS-desvices only support gpios 1,2 and 3
 
 Examples:
 

Documentation/devicetree/bindings/sound/pcm512x.txt Examples: · line 56

Quoted 6 lines
Documentation/devicetree/bindings/sound/pcm512x.txt +3 -0
@@ -50,3 +51,16 @@ Examples:
 		pll-in = <3>;
 		pll-out = <6>;
 	};
+
+	tas5756: tas5756@4f {
+		compatible = "ti,tas5756";

Is there anything new here? Just a different compatible doesn't justify another example.

Quoted 3 lines

With that dropped,

Thanks for feedback. Actually, there is nothing really new. More to show the reduced availability of GPIOs. I'm preparing a new version of the patch and I will drop the example.