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