Re: [V6 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-29 Thread Steve Lee
On Thu, May 28, 2020 at 11:17 PM Rob Herring  wrote:
>
> On Thu, May 28, 2020 at 07:37:55PM +0900, Steve Lee wrote:
> > Add DT binding of max98390 amplifier driver.
> >
> > Signed-off-by: Steve Lee 
> > ---
> > Changed since V5:
> >   * Change txt to yaml and fix up the examples.
> > Changed since V4:
> >   * No changes.
> > Changed since V3:
> >   * No changes.
> > Changed since V2:
> >   * No changes.
> > Changed since V1:
> >   * Modified sample text in example
> >
> >  .../bindings/sound/maxim,max98390.yaml| 39 +++
> >  1 file changed, 39 insertions(+)
> >  create mode 100644 
> > Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/sound/maxim,max98390.yaml 
> > b/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> > new file mode 100644
> > index ..1ed4ab9e1c37
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> > @@ -0,0 +1,39 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/sound/maxim,max98390.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Maxim Integrated MAX98390 Speaker Amplifier with Integrated Dynamic 
> > Speaker Management
> > +
> > +maintainers:
> > +  - Steve Lee 
> > +
> > +properties:
> > +  compatible:
> > +  const: maxim,max98390
> > +
> > +  reg:
> > +maxItems: 1
> > +description: I2C address of the device.
> > +
> > +  temperature_calib:
>
> s/_/-/

 This is follow as coreboot in Chromium OS case.
I'd follow this name unchanged.

>
> And missing 'maxim' prefix.

 Added missed prefix maxim prefix.

>
> > +$ref: /schemas/types.yaml#/definitions/uint32
> > +description: The calculated temperature data was measured while doing 
> > the calibration. Data : Temp / 100 * 2^12
>
> Any constraints? 0-2^32 are valid values?

 I added range of the values

>
> > +
> > +  r0_calib:
>
> Same here.

I added range of the values.

>
> > +$ref: /schemas/types.yaml#/definitions/uint32
> > +description: This is r0 calibration data which was measured in factory 
> > mode.
> > +
> > +required:
> > +  - compatible
> > +  - reg
>
> Add:
>
> additionalProperties: false

I have added this.

>
> > +
> > +examples:
> > +  - |
> > +max98390: amplifier@38 {
> > +compatible = "maxim,max98390";
> > +reg = <0x38>;
> > +maxim,temperature_calib = <1024>;
> > +maxim,r0_calib = <100232>;
> > +};
> > --
> > 2.17.1
> >


Re: [V6 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-29 Thread Steve Lee
On Thu, May 28, 2020 at 11:15 PM Rob Herring  wrote:
>
> On Thu, 28 May 2020 19:37:55 +0900, Steve Lee wrote:
> > Add DT binding of max98390 amplifier driver.
> >
> > Signed-off-by: Steve Lee 
> > ---
> > Changed since V5:
> >   * Change txt to yaml and fix up the examples.
> > Changed since V4:
> >   * No changes.
> > Changed since V3:
> >   * No changes.
> > Changed since V2:
> >   * No changes.
> > Changed since V1:
> >   * Modified sample text in example
> >
> >  .../bindings/sound/maxim,max98390.yaml| 39 +++
> >  1 file changed, 39 insertions(+)
> >  create mode 100644 
> > Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> >
>
>
> My bot found errors running 'make dt_binding_check' on your patch:
>
> Documentation/devicetree/bindings/sound/maxim,max98390.yaml:  mapping values 
> are not allowed in this context
>   in "", line 22, column 97
> Documentation/devicetree/bindings/Makefile:12: recipe for target 
> 'Documentation/devicetree/bindings/sound/maxim,max98390.example.dts' failed
> make[1]: *** 
> [Documentation/devicetree/bindings/sound/maxim,max98390.example.dts] Error 1
> make[1]: *** Waiting for unfinished jobs
> /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/sound/maxim,max98390.yaml:
>  ignoring, error parsing file
> warning: no schema found in file: 
> ./Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/sound/maxim,max98390.yaml:
>  ignoring, error parsing file
> warning: no schema found in file: 
> ./Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> Makefile:1300: recipe for target 'dt_binding_check' failed
> make: *** [dt_binding_check] Error 2
>
> See https://patchwork.ozlabs.org/patch/1299651
>
> If you already ran 'make dt_binding_check' and didn't see the above
> error(s), then make sure dt-schema is up to date:
>
> pip3 install git+https://github.com/devicetree-org/dt-schema.git@master 
> --upgrade
>
> Please check and re-submit.
>
 Thanks for feedback. I re-submit with after dt binding check again.


Re: [V6 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-28 Thread Rob Herring
On Thu, May 28, 2020 at 07:37:55PM +0900, Steve Lee wrote:
> Add DT binding of max98390 amplifier driver.
> 
> Signed-off-by: Steve Lee 
> ---
> Changed since V5:
>   * Change txt to yaml and fix up the examples.
> Changed since V4:
>   * No changes.
> Changed since V3:
>   * No changes.
> Changed since V2:
>   * No changes.
> Changed since V1:
>   * Modified sample text in example
> 
>  .../bindings/sound/maxim,max98390.yaml| 39 +++
>  1 file changed, 39 insertions(+)
>  create mode 100644 
> Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> 
> diff --git a/Documentation/devicetree/bindings/sound/maxim,max98390.yaml 
> b/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> new file mode 100644
> index ..1ed4ab9e1c37
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> @@ -0,0 +1,39 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/maxim,max98390.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Maxim Integrated MAX98390 Speaker Amplifier with Integrated Dynamic 
> Speaker Management
> +
> +maintainers:
> +  - Steve Lee 
> +
> +properties:
> +  compatible:
> +  const: maxim,max98390
> +
> +  reg:
> +maxItems: 1
> +description: I2C address of the device.
> +
> +  temperature_calib:

s/_/-/

And missing 'maxim' prefix.

> +$ref: /schemas/types.yaml#/definitions/uint32
> +description: The calculated temperature data was measured while doing 
> the calibration. Data : Temp / 100 * 2^12

Any constraints? 0-2^32 are valid values?

> +
> +  r0_calib:

Same here.

> +$ref: /schemas/types.yaml#/definitions/uint32
> +description: This is r0 calibration data which was measured in factory 
> mode.
> +
> +required:
> +  - compatible
> +  - reg

Add:

additionalProperties: false

> +
> +examples:
> +  - |
> +max98390: amplifier@38 {
> +compatible = "maxim,max98390";
> +reg = <0x38>;
> +maxim,temperature_calib = <1024>;
> +maxim,r0_calib = <100232>;
> +};
> -- 
> 2.17.1
> 


Re: [V6 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-28 Thread Rob Herring
On Thu, 28 May 2020 19:37:55 +0900, Steve Lee wrote:
> Add DT binding of max98390 amplifier driver.
> 
> Signed-off-by: Steve Lee 
> ---
> Changed since V5:
>   * Change txt to yaml and fix up the examples.
> Changed since V4:
>   * No changes.
> Changed since V3:
>   * No changes.
> Changed since V2:
>   * No changes.
> Changed since V1:
>   * Modified sample text in example
> 
>  .../bindings/sound/maxim,max98390.yaml| 39 +++
>  1 file changed, 39 insertions(+)
>  create mode 100644 
> Documentation/devicetree/bindings/sound/maxim,max98390.yaml
> 


My bot found errors running 'make dt_binding_check' on your patch:

Documentation/devicetree/bindings/sound/maxim,max98390.yaml:  mapping values 
are not allowed in this context
  in "", line 22, column 97
Documentation/devicetree/bindings/Makefile:12: recipe for target 
'Documentation/devicetree/bindings/sound/maxim,max98390.example.dts' failed
make[1]: *** 
[Documentation/devicetree/bindings/sound/maxim,max98390.example.dts] Error 1
make[1]: *** Waiting for unfinished jobs
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/sound/maxim,max98390.yaml:
 ignoring, error parsing file
warning: no schema found in file: 
./Documentation/devicetree/bindings/sound/maxim,max98390.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/sound/maxim,max98390.yaml:
 ignoring, error parsing file
warning: no schema found in file: 
./Documentation/devicetree/bindings/sound/maxim,max98390.yaml
Makefile:1300: recipe for target 'dt_binding_check' failed
make: *** [dt_binding_check] Error 2

See https://patchwork.ozlabs.org/patch/1299651

If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure dt-schema is up to date:

pip3 install git+https://github.com/devicetree-org/dt-schema.git@master 
--upgrade

Please check and re-submit.



[V6 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-28 Thread Steve Lee
Add DT binding of max98390 amplifier driver.

Signed-off-by: Steve Lee 
---
Changed since V5:
* Change txt to yaml and fix up the examples.
Changed since V4:
* No changes.
Changed since V3:
* No changes.
Changed since V2:
* No changes.
Changed since V1:
* Modified sample text in example

 .../bindings/sound/maxim,max98390.yaml| 39 +++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/maxim,max98390.yaml

diff --git a/Documentation/devicetree/bindings/sound/maxim,max98390.yaml 
b/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
new file mode 100644
index ..1ed4ab9e1c37
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/maxim,max98390.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim Integrated MAX98390 Speaker Amplifier with Integrated Dynamic 
Speaker Management
+
+maintainers:
+  - Steve Lee 
+
+properties:
+  compatible:
+  const: maxim,max98390
+
+  reg:
+maxItems: 1
+description: I2C address of the device.
+
+  temperature_calib:
+$ref: /schemas/types.yaml#/definitions/uint32
+description: The calculated temperature data was measured while doing the 
calibration. Data : Temp / 100 * 2^12
+
+  r0_calib:
+$ref: /schemas/types.yaml#/definitions/uint32
+description: This is r0 calibration data which was measured in factory 
mode.
+
+required:
+  - compatible
+  - reg
+
+examples:
+  - |
+max98390: amplifier@38 {
+compatible = "maxim,max98390";
+reg = <0x38>;
+maxim,temperature_calib = <1024>;
+maxim,r0_calib = <100232>;
+};
-- 
2.17.1



Re: [RESEND][V5 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-28 Thread Steve Lee
On Wed, May 27, 2020 at 7:36 AM Rob Herring  wrote:
>
> On Mon, May 18, 2020 at 09:49:30AM +0900, Steve Lee wrote:
> > Add documentation for DT binding of max98390 amplifier driver.
> >
> > Signed-off-by: Steve Lee 
> > ---
> >
> >
> > Changed since V4:
> >   * No changes.
> > Changed since V3:
> >   * No changes.
> > Changed since V2:
> >   * No changes.
> > Changed since V1:
> >   * Modified sample text in example
>
> You are obviously sending patches too quickly. Give folks a chance to
> review.

 Thanks for your feedback !.

>
> >
> >  .../devicetree/bindings/sound/max98390.txt| 26 +++
>
> Bindings are now in DT schema format. Please convert this. See
> Documentation/devicetree/writing-schema.rst

 Thanks for review. I will change txt to yaml version.

>
> >  1 file changed, 26 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/sound/max98390.txt
> >
> > diff --git a/Documentation/devicetree/bindings/sound/max98390.txt 
> > b/Documentation/devicetree/bindings/sound/max98390.txt
> > new file mode 100644
> > index ..0ddd4c6ae55e
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/sound/max98390.txt
> > @@ -0,0 +1,26 @@
> > +Maxim Integrated MAX98390 Speaker Amplifier
> > +
> > +This device supports I2C.
> > +
> > +Required properties:
> > +
> > + - compatible : "maxim,max98390"
> > +
> > + - reg : the I2C address of the device.
> > +
> > +Optional properties:
> > +
> > +- maxim,temperature_calib
> > +  u32. The calculated temperature data was measured while doing the 
> > calibration. Data : Temp / 100 * 2^12
> > +
> > +- maxim,r0_calib
> > +  u32. This is r0 calibration data which was measured in factory mode.
>
> Unless these are shared already with other Maxim chips, s/_/-/.
>
> > +
> > +Example:
> > +
> > +codec: max98390@38 {
>
> amplifier@38

 I will change example as you advise.

>
> > + compatible = "maxim,max98390";
> > + reg = <0x38>;
> > + maxim,temperature_calib = <1024>;
> > + maxim,r0_calib = <100232>;
> > +};
> > --
> > 2.17.1
> >


Re: [RESEND][V5 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-26 Thread Rob Herring
On Mon, May 18, 2020 at 09:49:30AM +0900, Steve Lee wrote:
> Add documentation for DT binding of max98390 amplifier driver.
> 
> Signed-off-by: Steve Lee 
> ---
> 
> 
> Changed since V4:
>   * No changes.
> Changed since V3:
>   * No changes.
> Changed since V2:
>   * No changes.
> Changed since V1:
>   * Modified sample text in example

You are obviously sending patches too quickly. Give folks a chance to 
review.

> 
>  .../devicetree/bindings/sound/max98390.txt| 26 +++

Bindings are now in DT schema format. Please convert this. See 
Documentation/devicetree/writing-schema.rst

>  1 file changed, 26 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/sound/max98390.txt
> 
> diff --git a/Documentation/devicetree/bindings/sound/max98390.txt 
> b/Documentation/devicetree/bindings/sound/max98390.txt
> new file mode 100644
> index ..0ddd4c6ae55e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/max98390.txt
> @@ -0,0 +1,26 @@
> +Maxim Integrated MAX98390 Speaker Amplifier
> +
> +This device supports I2C.
> +
> +Required properties:
> +
> + - compatible : "maxim,max98390"
> +
> + - reg : the I2C address of the device.
> +
> +Optional properties:
> +
> +- maxim,temperature_calib
> +  u32. The calculated temperature data was measured while doing the 
> calibration. Data : Temp / 100 * 2^12
> +
> +- maxim,r0_calib
> +  u32. This is r0 calibration data which was measured in factory mode.

Unless these are shared already with other Maxim chips, s/_/-/.

> +
> +Example:
> +
> +codec: max98390@38 {

amplifier@38

> + compatible = "maxim,max98390";
> + reg = <0x38>;
> + maxim,temperature_calib = <1024>;
> + maxim,r0_calib = <100232>;
> +};
> -- 
> 2.17.1
> 


[RESEND][V5 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-17 Thread Steve Lee
Add documentation for DT binding of max98390 amplifier driver.

Signed-off-by: Steve Lee 
---


Changed since V4:
* No changes.
Changed since V3:
* No changes.
Changed since V2:
* No changes.
Changed since V1:
* Modified sample text in example

 .../devicetree/bindings/sound/max98390.txt| 26 +++
 1 file changed, 26 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/max98390.txt

diff --git a/Documentation/devicetree/bindings/sound/max98390.txt 
b/Documentation/devicetree/bindings/sound/max98390.txt
new file mode 100644
index ..0ddd4c6ae55e
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/max98390.txt
@@ -0,0 +1,26 @@
+Maxim Integrated MAX98390 Speaker Amplifier
+
+This device supports I2C.
+
+Required properties:
+
+ - compatible : "maxim,max98390"
+
+ - reg : the I2C address of the device.
+
+Optional properties:
+
+- maxim,temperature_calib
+  u32. The calculated temperature data was measured while doing the 
calibration. Data : Temp / 100 * 2^12
+
+- maxim,r0_calib
+  u32. This is r0 calibration data which was measured in factory mode.
+
+Example:
+
+codec: max98390@38 {
+   compatible = "maxim,max98390";
+   reg = <0x38>;
+   maxim,temperature_calib = <1024>;
+   maxim,r0_calib = <100232>;
+};
-- 
2.17.1



[V5 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-15 Thread Steve Lee
Add documentation for DT binding of max98390 amplifier driver.

Signed-off-by: Steve Lee 
---


Changed since V4:
* No changes.
Changed since V3:
* No changes.
Changed since V2:
* No changes.
Changed since V1:
* Modified sample text in example

 .../devicetree/bindings/sound/max98390.txt| 26 +++
 1 file changed, 26 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/max98390.txt

diff --git a/Documentation/devicetree/bindings/sound/max98390.txt 
b/Documentation/devicetree/bindings/sound/max98390.txt
new file mode 100644
index ..0ddd4c6ae55e
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/max98390.txt
@@ -0,0 +1,26 @@
+Maxim Integrated MAX98390 Speaker Amplifier
+
+This device supports I2C.
+
+Required properties:
+
+ - compatible : "maxim,max98390"
+
+ - reg : the I2C address of the device.
+
+Optional properties:
+
+- maxim,temperature_calib
+  u32. The calculated temperature data was measured while doing the 
calibration. Data : Temp / 100 * 2^12
+
+- maxim,r0_calib
+  u32. This is r0 calibration data which was measured in factory mode.
+
+Example:
+
+codec: max98390@38 {
+   compatible = "maxim,max98390";
+   reg = <0x38>;
+   maxim,temperature_calib = <1024>;
+   maxim,r0_calib = <100232>;
+};
-- 
2.17.1



[V4 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-14 Thread Steve Lee
Add documentation for DT binding of max98390 amplifier driver.

Signed-off-by: Steve Lee 
---

Changed since V3:
* No changes.
Changed since V2:
* No changes.
Changed since V1:
* Modified sample text in example

 .../devicetree/bindings/sound/max98390.txt| 26 +++
 1 file changed, 26 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/max98390.txt

diff --git a/Documentation/devicetree/bindings/sound/max98390.txt 
b/Documentation/devicetree/bindings/sound/max98390.txt
new file mode 100644
index ..0ddd4c6ae55e
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/max98390.txt
@@ -0,0 +1,26 @@
+Maxim Integrated MAX98390 Speaker Amplifier
+
+This device supports I2C.
+
+Required properties:
+
+ - compatible : "maxim,max98390"
+
+ - reg : the I2C address of the device.
+
+Optional properties:
+
+- maxim,temperature_calib
+  u32. The calculated temperature data was measured while doing the 
calibration. Data : Temp / 100 * 2^12
+
+- maxim,r0_calib
+  u32. This is r0 calibration data which was measured in factory mode.
+
+Example:
+
+codec: max98390@38 {
+   compatible = "maxim,max98390";
+   reg = <0x38>;
+   maxim,temperature_calib = <1024>;
+   maxim,r0_calib = <100232>;
+};
-- 
2.17.1



[V3 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-13 Thread Steve Lee
Add documentation for DT binding of max98390 amplifier driver.

Signed-off-by: Steve Lee 
---

Changed since V2:
* No changes.
Changed since V1:
* Modified sample text in example

 .../devicetree/bindings/sound/max98390.txt| 26 +++
 1 file changed, 26 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/max98390.txt

diff --git a/Documentation/devicetree/bindings/sound/max98390.txt 
b/Documentation/devicetree/bindings/sound/max98390.txt
new file mode 100644
index ..0ddd4c6ae55e
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/max98390.txt
@@ -0,0 +1,26 @@
+Maxim Integrated MAX98390 Speaker Amplifier
+
+This device supports I2C.
+
+Required properties:
+
+ - compatible : "maxim,max98390"
+
+ - reg : the I2C address of the device.
+
+Optional properties:
+
+- maxim,temperature_calib
+  u32. The calculated temperature data was measured while doing the 
calibration. Data : Temp / 100 * 2^12
+
+- maxim,r0_calib
+  u32. This is r0 calibration data which was measured in factory mode.
+
+Example:
+
+codec: max98390@38 {
+   compatible = "maxim,max98390";
+   reg = <0x38>;
+   maxim,temperature_calib = <1024>;
+   maxim,r0_calib = <100232>;
+};
-- 
2.17.1



[V2 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-12 Thread Steve Lee
Add documentation for DT binding of max98390 amplifier driver.

Signed-off-by: Steve Lee 
---
 .../devicetree/bindings/sound/max98390.txt| 26 +++
 1 file changed, 26 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/max98390.txt

diff --git a/Documentation/devicetree/bindings/sound/max98390.txt 
b/Documentation/devicetree/bindings/sound/max98390.txt
new file mode 100644
index ..0ddd4c6ae55e
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/max98390.txt
@@ -0,0 +1,26 @@
+Maxim Integrated MAX98390 Speaker Amplifier
+
+This device supports I2C.
+
+Required properties:
+
+ - compatible : "maxim,max98390"
+
+ - reg : the I2C address of the device.
+
+Optional properties:
+
+- maxim,temperature_calib
+  u32. The calculated temperature data was measured while doing the 
calibration. Data : Temp / 100 * 2^12
+
+- maxim,r0_calib
+  u32. This is r0 calibration data which was measured in factory mode.
+
+Example:
+
+codec: max98390@38 {
+   compatible = "maxim,max98390";
+   reg = <0x38>;
+   maxim,temperature_calib = <1024>;
+   maxim,r0_calib = <100232>;
+};
-- 
2.17.1



[PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-08 Thread Steve Lee
Signed-off-by: Steve Lee 
---
 .../devicetree/bindings/sound/max98390.txt| 26 +++
 1 file changed, 26 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/max98390.txt

diff --git a/Documentation/devicetree/bindings/sound/max98390.txt 
b/Documentation/devicetree/bindings/sound/max98390.txt
new file mode 100644
index ..147dfd88cd3b
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/max98390.txt
@@ -0,0 +1,26 @@
+Maxim Integrated MAX98390 Speaker Amplifier
+
+This device supports I2C.
+
+Required properties:
+
+ - compatible : "maxim,max98390"
+
+ - reg : the I2C address of the device.
+
+Optional properties:
+
+ - maxim,temperature_calib
+   u32. The calculated temperature data was measured while doing the 
calibration. Data calibration : Temp / 100 * 2^12
+
+ - maxim,r0_calib
+   u32. This is r0 calibration data which was measured in factory mode.
+
+Example:
+
+codec: max98390@38 {
+   compatible = "maxim,max98390";
+   reg = <0x38>;
+   maxim,temperature_calib = <1024>;
+   maxim,r0_calib = <0x224050>;
+};
-- 
2.17.1