1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 /* 4 * Realtek RT5663 audio codec devicetree bindings 5 */ 6 7 #ifndef __DRIVERS_I2C_RT5663_CHIP_H__ 8 #define __DRIVERS_I2C_RT5663_CHIP_H__ 9 10 #include <acpi/acpi_device.h> 11 #include <stdint.h> 12 13 struct drivers_i2c_rt5663_config { 14 /* I2C Bus Frequency in Hertz (default 400kHz) */ 15 unsigned int bus_speed; 16 /* Identifier for multiple chips */ 17 unsigned int uid; 18 19 /* Allow GPIO based interrupt or PIRQ */ 20 struct acpi_gpio irq_gpio; 21 struct acpi_irq irq; 22 23 /* Manual offset value to compensate DC offset for L/R channels */ 24 uint32_t dc_offset_l_manual; 25 uint32_t dc_offset_r_manual; 26 uint32_t dc_offset_l_manual_mic; 27 uint32_t dc_offset_r_manual_mic; 28 }; 29 30 #endif /* __DRIVERS_I2C_RT5663_CHIP_H__ */ 31