0001 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
0002 /*
0003 * Google Kukui (and derivatives) audio fragment for da7219.
0004 *
0005 * Copyright 2020 Google LLC.
0006 */
0007
0008 &i2c5 {
0009 da7219: da7219@1a {
0010 pinctrl-names = "default";
0011 pinctrl-0 = <&da7219_pins>;
0012 compatible = "dlg,da7219";
0013 reg = <0x1a>;
0014 interrupt-parent = <&pio>;
0015 interrupts = <165 IRQ_TYPE_LEVEL_LOW 165 0>;
0016
0017 dlg,micbias-lvl = <2600>;
0018 dlg,mic-amp-in-sel = "diff";
0019 VDD-supply = <&pp1800_alw>;
0020 VDDMIC-supply = <&pp3300_alw>;
0021 VDDIO-supply = <&pp1800_alw>;
0022
0023 status = "okay";
0024
0025 da7219_aad {
0026 dlg,adc-1bit-rpt = <1>;
0027 dlg,btn-avg = <4>;
0028 dlg,btn-cfg = <50>;
0029 dlg,mic-det-thr = <500>;
0030 dlg,jack-ins-deb = <20>;
0031 dlg,jack-det-rate = "32ms_64ms";
0032 dlg,jack-rem-deb = <1>;
0033
0034 dlg,a-d-btn-thr = <0xa>;
0035 dlg,d-b-btn-thr = <0x16>;
0036 dlg,b-c-btn-thr = <0x21>;
0037 dlg,c-mic-btn-thr = <0x3E>;
0038 };
0039 };
0040 };
0041
0042 &pio {
0043 da7219_pins: da7219_pins {
0044 pins1 {
0045 pinmux = <PINMUX_GPIO165__FUNC_GPIO165>;
0046 input-enable;
0047 bias-pull-up;
0048 };
0049 };
0050 };
0051
0052 &sound {
0053 mediatek,headset-codec = <&da7219>;
0054 };