From ca5b5fc53acf7dd741d56dee0e25307ea1824468 Mon Sep 17 00:00:00 2001 From: Mahesh Sharma Date: Tue, 28 Jul 2020 13:46:29 -0700 Subject: [PATCH] ARM: dts: msm: Add DTSI entry to handle PA conf - Add base address of RPMH_PDC_WLAN_RF_TCSn_CMDn_DATA register and assign reg-name in order to access them in BT power driver. - Assign RPMH_PDC_WLAN_RF_TCS6_CMD2_DATA offset from base address. Change-Id: If58904a8c93fc60bcc9589ce40004dba924d9bb7 --- bindings/bluetooth/btpower.txt | 4 +++- qcom/lahaina.dtsi | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bindings/bluetooth/btpower.txt b/bindings/bluetooth/btpower.txt index b78f3cf1..8b7d10bd 100644 --- a/bindings/bluetooth/btpower.txt +++ b/bindings/bluetooth/btpower.txt @@ -21,6 +21,8 @@ Optional properties: - qcom,bt-vdd-xtal-supply: Bluetooth VDD XTAL regulator handle - qcom,bt-vdd-core-supply: Bluetooth VDD CORE regulator handle - qcom,bt-vdd-asd-supply: Bluetooth VDD regulator handle for antenna switch + - reg: Memory regions defined as starting address and size + - reg-names: Names of the memory regions defined in reg entry diversity. - qcom,bt-chip-pwd-supply: Chip power down gpio is required when bluetooth module and other modules like wifi co-exist in a singe chip and @@ -29,7 +31,7 @@ Optional properties: in pairs (min, max), units uV. There can be optional load in curr, unit uA. Last entry specifies if the retention mode is supported for the regulator. - + - qcom,tcs_offset_ipa: TCS CMD register offset for Voltage Example: bluetooth: bt_qca6490 { compatible = "qcom,qca6390", "qcom,qca6490"; diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index b96addc3..ec8e033f 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -5482,8 +5482,12 @@ bluetooth: bt_qca6490 { compatible = "qcom,qca6490"; + reg = <0xb2e5510 0x690>; + reg-names = "tcs_cmd"; pinctrl-names = "default"; pinctrl-0 = <&bt_en_sleep>; + /* offset=(0xC8*6) + (0x10*2) */ + qcom,tcs_offset_ipa = <0x4D0>; qcom,bt-reset-gpio = <&tlmm 65 0>; /* BT_EN */ qcom,bt-sw-ctrl-gpio = <&tlmm 153 0>; /* SW_CTRL */ qcom,bt-vdd-aon-supply = <&S11B>;