Merge tag 'ntfs3_for_5.19' of https://github.com/Paragon-Software-Group/linux-ntfs3
[linux-block.git] / arch / arm64 / boot / dts / mediatek / mt8183-kukui-audio-da7219.dtsi
CommitLineData
d2bbd5d9
KN
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Google Kukui (and derivatives) audio fragment for da7219.
4 *
5 * Copyright 2020 Google LLC.
6 */
7
8&i2c5 {
9 da7219: da7219@1a {
10 pinctrl-names = "default";
11 pinctrl-0 = <&da7219_pins>;
12 compatible = "dlg,da7219";
13 reg = <0x1a>;
14 interrupt-parent = <&pio>;
15 interrupts = <165 IRQ_TYPE_LEVEL_LOW 165 0>;
16
17 dlg,micbias-lvl = <2600>;
18 dlg,mic-amp-in-sel = "diff";
19 VDD-supply = <&pp1800_alw>;
20 VDDMIC-supply = <&pp3300_alw>;
21 VDDIO-supply = <&pp1800_alw>;
22
23 status = "okay";
24
25 da7219_aad {
26 dlg,adc-1bit-rpt = <1>;
27 dlg,btn-avg = <4>;
28 dlg,btn-cfg = <50>;
29 dlg,mic-det-thr = <500>;
30 dlg,jack-ins-deb = <20>;
31 dlg,jack-det-rate = "32ms_64ms";
32 dlg,jack-rem-deb = <1>;
33
34 dlg,a-d-btn-thr = <0xa>;
35 dlg,d-b-btn-thr = <0x16>;
36 dlg,b-c-btn-thr = <0x21>;
37 dlg,c-mic-btn-thr = <0x3E>;
38 };
39 };
40};
41
42&pio {
43 da7219_pins: da7219_pins {
44 pins1 {
45 pinmux = <PINMUX_GPIO165__FUNC_GPIO165>;
46 input-enable;
47 bias-pull-up;
48 };
49 };
50};
51
52&sound {
53 mediatek,headset-codec = <&da7219>;
54};