From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/6] ARM: dts: sun8i-a23-polaroid-mid2809pxe04: Add full otg support
Date: Sat, 11 Jun 2016 15:53:05 +0200 [thread overview]
Message-ID: <1465653186-953-6-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1465653186-953-1-git-send-email-hdegoede@redhat.com>
Now that we've all the necessary bits in place we can enable
full otg support on these tablets.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
.../boot/dts/sun8i-a23-polaroid-mid2809pxe04.dts | 30 +++++++++++++++++-----
1 file changed, 23 insertions(+), 7 deletions(-)
diff --git a/arch/arm/boot/dts/sun8i-a23-polaroid-mid2809pxe04.dts b/arch/arm/boot/dts/sun8i-a23-polaroid-mid2809pxe04.dts
index cb5daaf..bae779f 100644
--- a/arch/arm/boot/dts/sun8i-a23-polaroid-mid2809pxe04.dts
+++ b/arch/arm/boot/dts/sun8i-a23-polaroid-mid2809pxe04.dts
@@ -131,6 +131,13 @@
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
};
+
+ usb0_id_detect_pin: usb0_id_detect_pin at 0 {
+ allwinner,pins = "PH8";
+ allwinner,function = "gpio_in";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+ };
};
&pwm {
@@ -148,6 +155,7 @@
interrupt-parent = <&nmi_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
eldoin-supply = <®_dcdc1>;
+ x-powers,drive-vbus-en;
};
};
@@ -219,6 +227,11 @@
regulator-name = "vcc-dram";
};
+®_drivevbus {
+ regulator-name = "usb0-vbus";
+ status = "okay";
+};
+
®_rtc_ldo {
regulator-name = "vcc-rtc";
};
@@ -227,17 +240,20 @@
vcc-lcd-supply = <®_dc1sw>;
};
-/*
- * FIXME for now we only support host mode and rely on u-boot to have
- * turned on Vbus which is controlled by the axp223 pmic on the board.
- *
- * Once we have axp223 support we should switch to fully supporting otg.
- */
&usb_otg {
- dr_mode = "host";
+ dr_mode = "otg";
+ status = "okay";
+};
+
+&usb_power_supply {
status = "okay";
};
&usbphy {
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb0_id_detect_pin>;
+ usb0_id_det-gpio = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
+ usb0_vbus_power-supply = <&usb_power_supply>;
+ usb0_vbus-supply = <®_drivevbus>;
status = "okay";
};
--
2.7.4
next prev parent reply other threads:[~2016-06-11 13:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-11 13:53 [PATCH 0/6] ARM: dts: sunxi: Enable otg support on a23/a33 boards Hans de Goede
2016-06-11 13:53 ` [PATCH 1/6] ARM: dts: axp22x.dtsi: Disable axp22x ldo_io# regulators by default Hans de Goede
2016-06-11 13:53 ` [PATCH 2/6] ARM: dts: axp22x.dtsi: Add usb_power_supply node Hans de Goede
2016-06-11 13:53 ` [PATCH 3/6] ARM: dts: axp22x.dtsi: Add reg_drivebus node Hans de Goede
2016-06-11 13:53 ` [PATCH 4/6] ARM: dts: sun8i-a?3-q8-tablet.dts: Add full otg support Hans de Goede
2016-06-13 3:19 ` Chen-Yu Tsai
2016-06-13 9:32 ` Hans de Goede
2016-06-11 13:53 ` Hans de Goede [this message]
2016-06-11 13:53 ` [PATCH 6/6] ARM: dts: sun8i-a23-polaroid-mid2809pxe04: Disable ehci0 Hans de Goede
2016-06-11 14:29 ` [PATCH 0/6] ARM: dts: sunxi: Enable otg support on a23/a33 boards Maxime Ripard
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=1465653186-953-6-git-send-email-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--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).