mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
arm64/dtsi: pnangn audio bringup
changes: config aw88261 dual smartpa Change-Id: I4230e1f524f2f87db01ad0b2872a75b36dcce5ec Signed-off-by: guoyf2 <guoyf2@lenovo.com> Reviewed-on: https://gerrit.mot.com/2368808 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yunfei Guo <guoyf2@motorola.com> Reviewed-by: Hujun Liao <liaohj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
d663af5901
commit
5f04fe212e
2 changed files with 82 additions and 21 deletions
|
|
@ -9,7 +9,7 @@
|
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
#include "holi-audio-pnangn-overlay.dtsi"
|
||||
#include "pnangn-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi"
|
||||
#include "holi-nopmi-moto-common-overlay.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,32 @@
|
|||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
&tlmm{
|
||||
aw882xx_irq_default: aw882xx_irq_default {
|
||||
mux {
|
||||
pins = "gpio59";
|
||||
function = "gpio";
|
||||
};
|
||||
config {
|
||||
pins = "gpio59";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
aw882xx_recv_irq_default: aw882xx_recv_irq_default {
|
||||
mux {
|
||||
pins = "gpio84";
|
||||
function = "gpio";
|
||||
};
|
||||
config {
|
||||
pins = "gpio84";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&cdc_dmic01_gpios {
|
||||
status = "disabled";
|
||||
};
|
||||
|
|
@ -56,6 +82,19 @@
|
|||
qcom,msm-mi2s-lines = <0>;
|
||||
};
|
||||
|
||||
&q6core {
|
||||
cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios {
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active
|
||||
&lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>;
|
||||
pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep
|
||||
&lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>;
|
||||
qcom,lpi-gpios;
|
||||
#gpio-cells = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
&bolero {
|
||||
qcom,num-macros = <3>;
|
||||
qcom,bolero-version = <5>;
|
||||
|
|
@ -220,10 +259,11 @@
|
|||
};
|
||||
|
||||
&holi_snd {
|
||||
qcom,model = "holi-9370_aw87xxx-snd-card";
|
||||
qcom,model = "holi-9370_aw882xx-snd-card";
|
||||
qcom,msm-mi2s-master = <1>, <1>, <1>, <1>;
|
||||
qcom,wcn-btfm = <1>;
|
||||
qcom,tdm-max-slots = <4>;
|
||||
qcom,mi2s-audio-intf = <0>;
|
||||
qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>;
|
||||
|
||||
qcom,audio-routing =
|
||||
"AMIC1", "Analog Mic1",
|
||||
|
|
@ -267,32 +307,53 @@
|
|||
qcom,msm-mbhc-hphl-swh = <1>;
|
||||
qcom,msm-mbhc-gnd-swh = <1>;
|
||||
asoc-codec = <&stub_codec>, <&bolero>,
|
||||
<&wcd937x_codec>;
|
||||
<&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>;
|
||||
asoc-codec-names = "msm-stub-codec.1", "bolero_codec",
|
||||
"wcd937x_codec";
|
||||
"wcd937x_codec", "aw882xxacf_smartpa.2-0034", "aw882xxacf_smartpa.2-0035";
|
||||
qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>,
|
||||
<&bolero>;
|
||||
qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>;
|
||||
qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>;
|
||||
};
|
||||
|
||||
&qupv3_se7_i2c {
|
||||
&qupv3_se10_i2c {
|
||||
status = "ok"
|
||||
aw887xx_smartpa_0: aw87xxx_pa@58 {
|
||||
compatible = "awinic,aw87xxx_pa";
|
||||
reg = <0x58>;
|
||||
dev_index = < 0 >;
|
||||
aw-rx-topo-id = <0x1000ff00>;
|
||||
aw-rx-port-id = <0xB030>;
|
||||
status = "okay";
|
||||
};
|
||||
aw887xx_smartpa_1: aw87xxx_pa@59 {
|
||||
compatible = "awinic,aw87xxx_pa";
|
||||
reg = <0x59>;
|
||||
dev_index = < 1 >;
|
||||
aw-rx-topo-id = <0x1000ff00>;
|
||||
aw-rx-port-id = <0xB030>;
|
||||
status = "okay";
|
||||
aw882xxacf: aw882xxacf_smartpa@34 {
|
||||
compatible = "awinic,aw882xxacf_smartpa";
|
||||
reg = <0x34>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&aw882xx_irq_default>;
|
||||
irq-gpio = <&tlmm 59 0x2008>;
|
||||
dc-flag = <0>;
|
||||
sound-channel = <0>;
|
||||
aw-tx-topo-id = <0x1000ff00>;
|
||||
aw-rx-topo-id = <0x1000ff01>;
|
||||
aw-rx-port-id = <0x1002>;
|
||||
aw-tx-port-id = <0x1003>;
|
||||
aw-re-min = <4000>;
|
||||
aw-re-max = <30000>;
|
||||
aw-cali-mode = "aw_attr";
|
||||
skt-prof-mode = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
aw882xxacf_recv: aw882xxacf_recv_smartpa@35 {
|
||||
compatible = "awinic,aw882xxacf_smartpa";
|
||||
reg = <0x35>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&aw882xx_recv_irq_default>;
|
||||
irq-gpio = <&tlmm 84 0x2008>;
|
||||
dc-flag = <0>;
|
||||
sync-flag = <0>;
|
||||
sound-channel = <1>;
|
||||
aw-tx-topo-id = <0x1000ff00>;
|
||||
aw-rx-topo-id = <0x1000ff01>;
|
||||
aw-rx-port-id = <0x1002>;
|
||||
aw-tx-port-id = <0x1003>;
|
||||
aw-re-min = <4000>;
|
||||
aw-re-max = <30000>;
|
||||
aw-cali-mode = "aw_attr";
|
||||
skt-prof-mode = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in a new issue