| 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 |
|
| 7 |
title: Maxim Integrated MAX98390 Speaker Amplifier with Integrated Dynamic Speaker Management |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Steve Lee <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: dai-common.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
const: maxim,max98390 |
| 18 |
|
| 19 |
reg: |
| 20 |
maxItems: 1 |
| 21 |
description: I2C address of the device. |
| 22 |
|
| 23 |
maxim,temperature_calib: |
| 24 |
description: The calculated temperature data was measured while doing the calibration. |
| 25 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 26 |
minimum: 0 |
| 27 |
maximum: 65535 |
| 28 |
|
| 29 |
maxim,r0_calib: |
| 30 |
description: This is r0 calibration data which was measured in factory mode. |
| 31 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 32 |
minimum: 1 |
| 33 |
maximum: 8388607 |
| 34 |
|
| 35 |
reset-gpios: |
| 36 |
maxItems: 1 |
| 37 |
|
| 38 |
'#sound-dai-cells': |
| 39 |
const: 0 |
| 40 |
|
| 41 |
required: |
| 42 |
- compatible |
| 43 |
- reg |
| 44 |
|
| 45 |
unevaluatedProperties: false |
| 46 |
|
| 47 |
examples: |
| 48 |
- | |
| 49 |
#include <dt-bindings/gpio/gpio.h> |
| 50 |
i2c { |
| 51 |
#address-cells = <1>; |
| 52 |
#size-cells = <0>; |
| 53 |
max98390: amplifier@38 { |
| 54 |
compatible = "maxim,max98390"; |
| 55 |
reg = <0x38>; |
| 56 |
maxim,temperature_calib = <1024>; |
| 57 |
maxim,r0_calib = <100232>; |
| 58 |
reset-gpios = <&gpio 9 GPIO_ACTIVE_LOW>; |
| 59 |
}; |
| 60 |
}; |