summaryrefslogtreecommitdiffstats
path: root/dts/src/arm64/mediatek/mt8183-kukui-audio-ts3a227e.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'dts/src/arm64/mediatek/mt8183-kukui-audio-ts3a227e.dtsi')
-rw-r--r--dts/src/arm64/mediatek/mt8183-kukui-audio-ts3a227e.dtsi32
1 files changed, 32 insertions, 0 deletions
diff --git a/dts/src/arm64/mediatek/mt8183-kukui-audio-ts3a227e.dtsi b/dts/src/arm64/mediatek/mt8183-kukui-audio-ts3a227e.dtsi
new file mode 100644
index 0000000000..0799c48ade
--- /dev/null
+++ b/dts/src/arm64/mediatek/mt8183-kukui-audio-ts3a227e.dtsi
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Google Kukui (and derivatives) audio fragment for ts3a227e.
+ *
+ * Copyright 2019 Google LLC.
+ */
+
+&i2c5 {
+ ts3a227e: ts3a227e@3b {
+ pinctrl-names = "default";
+ pinctrl-0 = <&ts3a227e_pins>;
+ compatible = "ti,ts3a227e";
+ reg = <0x3b>;
+ interrupt-parent = <&pio>;
+ interrupts = <157 IRQ_TYPE_LEVEL_LOW>;
+ status = "okay";
+ };
+};
+
+&pio {
+ ts3a227e_pins: ts3a227e_pins {
+ pins1 {
+ pinmux = <PINMUX_GPIO157__FUNC_GPIO157>;
+ input-enable;
+ bias-pull-up;
+ };
+ };
+};
+
+&sound {
+ mediatek,headset-codec = <&ts3a227e>;
+};