From 895d4b6f1c7c655cb60041a474c363ee4c194ebc Mon Sep 17 00:00:00 2001 From: liaoxl Date: Wed, 14 Oct 2020 13:47:46 +0800 Subject: [PATCH] arm64/dts: denver enable FM ELNA module Per RF team requirement, add these to support ELNA module for better RF performance. Change-Id: Ife771eaccfbb751d92e843bf6c6e619c5150305a Reviewed-on: https://gerrit.mot.com/1773395 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 1 + qcom/holi-denver-fmr-overlay.dtsi | 48 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 qcom/holi-denver-fmr-overlay.dtsi diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index cc0b4831f590..3a8cecbc57fb 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -15,6 +15,7 @@ #include "denver-touchscreen.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "holi-denver-fmr-overlay.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { diff --git a/qcom/holi-denver-fmr-overlay.dtsi b/qcom/holi-denver-fmr-overlay.dtsi new file mode 100644 index 000000000000..6a2fba46a9a9 --- /dev/null +++ b/qcom/holi-denver-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +};