xref: /freebsd/sys/contrib/device-tree/Bindings/sound/adi,adau1977.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotAnalog Devices ADAU1977/ADAU1978/ADAU1979
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotDatasheets:
4*c66ec88fSEmmanuel Vadothttps://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1977.pdf
5*c66ec88fSEmmanuel Vadothttps://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1978.pdf
6*c66ec88fSEmmanuel Vadothttps://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1979.pdf
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotThis driver supports both the I2C and SPI bus.
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotRequired properties:
11*c66ec88fSEmmanuel Vadot - compatible: Should contain one of the following:
12*c66ec88fSEmmanuel Vadot               "adi,adau1977"
13*c66ec88fSEmmanuel Vadot               "adi,adau1978"
14*c66ec88fSEmmanuel Vadot               "adi,adau1979"
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot - AVDD-supply: analog power supply for the device, please consult
17*c66ec88fSEmmanuel Vadot                Documentation/devicetree/bindings/regulator/regulator.txt
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel VadotOptional properties:
20*c66ec88fSEmmanuel Vadot - reset-gpios: the reset pin for the chip, for more details consult
21*c66ec88fSEmmanuel Vadot                Documentation/devicetree/bindings/gpio/gpio.txt
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot - DVDD-supply: supply voltage for the digital core, please consult
24*c66ec88fSEmmanuel Vadot                Documentation/devicetree/bindings/regulator/regulator.txt
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadot- adi,micbias: configures the voltage setting for the MICBIAS pin.
27*c66ec88fSEmmanuel Vadot		Select 0/1/2/3/4/5/6/7/8 to specify MICBIAS voltage
28*c66ec88fSEmmanuel Vadot		5V/5.5V/6V/6.5V/7V/7.5V/8V/8.5V/9V
29*c66ec88fSEmmanuel Vadot		If not specified the default value will be "7" meaning 8.5 Volts.
30*c66ec88fSEmmanuel Vadot		This property is only valid for the ADAU1977
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel VadotFor required properties on SPI, please consult
33*c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/spi/spi-bus.txt
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel VadotRequired properties on I2C:
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot - reg:         The i2c address. Value depends on the state of ADDR0
38*c66ec88fSEmmanuel Vadot                and ADDR1, as wired in hardware.
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel VadotExamples:
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel Vadot	adau1977_spi: adau1977@0 {
43*c66ec88fSEmmanuel Vadot		compatible = "adi,adau1977";
44*c66ec88fSEmmanuel Vadot		spi-max-frequency = <600000>;
45*c66ec88fSEmmanuel Vadot
46*c66ec88fSEmmanuel Vadot		AVDD-supply = <&regulator>;
47*c66ec88fSEmmanuel Vadot		DVDD-supply = <&regulator_digital>;
48*c66ec88fSEmmanuel Vadot
49*c66ec88fSEmmanuel Vadot		adi,micbias = <3>;
50*c66ec88fSEmmanuel Vadot		reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
51*c66ec88fSEmmanuel Vadot	};
52*c66ec88fSEmmanuel Vadot
53*c66ec88fSEmmanuel Vadot	adau1977_i2c: adau1977@11 {
54*c66ec88fSEmmanuel Vadot		compatible = "adi,adau1977";
55*c66ec88fSEmmanuel Vadot		reg = <0x11>;
56*c66ec88fSEmmanuel Vadot
57*c66ec88fSEmmanuel Vadot		AVDD-supply = <&regulator>;
58*c66ec88fSEmmanuel Vadot		DVDD-supply = <&regulator_digital>;
59*c66ec88fSEmmanuel Vadot
60*c66ec88fSEmmanuel Vadot		reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
61*c66ec88fSEmmanuel Vadot	};
62