xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7180-trogdor-rt5682s-sku.dtsi (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Google Trogdor dts fragment for SKUs with rt5682s
4 *
5 * Copyright 2023 Google LLC.
6 */
7
8&hp_i2c {
9	alc5682: codec@1a {
10		compatible = "realtek,rt5682s";
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
29		realtek,dmic1-data-pin = <1>;
30		realtek,dmic1-clk-pin = <2>;
31		realtek,dmic-clk-rate-hz = <2048000>;
32		realtek,jd-src = <1>;
33	};
34};
35
36&sound {
37	model = "sc7180-rt5682s-max98357a-1mic";
38};
39