While trying to add USB-HOST support to the cat874 board,
it came up that of_usb_get_dr_mode_by_phy was selecting
the wrong DT node to use for dr_mode.
Also, drivers/phy/renesas/phy-rcar-gen3-usb2.c was registering
IRQs, no matter the dr_mode.
This series adds all that is required to add USB-HOST support
to the cat874 board, and also removes the hsusb from Draak's DT
as not necessary anymore.
Thanks,
Fab
Fabrizio Castro (4):
usb: common: Consider only available nodes for dr_mode
phy: renesas: rcar-gen3-usb2: No need to request IRQ for non-OTG
arm64: dts: renesas: r8a774c0-cat874: Add USB-HOST support
arm64: dts: renesas: r8a77995: draak: Remove hsusb node
arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 15 ++++++++++++++
arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 5 -----
drivers/phy/renesas/phy-rcar-gen3-usb2.c | 26 ++++++++++++-------------
drivers/usb/common/common.c | 2 ++
4 files changed, 30 insertions(+), 18 deletions(-)
--
2.7.4
This patch adds USB 2.0 HOST support to the CAT874 board.
Signed-off-by: Fabrizio Castro <redacted>
---
arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Patch "usb: common: Consider only available nodes for dr_mode"
fixes the way the DT gets parsed to identify the USB controller
driving the PHY, as such we don't need hsusb to specify dr_mode,
in fact we don't need to enable the hsusb node at all since
the USB interface on the board works as USB host only.
Fixes: 5c6479d9b25b ("arm64: dts: renesas: r8a7799{0|5}: add/enable USB2.0 peripheral")
Signed-off-by: Fabrizio Castro <redacted>
---
arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 5 -----
1 file changed, 5 deletions(-)
From: Simon Horman <horms@verge.net.au> Date: 2019-03-06 13:13:47
On Fri, Mar 01, 2019 at 11:05:44AM +0000, Fabrizio Castro wrote:
While trying to add USB-HOST support to the cat874 board,
it came up that of_usb_get_dr_mode_by_phy was selecting
the wrong DT node to use for dr_mode.
Also, drivers/phy/renesas/phy-rcar-gen3-usb2.c was registering
IRQs, no matter the dr_mode.
This series adds all that is required to add USB-HOST support
to the cat874 board, and also removes the hsusb from Draak's DT
as not necessary anymore.
Thanks,
Fab
Fabrizio Castro (4):
usb: common: Consider only available nodes for dr_mode
phy: renesas: rcar-gen3-usb2: No need to request IRQ for non-OTG
Hi Fabrizio,
I am marking the patches below deferred pending acceptance of the patches
above.
Hello Simon,
I would like to drop this patch.
Thanks,
Fab
quoted hunk
From: Fabrizio Castro <redacted>
Sent: 01 March 2019 11:06
Subject: [PATCH 4/4] arm64: dts: renesas: r8a77995: draak: Remove hsusb node
Patch "usb: common: Consider only available nodes for dr_mode"
fixes the way the DT gets parsed to identify the USB controller
driving the PHY, as such we don't need hsusb to specify dr_mode,
in fact we don't need to enable the hsusb node at all since
the USB interface on the board works as USB host only.
Fixes: 5c6479d9b25b ("arm64: dts: renesas: r8a7799{0|5}: add/enable USB2.0 peripheral")
Signed-off-by: Fabrizio Castro <redacted>
---
arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 5 -----
1 file changed, 5 deletions(-)
Hello Simon,
Patch "usb: common: Consider only available nodes for dr_mode" has been taken,
and that is enough to get USB 2.0 host to work on the EK874, do you think you
can take this patch now?
Thanks,
Fab
quoted hunk
From: Fabrizio Castro <redacted>
Sent: 01 March 2019 11:06
Subject: [PATCH 3/4] arm64: dts: renesas: r8a774c0-cat874: Add USB-HOST support
This patch adds USB 2.0 HOST support to the CAT874 board.
Signed-off-by: Fabrizio Castro <redacted>
---
arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
From: Simon Horman <horms@verge.net.au> Date: 2019-04-04 10:41:21
On Wed, Apr 03, 2019 at 10:29:39AM +0000, Fabrizio Castro wrote:
Hello Simon,
Patch "usb: common: Consider only available nodes for dr_mode" has been taken,
and that is enough to get USB 2.0 host to work on the EK874, do you think you
can take this patch now?
Thanks Fabrizio,
can do. I have applied this for v5.2.