mt8183-kukui-audio-da7219.dtsi 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. &i2c5 {
  8. da7219: da7219@1a {
  9. pinctrl-names = "default";
  10. pinctrl-0 = <&da7219_pins>;
  11. compatible = "dlg,da7219";
  12. reg = <0x1a>;
  13. interrupt-parent = <&pio>;
  14. interrupts = <165 IRQ_TYPE_LEVEL_LOW 165 0>;
  15. dlg,micbias-lvl = <2600>;
  16. dlg,mic-amp-in-sel = "diff";
  17. VDD-supply = <&pp1800_alw>;
  18. VDDMIC-supply = <&pp3300_alw>;
  19. VDDIO-supply = <&pp1800_alw>;
  20. status = "okay";
  21. da7219_aad {
  22. dlg,adc-1bit-rpt = <1>;
  23. dlg,btn-avg = <4>;
  24. dlg,btn-cfg = <50>;
  25. dlg,mic-det-thr = <500>;
  26. dlg,jack-ins-deb = <20>;
  27. dlg,jack-det-rate = "32ms_64ms";
  28. dlg,jack-rem-deb = <1>;
  29. dlg,a-d-btn-thr = <0xa>;
  30. dlg,d-b-btn-thr = <0x16>;
  31. dlg,b-c-btn-thr = <0x21>;
  32. dlg,c-mic-btn-thr = <0x3E>;
  33. };
  34. };
  35. };
  36. &pio {
  37. da7219_pins: da7219_pins {
  38. pins1 {
  39. pinmux = <PINMUX_GPIO165__FUNC_GPIO165>;
  40. input-enable;
  41. bias-pull-up;
  42. };
  43. };
  44. };
  45. &sound {
  46. mediatek,headset-codec = <&da7219>;
  47. };