* [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: linux-arm-kernel
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
2014-07-30 20:00 ` [PATCH v2 3/3] ARM: dts: Enable USB host0 (EHCI) on rk3288-evb Doug Anderson
2 siblings, 0 replies; 4+ messages in thread
From: Doug Anderson @ 2014-07-30 20:00 UTC (permalink / raw)
To: linux-arm-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
2014-07-30 20:00 ` [PATCH v2 3/3] ARM: dts: Enable USB host0 (EHCI) on rk3288-evb Doug Anderson
2 siblings, 0 replies; 4+ messages in thread
From: Doug Anderson @ 2014-07-30 20:00 UTC (permalink / raw)
To: 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 at 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 at ff520000 doesn't actually work on hardware */
+
+ usb_hsic: usb at 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 at ffc01000 {
compatible = "arm,gic-400";
interrupt-controller;
--
2.0.0.526.g5318336
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 3/3] ARM: dts: Enable USB host0 (EHCI) 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 ` [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
@ 2014-07-30 20:00 ` Doug Anderson
2 siblings, 0 replies; 4+ messages in thread
From: Doug Anderson @ 2014-07-30 20:00 UTC (permalink / raw)
To: linux-arm-kernel
This is the top USB port on the evb (the one closest to the Ethernet
connector).
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---
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
^ 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
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).