From: shc_work@mail.ru (Alexander Shiyan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/8] ARM: dts: imx51-babbage: Add USB OTG regulator node
Date: Wed, 16 Apr 2014 11:24:54 +0400 [thread overview]
Message-ID: <1397633097-1640-5-git-send-email-shc_work@mail.ru> (raw)
In-Reply-To: <1397633097-1640-1-git-send-email-shc_work@mail.ru>
This patch adds a regulator node and pinctrl group for USB OTG.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
arch/arm/boot/dts/imx51-babbage.dts | 29 ++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boot/dts/imx51-babbage.dts b/arch/arm/boot/dts/imx51-babbage.dts
index a8d6168..ed9d769 100644
--- a/arch/arm/boot/dts/imx51-babbage.dts
+++ b/arch/arm/boot/dts/imx51-babbage.dts
@@ -137,17 +137,29 @@
#address-cells = <1>;
#size-cells = <0>;
- reg_usb_vbus: regulator at 0 {
+ reg_usbh1_vbus: regulator at 0 {
compatible = "regulator-fixed";
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usbreg>;
+ pinctrl-0 = <&pinctrl_usbh1reg>;
reg = <0>;
- regulator-name = "usb_vbus";
+ regulator-name = "usbh1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
+
+ reg_usbotg_vbus: regulator at 1 {
+ compatible = "regulator-fixed";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usbotgreg>;
+ reg = <1>;
+ regulator-name = "usbotg_vbus";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
};
usbphy {
@@ -539,11 +551,17 @@
>;
};
- pinctrl_usbreg: usbreggrp {
+ pinctrl_usbh1reg: usbh1reggrp {
fsl,pins = <
MX51_PAD_EIM_D21__GPIO2_5 0x85
>;
};
+
+ pinctrl_usbotgreg: usbotgreggrp {
+ fsl,pins = <
+ MX51_PAD_GPIO1_7__GPIO1_7 0x85
+ >;
+ };
};
};
@@ -618,7 +636,7 @@
&usbh1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbh1>;
- vbus-supply = <®_usb_vbus>;
+ vbus-supply = <®_usbh1_vbus>;
fsl,usbphy = <&usbh1phy>;
phy_type = "ulpi";
status = "okay";
@@ -628,5 +646,6 @@
dr_mode = "otg";
disable-over-current;
phy_type = "utmi_wide";
+ vbus-supply = <®_usbotg_vbus>;
status = "okay";
};
--
1.8.3.2
next prev parent reply other threads:[~2014-04-16 7:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 7:24 [PATCH 1/8] ARM: dts: i.MX51: Allow to define partitions onto NFC Alexander Shiyan
2014-04-16 7:24 ` [PATCH 2/8] ARM: dts: imx51-babbage: Move "hog" pins into corresponded pin groups Alexander Shiyan
2014-04-16 7:24 ` [PATCH 3/8] ARM: dts: imx51-babbage: Add missing pingroup for PMIC Alexander Shiyan
2014-04-16 7:24 ` [PATCH 4/8] ARM: dts: imx51-babbage: Use predefined constants for keys definition Alexander Shiyan
2014-04-16 7:24 ` Alexander Shiyan [this message]
2014-04-16 7:24 ` [PATCH 6/8] ARM: dts: imx51-babbage: Sort nodes by name Alexander Shiyan
2014-04-16 7:24 ` [PATCH 7/8] ARM: dts: imx51-babbage: Add devicetree node for I2C1 Alexander Shiyan
2014-04-16 7:24 ` [PATCH 8/8] ARM: dts: imx51-babbage: Use predefined constants for clock definition Alexander Shiyan
2014-04-17 4:28 ` [PATCH 1/8] ARM: dts: i.MX51: Allow to define partitions onto NFC Shawn Guo
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=1397633097-1640-5-git-send-email-shc_work@mail.ru \
--to=shc_work@mail.ru \
--cc=linux-arm-kernel@lists.infradead.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).