18c2ecf20Sopenharmony_ciAnalog Devices ADAU1977/ADAU1978/ADAU1979
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciDatasheets:
48c2ecf20Sopenharmony_cihttps://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1977.pdf
58c2ecf20Sopenharmony_cihttps://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1978.pdf
68c2ecf20Sopenharmony_cihttps://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1979.pdf
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciThis driver supports both the I2C and SPI bus.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciRequired properties:
118c2ecf20Sopenharmony_ci - compatible: Should contain one of the following:
128c2ecf20Sopenharmony_ci               "adi,adau1977"
138c2ecf20Sopenharmony_ci               "adi,adau1978"
148c2ecf20Sopenharmony_ci               "adi,adau1979"
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci - AVDD-supply: analog power supply for the device, please consult
178c2ecf20Sopenharmony_ci                Documentation/devicetree/bindings/regulator/regulator.txt
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciOptional properties:
208c2ecf20Sopenharmony_ci - reset-gpios: the reset pin for the chip, for more details consult
218c2ecf20Sopenharmony_ci                Documentation/devicetree/bindings/gpio/gpio.txt
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci - DVDD-supply: supply voltage for the digital core, please consult
248c2ecf20Sopenharmony_ci                Documentation/devicetree/bindings/regulator/regulator.txt
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci- adi,micbias: configures the voltage setting for the MICBIAS pin.
278c2ecf20Sopenharmony_ci		Select 0/1/2/3/4/5/6/7/8 to specify MICBIAS voltage
288c2ecf20Sopenharmony_ci		5V/5.5V/6V/6.5V/7V/7.5V/8V/8.5V/9V
298c2ecf20Sopenharmony_ci		If not specified the default value will be "7" meaning 8.5 Volts.
308c2ecf20Sopenharmony_ci		This property is only valid for the ADAU1977
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciFor required properties on SPI, please consult
338c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/spi/spi-bus.txt
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciRequired properties on I2C:
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci - reg:         The i2c address. Value depends on the state of ADDR0
388c2ecf20Sopenharmony_ci                and ADDR1, as wired in hardware.
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ciExamples:
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci	adau1977_spi: adau1977@0 {
438c2ecf20Sopenharmony_ci		compatible = "adi,adau1977";
448c2ecf20Sopenharmony_ci		spi-max-frequency = <600000>;
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci		AVDD-supply = <&regulator>;
478c2ecf20Sopenharmony_ci		DVDD-supply = <&regulator_digital>;
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci		adi,micbias = <3>;
508c2ecf20Sopenharmony_ci		reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
518c2ecf20Sopenharmony_ci	};
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci	adau1977_i2c: adau1977@11 {
548c2ecf20Sopenharmony_ci		compatible = "adi,adau1977";
558c2ecf20Sopenharmony_ci		reg = <0x11>;
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci		AVDD-supply = <&regulator>;
588c2ecf20Sopenharmony_ci		DVDD-supply = <&regulator_digital>;
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci		reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
618c2ecf20Sopenharmony_ci	};
62