xref: /linux/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-ts3a227e.dtsi (revision 87a0b2fafc09766d8c55461a18345a1cfb10a7fe)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Google Kukui (and derivatives) audio fragment for ts3a227e.
4 *
5 * Copyright 2019 Google LLC.
6 */
7
8&i2c5 {
9	ts3a227e: ts3a227e@3b {
10		pinctrl-names = "default";
11		pinctrl-0 = <&ts3a227e_pins>;
12		compatible = "ti,ts3a227e";
13		reg = <0x3b>;
14		interrupt-parent = <&pio>;
15		interrupts = <157 IRQ_TYPE_LEVEL_LOW>;
16		status = "okay";
17	};
18};
19
20&pio {
21	ts3a227e_pins: ts3a227e_pins {
22		pins1 {
23			pinmux = <PINMUX_GPIO157__FUNC_GPIO157>;
24			input-enable;
25			bias-pull-up;
26		};
27	};
28};
29
30&sound {
31	mediatek,headset-codec = <&ts3a227e>;
32};
33