* [PATCH v2 0/3] Enable EHCI port on rk3288-evb
@ 2014-07-30 20:00 Doug Anderson
2014-07-30 20:00 ` [PATCH v2 1/3] ARM: dts: Turn on USB host vbus " Doug Anderson
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Doug Anderson @ 2014-07-30 20:00 UTC (permalink / raw)
To: Heiko Stuebner, Kever Yang
Cc: Sonny Rao, Arnd Bergmann, linux-arm-kernel, linux-usb,
sergei.shtylyov, Doug Anderson, mark.rutland, devicetree, linux,
pawel.moll, ijc+devicetree, linux-kernel, robh+dt, galak
This series enables the EHCI port on the rk3288-evb boards. A later
patch series (from Kever) will enable the dwc2 ports.
Changes in v2:
- usb_host_vbus => vcc_host to match supply name, not pin name.
- pin name now matches in name in schematic
- Kever is now the author
- Node is now named usb
Doug Anderson (2):
ARM: dts: Turn on USB host vbus on rk3288-evb
ARM: dts: Enable USB host0 (EHCI) on rk3288-evb
Kever Yang (1):
ARM: dts: add rk3288 ehci usb devices
arch/arm/boot/dts/rk3288-evb.dtsi | 22 ++++++++++++++++++++++
arch/arm/boot/dts/rk3288.dtsi | 20 ++++++++++++++++++++
2 files changed, 42 insertions(+)
--
2.0.0.526.g5318336
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/3] ARM: dts: Turn on USB host vbus on rk3288-evb
2014-07-30 20:00 [PATCH v2 0/3] Enable EHCI port on rk3288-evb Doug Anderson
@ 2014-07-30 20:00 ` Doug Anderson
2014-07-30 20:00 ` [PATCH v2 2/3] ARM: dts: add rk3288 ehci usb devices Doug Anderson
[not found] ` <1406750412-15592-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2 siblings, 0 replies; 4+ messages in thread
From: Doug Anderson @ 2014-07-30 20:00 UTC (permalink / raw)
To: Heiko Stuebner, Kever Yang
Cc: Sonny Rao, Arnd Bergmann, linux-arm-kernel, linux-usb,
sergei.shtylyov, Doug Anderson, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, linux, devicetree, linux-kernel
There is no phy driver that works on the Rockchip board for either USB
host port yet. For now just hardcode the vbus signal to be on all the
time which makes both the dwc2 host and the EHCI port work.
Signed-off-by: Doug Anderson <dianders@chromium.org>
---
Changes in v2:
- usb_host_vbus => vcc_host to match supply name, not pin name.
- pin name now matches in name in schematic
arch/arm/boot/dts/rk3288-evb.dtsi | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi
index 749e20d..e6c5b03 100644
--- a/arch/arm/boot/dts/rk3288-evb.dtsi
+++ b/arch/arm/boot/dts/rk3288-evb.dtsi
@@ -35,6 +35,18 @@
debounce-interval = <100>;
};
};
+
+ /* This turns on USB vbus for both host0 (ehci) and host1 (dwc2) */
+ vcc_host: vcc-host-regulator {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&host_vbus_drv>;
+ regulator-name = "vcc_host";
+ regulator-always-on;
+ regulator-boot-on;
+ };
};
&i2c0 {
@@ -71,4 +83,10 @@
rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
+
+ usb {
+ host_vbus_drv: host-vbus-drv {
+ rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
};
--
2.0.0.526.g5318336
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/3] ARM: dts: add rk3288 ehci usb devices
2014-07-30 20:00 [PATCH v2 0/3] Enable EHCI port on rk3288-evb Doug Anderson
2014-07-30 20:00 ` [PATCH v2 1/3] ARM: dts: Turn on USB host vbus " Doug Anderson
@ 2014-07-30 20:00 ` Doug Anderson
[not found] ` <1406750412-15592-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2 siblings, 0 replies; 4+ messages in thread
From: Doug Anderson @ 2014-07-30 20:00 UTC (permalink / raw)
To: Heiko Stuebner, Kever Yang
Cc: mark.rutland, devicetree, linux, sergei.shtylyov, Arnd Bergmann,
ijc+devicetree, linux-usb, Doug Anderson, linux-kernel, robh+dt,
pawel.moll, galak, Sonny Rao, linux-arm-kernel
From: Kever Yang <kever.yang@rock-chips.com>
rk3288 has two kind of usb controller; this adds the ehci variant for
host0 and hsic.
At the moment we don't add any phys for these controllers, but the
default settings seem to work OK.
There is a hardware problem in ohci controller which make it
unavailable and host0 controller can only support high-speed devices.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
---
Changes in v2:
- Kever is now the author
- Node is now named usb
arch/arm/boot/dts/rk3288.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index 3ef8951..e7cb008 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -251,6 +251,26 @@
status = "disabled";
};
+ usb_host0_ehci: usb@ff500000 {
+ compatible = "generic-ehci";
+ reg = <0xff500000 0x100>;
+ interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru HCLK_USBHOST0>;
+ clock-names = "usbhost";
+ status = "disabled";
+ };
+
+ /* NOTE: ohci@ff520000 doesn't actually work on hardware */
+
+ usb_hsic: usb@ff5c0000 {
+ compatible = "generic-ehci";
+ reg = <0xff5c0000 0x100>;
+ interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru HCLK_HSIC>;
+ clock-names = "usbhost";
+ status = "disabled";
+ };
+
gic: interrupt-controller@ffc01000 {
compatible = "arm,gic-400";
interrupt-controller;
--
2.0.0.526.g5318336
^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <1406750412-15592-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>]
* [PATCH v2 3/3] ARM: dts: Enable USB host0 (EHCI) on rk3288-evb
[not found] ` <1406750412-15592-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
@ 2014-07-30 20:00 ` Doug Anderson
0 siblings, 0 replies; 4+ messages in thread
From: Doug Anderson @ 2014-07-30 20:00 UTC (permalink / raw)
To: Heiko Stuebner, Kever Yang
Cc: Sonny Rao, Arnd Bergmann,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-usb-u79uwXL29TY76Z2rM5mHXA,
sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, Doug Anderson,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
This is the top USB port on the evb (the one closest to the Ethernet
connector).
Signed-off-by: Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Signed-off-by: Kever Yang <kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
---
Changes in v2: None
arch/arm/boot/dts/rk3288-evb.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi
index e6c5b03..4f57209 100644
--- a/arch/arm/boot/dts/rk3288-evb.dtsi
+++ b/arch/arm/boot/dts/rk3288-evb.dtsi
@@ -90,3 +90,7 @@
};
};
};
+
+&usb_host0_ehci {
+ status = "okay";
+};
--
2.0.0.526.g5318336
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-30 20:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30 20:00 [PATCH v2 0/3] Enable EHCI port on rk3288-evb Doug Anderson
2014-07-30 20:00 ` [PATCH v2 1/3] ARM: dts: Turn on USB host vbus " Doug Anderson
2014-07-30 20:00 ` [PATCH v2 2/3] ARM: dts: add rk3288 ehci usb devices Doug Anderson
[not found] ` <1406750412-15592-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-07-30 20:00 ` [PATCH v2 3/3] ARM: dts: Enable USB host0 (EHCI) on rk3288-evb Doug Anderson
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).