From 805825a57b6294cdc28d98487ac96280351f44e1 Mon Sep 17 00:00:00 2001 From: liaohj Date: Fri, 9 Jun 2023 17:36:02 +0800 Subject: [PATCH] dts:fogor:set audio dts fogo use wcd9370+fs1815 4375 platform. set related dts. Change-Id: I194d07b92136f7ceb54a9f9a9d0fd40c1e391bd6 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2639583 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-sensors.dtsi | 40 +------------------- qcom/holi-audio-fogor-overlay.dtsi | 61 +++++++++++++++++++++--------- 2 files changed, 45 insertions(+), 56 deletions(-) diff --git a/qcom/fogor-sensors.dtsi b/qcom/fogor-sensors.dtsi index a0df4cb77529..e65a4fbcabe0 100755 --- a/qcom/fogor-sensors.dtsi +++ b/qcom/fogor-sensors.dtsi @@ -37,31 +37,6 @@ bias-no-pull; }; }; - sar_int_fogor_default: sar_int_fogor_default { - mux { - pins = "gpio58"; - function = "gpio"; - }; - config { - pins = "gpio58"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; - - sar_int_fogor_sleep: sar_int_fogor_sleep { - mux { - pins = "gpio58"; - function = "gpio"; - }; - config { - pins = "gpio58"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; }; &soc { @@ -75,19 +50,12 @@ }; &qupv3_se8_i2c { - status = "okay"; + status = "disabled"; Semtech_sx937x@2c { compatible = "Semtech,sx937x"; reg = <0x2c>; Semtech,power-supply-type = <1>; cap_vdd-supply = <&L12A>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_fogor_default>; - pinctrl-1 = <&sar_int_fogor_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <58 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 58 0x02>; /*use PH5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ Semtech,ref-phases-a = <5>; @@ -171,10 +139,6 @@ reg = < 0x12 >; //aw_sar,regulator-power-supply = <1>; sar-num = < 0 >; - interrupt-parent = < &tlmm >; - interrupts = <58 0x02>; - interrupt-names = "awinic_irq"; - irq-gpio = <&tlmm 58 0x02>; //vcc0-supply = <&L12A>; channel_use_flag = <0x1f>; aw_sar,use_plug_cail; @@ -182,7 +146,7 @@ /* private node belongs to aw963xx */ start-mode = < 1 >; // 0: start in rom 1: start in ram irq-mux = < 2 >; // set csx as irq pin. config this field when connect to aw96308/aw96310 - status = "okay"; + status = "disabled"; }; }; diff --git a/qcom/holi-audio-fogor-overlay.dtsi b/qcom/holi-audio-fogor-overlay.dtsi index 27d3c21b2659..238c57cff51b 100644 --- a/qcom/holi-audio-fogor-overlay.dtsi +++ b/qcom/holi-audio-fogor-overlay.dtsi @@ -4,6 +4,33 @@ #include #include +&tlmm{ + fsm_rcv_rst: fsm_rcv_rst { + mux { + pins = "gpio86"; + function = "gpio"; + }; + config { + pins = "gpio86"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + output-low; + }; + }; + fsm_spk_rst: fsm_spk_rst { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + output-low; + }; + }; +}; + &cdc_dmic01_gpios { status = "disabled"; }; @@ -220,7 +247,7 @@ }; &holi_snd { - qcom,model = "holi-9370_aw87xxx-snd-card"; + qcom,model = "holi-9370_fs1815-snd-card"; qcom,wcn-btfm = <1>; qcom,tdm-max-slots = <4>; qcom,mi2s-audio-intf = <0>; @@ -276,25 +303,23 @@ qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; }; -&qupv3_se8_i2c { +&qupv3_se10_i2c { status = "ok"; - aw887xx_smartpa_0: aw87xxx_pa@58 { - compatible = "awinic,aw87xxx_pa"; - reg = <0x58>; - dev_index = < 0 >; - esd-enable = "true"; - aw-rx-topo-id = <0x1000ff00>; - aw-rx-port-id = <0xB030>; - status = "okay"; + fs1815_rcv: fs1815_rcv@34{ + compatible = "foursemi,fs1815"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&fsm_rcv_rst>; + fsm,rst-gpio = <&tlmm 86 0x00>; + status = "okay"; }; - aw887xx_smartpa_1: aw87xxx_pa@59 { - compatible = "awinic,aw87xxx_pa"; - reg = <0x59>; - dev_index = < 1 >; - esd-enable = "true"; - aw-rx-topo-id = <0x1000ff00>; - aw-rx-port-id = <0xB030>; - status = "okay"; + fs1815_spk: fs1815_spk@35{ + compatible = "foursemi,fs1815"; + reg = <0x35>; + pinctrl-names = "default"; + pinctrl-0 = <&fsm_spk_rst>; + fsm,rst-gpio = <&tlmm 58 0x00>; + status = "okay"; }; };