Files
android_kernel_motorola_sm6225/qcom/bengal-borneo-audio-overlay.dtsi
T
zhouwl e097b2a74b arm/dts: borneo: adjust headset micbias voltage
PROPAGATED_from (CR)

Adjust headset micbias to 2.8V for supporting
high impedance headset.

Change-Id: I428ce8e969966bb9c2a0e4e0acfd03ae193e615d
Signed-off-by: zhouwl <zhouwl@lenovo.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: Robert Cabral <robertc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1859244
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
2023-05-31 17:01:03 -03:00

192 lines
4.2 KiB
Devicetree

/* Copyright (c) 2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <dt-bindings/interrupt-controller/irq.h>
&wsa881x_i2c_e {
status = "disabled";
};
&wsa881x_i2c_44 {
status = "disabled";
};
&wsa881x_analog_clk_gpio {
status = "disabled";
};
&wsa881x_analog_reset_gpio {
status = "disabled";
};
&wsa881x_analog_clk {
status = "disabled";
};
&cdc_dmic01_gpios {
status = "disabled";
};
&cdc_dmic23_gpios {
status = "disabled";
};
&tlmm {
/*delete-node*/ spkr_1_sd_n;
aw882xx_reset: aw882xx_reset {
mux {
pins = "gpio106";
function = "gpio";
};
config {
pins = "gpio106";
drive-strength = <2>;
bias-pull-up;
input-enable;
};
};
aw882xx_irq: aw882xx_irq {
mux {
pins = "gpio107";
function = "gpio";
};
config {
pins = "gpio107";
drive-strength = <2>;
bias-pull-up;
input-enable;
};
};
hac_ctrl: hac_ctrl {
mux {
pins = "gpio68";
function = "gpio";
};
config {
pins = "gpio68";
drive-strength = <2>;
bias-pull-up;
input-enable;
};
};
};
&qupv3_se1_i2c {
status = "ok"
aw882xx_smartpa@34 {
compatible = "awinic,aw882xx_smartpa";
reg = <0x34>;
pinctrl-names = "default";
pinctrl-0 = <&aw882xx_reset>, <&aw882xx_irq>;
reset-gpio = <&tlmm 106 0>;
irq-gpio = <&tlmm 107 0x2008>;
monitor-flag = <1>;
fade-flag = <1>;
monitor-timer-val = <3000>;
afe-rx-portid = <0x1000>;
afe-tx-portid = <0x1001>;
low-vol-table-down = <3650 9 3 3750 9 2 3900 9 1>;
low-vol-table-up = <4000 9 0 3800 9 1 3700 9 2>;
low-temp-table-down = <0xFFFFFFFB 0x4 0x10 0xFFBEAE7E 0x0 0x5 0x9 0xFFD80505 0x5 0x6 0x6 0xFFED714D>;
low-temp-table-up = <0x7 0x9 0x0 0x00000000 0x2 0x6 0x06 0xFFED714D 0xFFFFFFE 0x05 0x09 0xFFD80505>;
status = "okay";
};
};
&q6core {
cdc_pri_mi2s_gpios: msm_cdc_pinctrl_pri {
compatible = "qcom,msm-cdc-pinctrl";
pinctrl-names = "aud_active", "aud_sleep";
pinctrl-0 = <&lpi_i2s1_sck_active &lpi_i2s1_ws_active
&lpi_i2s1_sd0_active &lpi_i2s1_sd1_active>;
pinctrl-1 = <&lpi_i2s1_sck_sleep &lpi_i2s1_ws_sleep
&lpi_i2s1_sd0_sleep &lpi_i2s1_sd1_sleep>;
qcom,lpi-gpios;
};
};
&dai_mi2s0 {
status = "ok"
qcom,msm-mi2s-rx-lines = <1>;
qcom,msm-mi2s-tx-lines = <2>;
};
/* Modify btfmslim_codec's compatible */
&btfmslim_codec {
compatible = "btfmslim_slave";
status = "ok"
};
&bengal_snd {
compatible = "qcom,bengal-asoc-snd";
qcom,model = "bengal-awinic-snd-card";
qcom,audio-routing =
"AMIC1", "MIC BIAS1",
"MIC BIAS1", "Analog Mic1",
"AMIC2", "MIC BIAS2",
"MIC BIAS2", "Analog Mic2",
"AMIC3", "MIC BIAS3",
"MIC BIAS3", "Analog Mic3",
"IN1_HPHL", "HPHL_OUT",
"IN2_HPHR", "HPHR_OUT",
"IN3_AUX", "AUX_OUT",
"TX SWR_MIC0", "ADC1_OUTPUT",
"TX SWR_MIC4", "ADC2_OUTPUT",
"TX SWR_MIC0", "VA_TX_SWR_CLK",
"TX SWR_MIC1", "VA_TX_SWR_CLK",
"TX SWR_MIC2", "VA_TX_SWR_CLK",
"TX SWR_MIC3", "VA_TX_SWR_CLK",
"TX SWR_MIC4", "VA_TX_SWR_CLK",
"RX_TX DEC0_INP", "TX DEC0 MUX",
"RX_TX DEC1_INP", "TX DEC1 MUX",
"RX_TX DEC2_INP", "TX DEC2 MUX",
"RX_TX DEC3_INP", "TX DEC3 MUX",
"TX_AIF1 CAP", "VA_TX_SWR_CLK",
"TX_AIF2 CAP", "VA_TX_SWR_CLK",
"TX_AIF3 CAP", "VA_TX_SWR_CLK",
"VA SWR_MIC0", "ADC1_OUTPUT",
"VA SWR_MIC4", "ADC2_OUTPUT";
qcom,mi2s-audio-intf = <1>;
qcom,pri-mi2s-gpios = <&cdc_pri_mi2s_gpios>;
aw,have-882xx = <1>;
qcom,ext-hac-gpio = <&tlmm 68 0>;
qcom,wsa-max-devs = <0>;
/delete-property/ qcom,wsa-devs;
/delete-property/ qcom,wsa-aux-dev-prefix;
/delete-property/ qcom,cdc-dmic01-gpios;
/delete-property/ qcom,cdc-dmic23-gpios;
qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>;
qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>;
};
&fsa4480 {
status = "disabled";
};
/* Modify headset's BIAS voltage to 2.8V */
&wcd937x_codec {
qcom,cdc-micbias2-mv = <2800>;
};