arm64: dts: apq8096-db820c: Enable wlan and bt en pins
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 29 Mar 2018 19:15:21 +0000 (21:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 May 2018 04:37:50 +0000 (06:37 +0200)
This patch enables regulators and gpios for the Qualcomm QCA6174 BT/WLAN
combo controller.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Thierry Escande <thierry.escande@linaro.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi

index 59b29dd..5d50f45 100644 (file)
                };
        };
 
+       bt_en_gpios: bt_en_gpios {
+               pinconf {
+                       pins = "gpio19";
+                       function = PMIC_GPIO_FUNC_NORMAL;
+                       output-low;
+                       power-source = <PM8994_GPIO_S4>; // 1.8V
+                       qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
+                       bias-pull-down;
+               };
+       };
+
+       wlan_en_gpios: wlan_en_gpios {
+               pinconf {
+                       pins = "gpio8";
+                       function = PMIC_GPIO_FUNC_NORMAL;
+                       output-low;
+                       power-source = <PM8994_GPIO_S4>; // 1.8V
+                       qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
+                       bias-pull-down;
+               };
+       };
+
        volume_up_gpio: pm8996_gpio2 {
                pinconf {
                        pins = "gpio2";
index 1c8f1b8..ec5e6ee 100644 (file)
                        pinctrl-0 = <&usb2_vbus_det_gpio>;
                };
 
+               bt_en: bt-en-1-8v {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&bt_en_gpios>;
+                       compatible = "regulator-fixed";
+                       regulator-name = "bt-en-regulator";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
+
+                       /* WLAN card specific delay */
+                       startup-delay-us = <70000>;
+                       enable-active-high;
+               };
+
+               wlan_en: wlan-en-1-8v {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&wlan_en_gpios>;
+                       compatible = "regulator-fixed";
+                       regulator-name = "wlan-en-regulator";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
+
+                       gpio = <&pm8994_gpios 8 0>;
+
+                       /* WLAN card specific delay */
+                       startup-delay-us = <70000>;
+                       enable-active-high;
+               };
+
                agnoc@0 {
                        qcom,pcie@600000 {
+                               status = "okay";
                                perst-gpio = <&msmgpio 35 GPIO_ACTIVE_LOW>;
+                               vddpe-supply = <&wlan_en>;
+                               vddpe1-supply = <&bt_en>;
                        };
 
                        qcom,pcie@608000 {