Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 14 | interrupts-extended = <&pio 157 IRQ_TYPE_LEVEL_LOW>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | }; |