mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ivan T. Ivanov" <iivanov@mm-sol.com>
To: Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	Russell King <linux@arm.linux.org.uk>
Cc: "Ivan T. Ivanov" <iivanov@mm-sol.com>,
	Bjorn Andersson <bjorn.andersson@sonymobile.com>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v3 6/6] ARM: dts: qcom: Add APQ8074 Dragonboard PMIC GPIO bindings
Date: Mon, 11 Aug 2014 18:40:34 +0300	[thread overview]
Message-ID: <1407771634-14946-7-git-send-email-iivanov@mm-sol.com> (raw)
In-Reply-To: <1407771634-14946-1-git-send-email-iivanov@mm-sol.com>

From: "Ivan T. Ivanov" <iivanov@mm-sol.com>

Add default states for PMIC GPIO's on APQ8074 Dragonboard

Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
---
 .../dts/qcom-apq8074-dragonboard-pmics-pins.dtsi   | 103 +++++++++++++++++++++
 arch/arm/boot/dts/qcom-apq8074-dragonboard.dts     |   1 +
 2 files changed, 104 insertions(+)
 create mode 100644 arch/arm/boot/dts/qcom-apq8074-dragonboard-pmics-pins.dtsi

diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard-pmics-pins.dtsi b/arch/arm/boot/dts/qcom-apq8074-dragonboard-pmics-pins.dtsi
new file mode 100644
index 0000000..c69ecc2
--- /dev/null
+++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard-pmics-pins.dtsi
@@ -0,0 +1,103 @@
+
+#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
+
+&pm8941_gpios {
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pm8941_gpios_default>;
+
+	pm8941_gpios_default: default {
+		group-1 {
+			pins = "gpio1", "gpio2", "gpio5", "gpio29";
+			function = PMIC_GPIO_FUNC_NORMAL;
+			input-enable;
+			power-source = <PM8941_GPIO_S3>;
+			qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_30>;
+		};
+		group-6 {	/* TUSB3_HUB-RESET */
+			pins = "gpio6";
+			function = PMIC_GPIO_FUNC_NORMAL;
+			output-high;
+			drive-push-pull;
+			power-source = <PM8941_GPIO_VPH>;
+			qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_30>;
+			qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
+		};
+		group-8 {	/* HSIC_HUB-RESET */
+			pins = "gpio8";
+			function = PMIC_GPIO_FUNC_NORMAL;
+			output-low;
+			bias-disable;
+			qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
+		};
+		group-9 {	/* GbE_RST_N */
+			pins = "gpio9";
+			function = PMIC_GPIO_FUNC_NORMAL;
+			output-high;
+			drive-push-pull;
+			power-source = <PM8941_GPIO_VPH>;
+			qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_30>;
+			qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
+		};
+		group-10 {	/* SATA_RST_N */
+			pins = "gpio10";
+			function = PMIC_GPIO_FUNC_NORMAL;
+			output-high;
+			drive-push-pull;
+			power-source = <PM8941_GPIO_VPH>;
+			qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_30>;
+			qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
+		};
+		group-15 {	/* DIVCLK1_CODEC */
+			pins = "gpio15";
+			function = PM8941_GPIO15_18_DIV_CLK;
+			output-high;
+			drive-push-pull;
+			bias-disable;
+			power-source = <PM8941_GPIO_S3>;
+			qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
+		};
+		group-19 {	/* MIPI_DSI0_RESET_N */
+			pins = "gpio19";
+			function = PMIC_GPIO_FUNC_NORMAL;
+			output-low;
+			drive-push-pull;
+			bias-disable;
+			power-source = <PM8941_GPIO_S3>;
+			qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
+		};
+		group-29 {	/* SD_WP_N */
+			pins = "gpio29";
+			function = PMIC_GPIO_FUNC_NORMAL;
+			input-enable;
+			power-source = <PM8941_GPIO_S3>;
+			qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_30>;
+		};
+		group-33 {	/* WLAN_PWD_L */
+			pins = "gpio33";
+			function = PMIC_GPIO_FUNC_NORMAL;
+			output-high;
+			drive-push-pull;
+			bias-disable;
+			power-source = <PM8941_GPIO_S3>;
+			qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
+		};
+		group-34 {	/* BT_PWD_L */
+			pins = "gpio34";
+			function = PMIC_GPIO_FUNC_NORMAL;
+			output-low;
+			drive-push-pull;
+			bias-disable;
+			power-source = <PM8941_GPIO_S3>;
+			qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
+		};
+	};
+};
+
+&pm8941_mpps {
+};
+
+&pm8841_mpps {
+};
+
diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
index b4dfb01..87b90e3 100644
--- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
+++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
@@ -1,4 +1,5 @@
 #include "qcom-msm8974.dtsi"
+#include "qcom-apq8074-dragonboard-pmics-pins.dtsi"
 
 / {
 	model = "Qualcomm APQ8074 Dragonboard";
-- 
1.8.3.2


  parent reply	other threads:[~2014-08-11 15:41 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-11 15:40 [PATCH v3 0/6] Qualcomm PMIC pin controller drivers Ivan T. Ivanov
2014-08-11 15:40 ` [PATCH v3 1/6] pinctrl: Device tree bindings for Qualcomm pm8xxx gpio block Ivan T. Ivanov
2014-08-16 15:24   ` Daniel
2014-08-18  7:16     ` Ivan T. Ivanov
2014-08-20 22:10       ` Bjorn Andersson
2014-08-20 22:27   ` Bjorn Andersson
2014-08-25 13:14     ` Ivan T. Ivanov
2014-08-11 15:40 ` [PATCH v3 2/6] pinctrl: Introduce pinctrl driver for Qualcomm SSBI PMIC's Ivan T. Ivanov
2014-08-20  8:06   ` Srinivas Kandagatla
2014-08-20 21:28     ` Bjorn Andersson
2014-08-20 22:13       ` Bjorn Andersson
2014-11-03  8:48         ` Srinivas Kandagatla
2014-11-04  2:25           ` Bjorn Andersson
2014-08-11 15:40 ` [PATCH v3 3/6] pinctrl: Add documentation for SPMI PMIC pinctrl driver bindings Ivan T. Ivanov
2014-08-13 14:32   ` Stephen Boyd
2014-08-25 14:07     ` Ivan T. Ivanov
2014-08-11 15:40 ` [PATCH v3 4/6] pinctrl: Qualcomm SPMI PMIC pin controller driver Ivan T. Ivanov
2014-08-21  6:16   ` Bjorn Andersson
2014-08-25 14:00     ` Ivan T. Ivanov
2014-08-11 15:40 ` [PATCH v3 5/6] ARM: dts: qcom: Add PM8941 and PM8841 pinctrl nodes Ivan T. Ivanov
2014-08-14  7:33   ` Pramod Gurav
2014-08-25 14:06     ` Ivan T. Ivanov
2014-08-11 15:40 ` Ivan T. Ivanov [this message]
2014-08-20 23:06   ` [PATCH v3 6/6] ARM: dts: qcom: Add APQ8074 Dragonboard PMIC GPIO bindings Bjorn Andersson
2014-08-25 14:04     ` Ivan T. Ivanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1407771634-14946-7-git-send-email-iivanov@mm-sol.com \
    --to=iivanov@mm-sol.com \
    --cc=bjorn.andersson@sonymobile.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®