[PATCH v7 1/4] arm64: dts: apq8096-db820c: Enable wlan and bt en pins

2018-03-29 Thread Thierry Escande
From: Srinivas Kandagatla 

This patch enables regulators and gpios for the Qualcomm QCA6174 BT/WLAN
combo controller.

Signed-off-by: Srinivas Kandagatla 
Signed-off-by: Thierry Escande 
---

v7:
- New patch in this patchset

 .../boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi| 22 +++
 arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi   | 31 ++
 2 files changed, 53 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi 
b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
index 59b29ddfb6e9..5d50f45c4df7 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
@@ -14,6 +14,28 @@
};
};
 
+   bt_en_gpios: bt_en_gpios {
+   pinconf {
+   pins = "gpio19";
+   function = PMIC_GPIO_FUNC_NORMAL;
+   output-low;
+   power-source = ; // 1.8V
+   qcom,drive-strength = ;
+   bias-pull-down;
+   };
+   };
+
+   wlan_en_gpios: wlan_en_gpios {
+   pinconf {
+   pins = "gpio8";
+   function = PMIC_GPIO_FUNC_NORMAL;
+   output-low;
+   power-source = ; // 1.8V
+   qcom,drive-strength = ;
+   bias-pull-down;
+   };
+   };
+
volume_up_gpio: pm8996_gpio2 {
pinconf {
pins = "gpio2";
diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi 
b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
index 1c8f1b86472d..ec5e6eee0a7a 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
@@ -139,9 +139,40 @@
pinctrl-0 = <_vbus_det_gpio>;
};
 
+   bt_en: bt-en-1-8v {
+   pinctrl-names = "default";
+   pinctrl-0 = <_en_gpios>;
+   compatible = "regulator-fixed";
+   regulator-name = "bt-en-regulator";
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <180>;
+
+   /* WLAN card specific delay */
+   startup-delay-us = <7>;
+   enable-active-high;
+   };
+
+   wlan_en: wlan-en-1-8v {
+   pinctrl-names = "default";
+   pinctrl-0 = <_en_gpios>;
+   compatible = "regulator-fixed";
+   regulator-name = "wlan-en-regulator";
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <180>;
+
+   gpio = <_gpios 8 0>;
+
+   /* WLAN card specific delay */
+   startup-delay-us = <7>;
+   enable-active-high;
+   };
+
agnoc@0 {
qcom,pcie@60 {
+   status = "okay";
perst-gpio = < 35 GPIO_ACTIVE_LOW>;
+   vddpe-supply = <_en>;
+   vddpe1-supply = <_en>;
};
 
qcom,pcie@608000 {
-- 
2.14.1



[PATCH v7 1/4] arm64: dts: apq8096-db820c: Enable wlan and bt en pins

2018-03-29 Thread Thierry Escande
From: Srinivas Kandagatla 

This patch enables regulators and gpios for the Qualcomm QCA6174 BT/WLAN
combo controller.

Signed-off-by: Srinivas Kandagatla 
Signed-off-by: Thierry Escande 
---

v7:
- New patch in this patchset

 .../boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi| 22 +++
 arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi   | 31 ++
 2 files changed, 53 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi 
b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
index 59b29ddfb6e9..5d50f45c4df7 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
@@ -14,6 +14,28 @@
};
};
 
+   bt_en_gpios: bt_en_gpios {
+   pinconf {
+   pins = "gpio19";
+   function = PMIC_GPIO_FUNC_NORMAL;
+   output-low;
+   power-source = ; // 1.8V
+   qcom,drive-strength = ;
+   bias-pull-down;
+   };
+   };
+
+   wlan_en_gpios: wlan_en_gpios {
+   pinconf {
+   pins = "gpio8";
+   function = PMIC_GPIO_FUNC_NORMAL;
+   output-low;
+   power-source = ; // 1.8V
+   qcom,drive-strength = ;
+   bias-pull-down;
+   };
+   };
+
volume_up_gpio: pm8996_gpio2 {
pinconf {
pins = "gpio2";
diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi 
b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
index 1c8f1b86472d..ec5e6eee0a7a 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
@@ -139,9 +139,40 @@
pinctrl-0 = <_vbus_det_gpio>;
};
 
+   bt_en: bt-en-1-8v {
+   pinctrl-names = "default";
+   pinctrl-0 = <_en_gpios>;
+   compatible = "regulator-fixed";
+   regulator-name = "bt-en-regulator";
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <180>;
+
+   /* WLAN card specific delay */
+   startup-delay-us = <7>;
+   enable-active-high;
+   };
+
+   wlan_en: wlan-en-1-8v {
+   pinctrl-names = "default";
+   pinctrl-0 = <_en_gpios>;
+   compatible = "regulator-fixed";
+   regulator-name = "wlan-en-regulator";
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <180>;
+
+   gpio = <_gpios 8 0>;
+
+   /* WLAN card specific delay */
+   startup-delay-us = <7>;
+   enable-active-high;
+   };
+
agnoc@0 {
qcom,pcie@60 {
+   status = "okay";
perst-gpio = < 35 GPIO_ACTIVE_LOW>;
+   vddpe-supply = <_en>;
+   vddpe1-supply = <_en>;
};
 
qcom,pcie@608000 {
-- 
2.14.1