1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Google Trogdor dts fragment for SKUs with r 3 * Google Trogdor dts fragment for SKUs with rt5682s 4 * 4 * 5 * Copyright 2023 Google LLC. 5 * Copyright 2023 Google LLC. 6 */ 6 */ 7 7 8 &hp_i2c { 8 &hp_i2c { 9 alc5682: codec@1a { 9 alc5682: codec@1a { 10 compatible = "realtek,rt5682s" 10 compatible = "realtek,rt5682s"; 11 reg = <0x1a>; 11 reg = <0x1a>; 12 pinctrl-names = "default"; 12 pinctrl-names = "default"; 13 pinctrl-0 = <&hp_irq>; 13 pinctrl-0 = <&hp_irq>; 14 14 15 #sound-dai-cells = <1>; 15 #sound-dai-cells = <1>; 16 16 17 interrupt-parent = <&tlmm>; 17 interrupt-parent = <&tlmm>; 18 /* 18 /* 19 * This will get ignored becau 19 * This will get ignored because the interrupt type 20 * is set in rt5682.c. 20 * is set in rt5682.c. 21 */ 21 */ 22 interrupts = <28 IRQ_TYPE_EDGE 22 interrupts = <28 IRQ_TYPE_EDGE_BOTH>; 23 23 24 AVDD-supply = <&pp1800_alc5682 24 AVDD-supply = <&pp1800_alc5682>; 25 DBVDD-supply = <&pp1800_alc568 25 DBVDD-supply = <&pp1800_alc5682>; 26 LDO1-IN-supply = <&pp1800_alc5 26 LDO1-IN-supply = <&pp1800_alc5682>; 27 MICVDD-supply = <&pp3300_codec 27 MICVDD-supply = <&pp3300_codec>; 28 28 29 realtek,dmic1-data-pin = <1>; 29 realtek,dmic1-data-pin = <1>; 30 realtek,dmic1-clk-pin = <2>; 30 realtek,dmic1-clk-pin = <2>; 31 realtek,dmic-clk-rate-hz = <20 31 realtek,dmic-clk-rate-hz = <2048000>; 32 realtek,jd-src = <1>; 32 realtek,jd-src = <1>; 33 }; 33 }; 34 }; 34 }; 35 35 36 &sound { 36 &sound { 37 model = "sc7180-rt5682s-max98357a-1mic 37 model = "sc7180-rt5682s-max98357a-1mic"; 38 }; 38 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.