dts: arm64: db820c: add pmic pins specific dts file
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 16 Sep 2016 17:41:21 +0000 (18:41 +0100)
committerAndy Gross <andy.gross@linaro.org>
Mon, 24 Oct 2016 20:39:57 +0000 (15:39 -0500)
This patch adds pmic specific dts which are configured specially
for db820c. One of such pin is GPIO_F on the Low Speed expansion
which has default output voltage of 2.7v. This patch fixes setup
for that pin to have an output voltage of 1.8v to comply with
96boards LS expansion specs.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi

diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
new file mode 100644 (file)
index 0000000..0938191
--- /dev/null
@@ -0,0 +1,15 @@
+
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
+&pm8994_gpios {
+
+       pinctrl-names = "default";
+       pinctrl-0 = <&ls_exp_gpio_f>;
+
+       ls_exp_gpio_f: pm8916_mpp4 {
+               pinconf {
+                       pins = "gpio5";
+                       output-low;
+                       power-source = <PM8994_GPIO_S4>; // 1.8V
+               };
+       };
+};
index afb218cffc6025dc841337330d38f5b14c93f3f8..422959b87d129c2c2ff12c25516706b86b9913e1 100644 (file)
@@ -12,7 +12,9 @@
  */
 
 #include "msm8996.dtsi"
+#include "pm8994.dtsi"
 #include "apq8096-db820c-pins.dtsi"
+#include "apq8096-db820c-pmic-pins.dtsi"
 
 / {
        aliases {