Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
0002 /*
0003  * Google Kukui (and derivatives) audio fragment for ts3a227e.
0004  *
0005  * Copyright 2019 Google LLC.
0006  */
0007 
0008 &i2c5 {
0009         ts3a227e: ts3a227e@3b {
0010                 pinctrl-names = "default";
0011                 pinctrl-0 = <&ts3a227e_pins>;
0012                 compatible = "ti,ts3a227e";
0013                 reg = <0x3b>;
0014                 interrupt-parent = <&pio>;
0015                 interrupts = <157 IRQ_TYPE_LEVEL_LOW>;
0016                 status = "okay";
0017         };
0018 };
0019 
0020 &pio {
0021         ts3a227e_pins: ts3a227e_pins {
0022                 pins1 {
0023                         pinmux = <PINMUX_GPIO157__FUNC_GPIO157>;
0024                         input-enable;
0025                         bias-pull-up;
0026                 };
0027         };
0028 };
0029 
0030 &sound {
0031         mediatek,headset-codec = <&ts3a227e>;
0032 };