xref: /freebsd/sys/contrib/device-tree/Bindings/sound/maxim,max98390.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/maxim,max98390.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Maxim Integrated MAX98390 Speaker Amplifier with Integrated Dynamic Speaker Management
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Steve Lee <steves.lee@maximintegrated.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotproperties:
13c66ec88fSEmmanuel Vadot  compatible:
14c66ec88fSEmmanuel Vadot    const: maxim,max98390
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot  reg:
17c66ec88fSEmmanuel Vadot    maxItems: 1
18c66ec88fSEmmanuel Vadot    description: I2C address of the device.
19c66ec88fSEmmanuel Vadot
20c66ec88fSEmmanuel Vadot  maxim,temperature_calib:
21c66ec88fSEmmanuel Vadot    description: The calculated temperature data was measured while doing the calibration.
22c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
23c66ec88fSEmmanuel Vadot    minimum: 0
24c66ec88fSEmmanuel Vadot    maximum: 65535
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  maxim,r0_calib:
27c66ec88fSEmmanuel Vadot    description: This is r0 calibration data which was measured in factory mode.
28c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
29c66ec88fSEmmanuel Vadot    minimum: 1
30c66ec88fSEmmanuel Vadot    maximum: 8388607
31c66ec88fSEmmanuel Vadot
32*d5b0e70fSEmmanuel Vadot  reset-gpios:
33*d5b0e70fSEmmanuel Vadot    maxItems: 1
34*d5b0e70fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadotrequired:
36c66ec88fSEmmanuel Vadot  - compatible
37c66ec88fSEmmanuel Vadot  - reg
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel VadotadditionalProperties: false
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadotexamples:
42c66ec88fSEmmanuel Vadot  - |
43*d5b0e70fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
44c66ec88fSEmmanuel Vadot    i2c {
45c66ec88fSEmmanuel Vadot      #address-cells = <1>;
46c66ec88fSEmmanuel Vadot      #size-cells = <0>;
47c66ec88fSEmmanuel Vadot      max98390: amplifier@38 {
48c66ec88fSEmmanuel Vadot        compatible = "maxim,max98390";
49c66ec88fSEmmanuel Vadot        reg = <0x38>;
50c66ec88fSEmmanuel Vadot        maxim,temperature_calib = <1024>;
51c66ec88fSEmmanuel Vadot        maxim,r0_calib = <100232>;
52*d5b0e70fSEmmanuel Vadot        reset-gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
53c66ec88fSEmmanuel Vadot      };
54c66ec88fSEmmanuel Vadot    };
55