diff mbox series

[2/2] ASoC: dt-bindings: add compatible string for MAX98360A

Message ID 20200605034931.107713-3-tzungbi@google.com (mailing list archive)
State Accepted
Commit 3e3b803f9e76b2ec386c0f3f0618fb7d0bca4ffc
Headers show
Series ASoC: max98357a: support MAX98360A in OF | expand

Commit Message

Tzung-Bi Shih June 5, 2020, 3:49 a.m. UTC
Maxim MAX98360A audio amplifier is functionally identical to MAX98357A.
Adds compatible string "maxim,max98360a" for driver reuse.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
---
 .../devicetree/bindings/sound/max98357a.txt          | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Comments

Rob Herring (Arm) June 15, 2020, 5:35 p.m. UTC | #1
On Fri, Jun 05, 2020 at 11:49:31AM +0800, Tzung-Bi Shih wrote:
> Maxim MAX98360A audio amplifier is functionally identical to MAX98357A.
> Adds compatible string "maxim,max98360a" for driver reuse.
> 
> Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
> ---
>  .../devicetree/bindings/sound/max98357a.txt          | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/sound/max98357a.txt b/Documentation/devicetree/bindings/sound/max98357a.txt
> index 4bce14ce806f..75db84d06240 100644
> --- a/Documentation/devicetree/bindings/sound/max98357a.txt
> +++ b/Documentation/devicetree/bindings/sound/max98357a.txt
> @@ -1,9 +1,10 @@
> -Maxim MAX98357A audio DAC
> +Maxim MAX98357A/MAX98360A audio DAC
>  
> -This node models the Maxim MAX98357A DAC.
> +This node models the Maxim MAX98357A/MAX98360A DAC.
>  
>  Required properties:
> -- compatible   : "maxim,max98357a"
> +- compatible   : "maxim,max98357a" for MAX98357A.
> +                 "maxim,max98360a" for MAX98360A.
>  
>  Optional properties:
>  - sdmode-gpios : GPIO specifier for the chip's SD_MODE pin.
> @@ -20,3 +21,8 @@ max98357a {
>  	compatible = "maxim,max98357a";
>  	sdmode-gpios = <&qcom_pinmux 25 0>;
>  };
> +
> +max98360a {
> +	compatible = "maxim,max98360a";
> +	sdmode-gpios = <&qcom_pinmux 25 0>;
> +};

Nothing new here, you don't need another example.

> -- 
> 2.27.0.278.ge193c7cf3a9-goog
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/sound/max98357a.txt b/Documentation/devicetree/bindings/sound/max98357a.txt
index 4bce14ce806f..75db84d06240 100644
--- a/Documentation/devicetree/bindings/sound/max98357a.txt
+++ b/Documentation/devicetree/bindings/sound/max98357a.txt
@@ -1,9 +1,10 @@ 
-Maxim MAX98357A audio DAC
+Maxim MAX98357A/MAX98360A audio DAC
 
-This node models the Maxim MAX98357A DAC.
+This node models the Maxim MAX98357A/MAX98360A DAC.
 
 Required properties:
-- compatible   : "maxim,max98357a"
+- compatible   : "maxim,max98357a" for MAX98357A.
+                 "maxim,max98360a" for MAX98360A.
 
 Optional properties:
 - sdmode-gpios : GPIO specifier for the chip's SD_MODE pin.
@@ -20,3 +21,8 @@  max98357a {
 	compatible = "maxim,max98357a";
 	sdmode-gpios = <&qcom_pinmux 25 0>;
 };
+
+max98360a {
+	compatible = "maxim,max98360a";
+	sdmode-gpios = <&qcom_pinmux 25 0>;
+};