xref: /freebsd/sys/contrib/device-tree/src/arm64/mediatek/mt8183-kukui-audio-ts3a227e.dtsi (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
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		interrupts-extended = <&pio 157 IRQ_TYPE_LEVEL_LOW>;
15		status = "okay";
16	};
17};
18
19&pio {
20	ts3a227e_pins: ts3a227e_pins {
21		pins1 {
22			pinmux = <PINMUX_GPIO157__FUNC_GPIO157>;
23			input-enable;
24			bias-pull-up;
25		};
26	};
27};
28
29&sound {
30	mediatek,headset-codec = <&ts3a227e>;
31};
32