Describe the QCA6390 power sequencer with properly voltaged supplies
and enable Bluetooth HCI on GENI UART6.

Signed-off-by: Abdur Rofik <[email protected]>
---
 arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts | 92 +++++++++++++++++++
 1 file changed, 92 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts 
b/arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts
index 3ce8161574a95..1426ce82d3f58 100644
--- a/arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts
+++ b/arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts
@@ -65,6 +65,67 @@ key-assistant {
                };
        };
 
+       qca6390-pmu {
+               compatible = "qcom,qca6390-pmu";
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&bt_en_state>, <&wlan_en_state>;
+
+               vddaon-supply = <&vreg_s6a_0p95>;
+               vddpmu-supply = <&vreg_s6a_0p95>;
+               vddrfa0p95-supply = <&vreg_s6a_0p95>;
+               vddrfa1p3-supply = <&vreg_s8c_1p35>;
+               vddrfa1p9-supply = <&vreg_s5a_1p9>;
+               vddpcie1p3-supply = <&vreg_s8c_1p35>;
+               vddpcie1p9-supply = <&vreg_s5a_1p9>;
+               vddio-supply = <&vreg_s4a_1p8>;
+
+               wlan-enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
+               bt-enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
+
+               regulators {
+                       vreg_pmu_rfa_cmn: ldo0 {
+                               regulator-name = "vreg_pmu_rfa_cmn";
+                       };
+
+                       vreg_pmu_aon_0p59: ldo1 {
+                               regulator-name = "vreg_pmu_aon_0p59";
+                       };
+
+                       vreg_pmu_wlcx_0p8: ldo2 {
+                               regulator-name = "vreg_pmu_wlcx_0p8";
+                       };
+
+                       vreg_pmu_wlmx_0p85: ldo3 {
+                               regulator-name = "vreg_pmu_wlmx_0p85";
+                       };
+
+                       vreg_pmu_btcmx_0p85: ldo4 {
+                               regulator-name = "vreg_pmu_btcmx_0p85";
+                       };
+
+                       vreg_pmu_rfa_0p8: ldo5 {
+                               regulator-name = "vreg_pmu_rfa_0p8";
+                       };
+
+                       vreg_pmu_rfa_1p2: ldo6 {
+                               regulator-name = "vreg_pmu_rfa_1p2";
+                       };
+
+                       vreg_pmu_rfa_1p7: ldo7 {
+                               regulator-name = "vreg_pmu_rfa_1p7";
+                       };
+
+                       vreg_pmu_pcie_0p9: ldo8 {
+                               regulator-name = "vreg_pmu_pcie_0p9";
+                       };
+
+                       vreg_pmu_pcie_1p8: ldo9 {
+                               regulator-name = "vreg_pmu_pcie_1p8";
+                       };
+               };
+       };
+
        reserved-memory {
                res_xbl_uefi_log_region: memory@80880000 {
                        reg = <0x0 0x80880000 0x0 0x14000>;
@@ -634,6 +695,14 @@ &sdhc_2 {
 &tlmm {
        gpio-reserved-ranges = <40 4>, <52 4>;
 
+       bt_en_state: bt-enable-state {
+               pins = "gpio21";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-disable;
+               output-low;
+       };
+
        sdc2_default_state: sdc2-default-state {
                clk-pins {
                        pins = "sdc2_clk";
@@ -667,6 +736,29 @@ ts_int_default: ts-int-default-state {
                drive-strength = <8>;
                bias-pull-up;
        };
+
+       wlan_en_state: wlan-enable-state {
+               pins = "gpio20";
+               function = "gpio";
+               drive-strength = <16>;
+               bias-pull-up;
+               output-low;
+       };
+};
+
+&uart6 {
+       status = "okay";
+
+       bluetooth {
+               compatible = "qcom,qca6390-bt";
+
+               vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
+               vddaon-supply = <&vreg_pmu_aon_0p59>;
+               vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>;
+               vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
+               vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
+               vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>;
+       };
 };
 
 &uart12 {
-- 
2.39.5

Reply via email to