Linux 6.7-rc7
[linux-modified.git] / arch / arm64 / boot / dts / qcom / sc7180-trogdor-rt5682i-sku.dtsi
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Google Trogdor dts fragment for SKUs with rt5682i
4  *
5  * Copyright 2023 Google LLC.
6  */
7
8 &hp_i2c {
9         alc5682: codec@1a {
10                 compatible = "realtek,rt5682i";
11                 reg = <0x1a>;
12                 pinctrl-names = "default";
13                 pinctrl-0 = <&hp_irq>;
14
15                 #sound-dai-cells = <1>;
16
17                 interrupt-parent = <&tlmm>;
18                 /*
19                  * This will get ignored because the interrupt type
20                  * is set in rt5682.c.
21                  */
22                 interrupts = <28 IRQ_TYPE_EDGE_BOTH>;
23
24                 AVDD-supply = <&pp1800_alc5682>;
25                 DBVDD-supply = <&pp1800_alc5682>;
26                 LDO1-IN-supply = <&pp1800_alc5682>;
27                 MICVDD-supply = <&pp3300_codec>;
28                 VBAT-supply = <&pp3300_audio>;
29
30                 realtek,dmic1-data-pin = <1>;
31                 realtek,dmic1-clk-pin = <1>;
32                 realtek,jd-src = <1>;
33         };
34 };
35
36 &sound {
37         model = "sc7180-rt5682-max98357a-1mic";
38 };