From: Sreedhar Sambangi <ssambang@codeaurora.org>
To: devicetree@vger.kernel.org, andy.gross@linaro.org,
linux-arm-msm@vger.kernel.org
Cc: david.brown@linaro.org, robh+dt@kernel.org, pawel.moll@arm.com,
mark.rutland@arm.com, ijc+devicetree@hellion.org.uk,
galak@codeaurora.org, linux@arm.linux.org.uk,
linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
qca-upstream.external@qca.qualcomm.com
Subject: [PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device tree
Date: Mon, 4 Apr 2016 14:08:10 -0700 [thread overview]
Message-ID: <1459804090-31739-1-git-send-email-ssambang@codeaurora.org> (raw)
This adds the regulator nodes to DK04 device tree to support
Change-Id: I9c1df0e720a330bf6db1889fd2247f6a70ea6faa
Signed-off-by: Sreedhar Sambangi <ssambang@codeaurora.org>
---
.../bindings/regulator/ipq4019-regulator.txt | 19 +++++++++++++++++++
arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 11 +++++++++++
2 files changed, 30 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/ipq4019-regulator.txt
diff --git a/Documentation/devicetree/bindings/regulator/ipq4019-regulator.txt b/Documentation/devicetree/bindings/regulator/ipq4019-regulator.txt
new file mode 100644
index 0000000..9d934a4
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/ipq4019-regulator.txt
@@ -0,0 +1,19 @@
+* Qualcomm Technologies, Inc. IPQ4019 regulators
+
+Required properties:
+- compatible : Must be "regulator-ipq4019".
+- states : Selection of available voltages and corresponding values
+- reg : Register address for controlling LDO
+- mask : Mask value for switching voltages
+Example:
+
+ vccq_sd0: regulator@0 {
+ compatible = "qcom,regulator-ipq4019";
+ regulator-name = "SD0 VccQ";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3000000>;
+ states = <3000000 0x3
+ 1800000 0x1>;
+ reg = <0x01948000 0x4>;
+ mask = <0x3>;
+ };
diff --git a/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi b/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
index 9f3c864..566e239 100644
--- a/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
+++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
@@ -155,5 +155,16 @@
watchdog@b017000 {
status = "ok";
};
+
+ vccq_sd0: regulator@0 {
+ compatible = "qcom,regulator-ipq4019";
+ regulator-name = "SD0 VccQ";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3000000>;
+ states = <3000000 0x3
+ 1800000 0x1>;
+ reg = <0x01948000 0x4>;
+ mask = <0x3>;
+ };
};
};
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next reply other threads:[~2016-04-04 21:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-04 21:08 Sreedhar Sambangi [this message]
2016-04-05 5:59 ` [PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device tree Andy Gross
2016-04-06 4:55 ` Sreedhar Sambangi
2016-04-07 17:57 ` Rob Herring
2016-04-07 18:11 ` Andy Gross
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=1459804090-31739-1-git-send-email-ssambang@codeaurora.org \
--to=ssambang@codeaurora.org \
--cc=andy.gross@linaro.org \
--cc=david.brown@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-soc@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=qca-upstream.external@qca.qualcomm.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;
as well as URLs for NNTP newsgroup(s).