| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef __DRIVERS_I2C_MAX98373_CHIP_H__ |
| 4 | #define __DRIVERS_I2C_MAX98373_CHIP_H__ |
| 5 | |
| 6 | /* |
| 7 | * Maxim MAX98373 audio codec devicetree bindings |
| 8 | */ |
| 9 | |
| 10 | #include <stdint.h> |
| 11 | |
| 12 | struct drivers_i2c_max98373_config { |
| 13 | /* I2C Bus Frequency in Hertz (default 400kHz) */ |
| 14 | uint32_t bus_speed; |
| 15 | /* Set '1' if I2S channel size is not 32bit. */ |
| 16 | bool interleave_mode; |
| 17 | /* Identifier for chips */ |
| 18 | uint32_t uid; |
| 19 | /* Device Description */ |
| 20 | const char *desc; |
| 21 | /* ACPI Device Name */ |
| 22 | const char *name; |
| 23 | /* slot number where voltage feedback will be received */ |
| 24 | uint32_t vmon_slot_no; |
| 25 | /* slot number where current feedback will be received */ |
| 26 | uint32_t imon_slot_no; |
| 27 | }; |
| 28 | |
| 29 | #endif /* __DRIVERS_I2C_MAX98373_CHIP_H__ */ |