aboutsummaryrefslogtreecommitdiff
path: root/dts/upstream/src/arm64/qcom/sc7180-trogdor-rt5682s-sku.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'dts/upstream/src/arm64/qcom/sc7180-trogdor-rt5682s-sku.dtsi')
-rw-r--r--dts/upstream/src/arm64/qcom/sc7180-trogdor-rt5682s-sku.dtsi38
1 files changed, 38 insertions, 0 deletions
diff --git a/dts/upstream/src/arm64/qcom/sc7180-trogdor-rt5682s-sku.dtsi b/dts/upstream/src/arm64/qcom/sc7180-trogdor-rt5682s-sku.dtsi
new file mode 100644
index 00000000000..ea036a73f87
--- /dev/null
+++ b/dts/upstream/src/arm64/qcom/sc7180-trogdor-rt5682s-sku.dtsi
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Google Trogdor dts fragment for SKUs with rt5682s
+ *
+ * Copyright 2023 Google LLC.
+ */
+
+&hp_i2c {
+ alc5682: codec@1a {
+ compatible = "realtek,rt5682s";
+ reg = <0x1a>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&hp_irq>;
+
+ #sound-dai-cells = <1>;
+
+ interrupt-parent = <&tlmm>;
+ /*
+ * This will get ignored because the interrupt type
+ * is set in rt5682.c.
+ */
+ interrupts = <28 IRQ_TYPE_EDGE_BOTH>;
+
+ AVDD-supply = <&pp1800_alc5682>;
+ DBVDD-supply = <&pp1800_alc5682>;
+ LDO1-IN-supply = <&pp1800_alc5682>;
+ MICVDD-supply = <&pp3300_codec>;
+
+ realtek,dmic1-data-pin = <1>;
+ realtek,dmic1-clk-pin = <2>;
+ realtek,dmic-clk-rate-hz = <2048000>;
+ realtek,jd-src = <1>;
+ };
+};
+
+&sound {
+ model = "sc7180-rt5682s-max98357a-1mic";
+};