Skip to content

USB: phy: phy-nop: Manage RESET GPIO in the driver

Roger Quadros linux-arm-kernel linux-devicetree linux-omap lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 14 repliesIn review
  2. v2 posting 2/20 of 9 patches 0 repliesSuperseded
  3. v2 posting 1/29 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches0 repliesSuperseded

Changes in v3 from the cover letter

- Fix the Initial state of RESET line at probe time.
- Update hsusb3_reset line on omap5-uevm as well.
- Add patch 10 that fixes USB OTG port on beagle.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10usb: phy: generic: Add gpio_reset to platform datainclude/linux/usb/usb_phy_gen_xceiv.h+2 -10 replies
2/10usb: phy: generic: Don't use regulator framework for RESET lineDocumentation/devicetree/bindings/usb/usb-nop-xceiv.txt drivers/usb/phy/phy-am335x.c drivers/usb/phy/phy-generic.c +1 more+63 -360 replies
3/10ARM: OMAP2+: omap-usb-host: Get rid of platform_data from struct usbhs_phy_dataarch/arm/mach-omap2/board-omap3beagle.c arch/arm/mach-omap2/usb-host.c arch/arm/mach-omap2/usb.h+10 -82 replies
4/10ARM: OMAP2+: usb-host: Adapt to USB phy-nop RESET line changesarch/arm/mach-omap2/usb-host.c+1 -102 replies
5/10ARM: dts: omap3-beagle: Use reset-gpios for hsusb2_resetarch/arm/boot/dts/omap3-beagle.dts+1 -125 replies
6/10ARM: dts: omap4-panda: Use reset-gpios for hsusb1_resetarch/arm/boot/dts/omap4-panda-common.dtsi+1 -170 replies
7/10ARM: dts: omap5-uevm: Use reset-gpios for hsusb2/3_resetarch/arm/boot/dts/omap5-uevm.dts+2 -240 replies
8/10ARM: dts: omap3-beagle: Make USB host pin naming consistentarch/arm/boot/dts/omap3-beagle.dts+12 -120 replies
9/10ARM: dts: omap3-beagle-xm: Add USB Host supportarch/arm/boot/dts/omap3-beagle-xm.dts+56 -94 replies
10/10ARM: dts: omap3-beagle: Add USB OTG PHY detailsarch/arm/boot/dts/omap3-beagle.dts+7 -00 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchTony Lindgren
1/10
2/10
3/10A-b
4/10A-b
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/10] USB: phy: phy-nop: Manage RESET GPIO in the driver

Hi,

Modelling the RESET line as a regulator supply wasn't a good idea as it abuses the regulator framework and makes adaptation code/data more complex.

Instead, manage the RESET gpio line directly in the driver.

This also makes us easy to migrate to a dedicated GPIO RESET controller whenever it becomes available.

Apart from RESET line changes this series also adds USB host support fro beagle-xm and fixes USB OTG port on beagle.

The full series is avilable at
git://github.com/rogerq/linux.git
in branch
phy-reset

*NOTE:* As there are changes to platform data, Patch 1 needs to be shared between the arm-soc tree and usb tree.

Patch 1 is available at repo
git://github.com/rogerq/linux.git
in branch
phy-reset-common

Patch 2 contains the phy-nop driver changes
Patches 3 and 4 adapt legacy boot code to the phy-nop driver changes. Patches 5, 6 and 7 adapt DT data to the binding changes. Patch 8 is cleanup of omap3-beagle DT.
Patch 9 adds USB host support to omap3-beagle-xm using the new binding. Patch 10 fixes USB OTG port on beagle.

Patches are based on v3.12-rc1

Tested leacy boot on omap3-beagle and omap3-beagle-xm Tested DT boot on omap3-beagle, omap3-beagle-xm and omap4-panda-es

v3:
- Fix the Initial state of RESET line at probe time.
- Update hsusb3_reset line on omap5-uevm as well.
- Add patch 10 that fixes USB OTG port on beagle.

v2:
- Added RESET GPIO polarity feature
- Changed to gpio_set_value_cansleep()

cheers,
-roger

Roger Quadros (10):
usb: phy: generic: Add gpio_reset to platform data
usb: phy: generic: Don't use regulator framework for RESET line
ARM: OMAP2+: omap-usb-host: Get rid of platform_data from struct
usbhs_phy_data
ARM: OMAP2+: usb-host: Adapt to USB phy-nop RESET line changes
ARM: dts: omap3-beagle: Use reset-gpios for hsusb2_reset
ARM: dts: omap4-panda: Use reset-gpios for hsusb1_reset
ARM: dts: omap5-uevm: Use reset-gpios for hsusb2/3_reset
ARM: dts: omap3-beagle: Make USB host pin naming consistent
ARM: dts: omap3-beagle-xm: Add USB Host support
ARM: dts: omap3-beagle: Add USB OTG PHY details

 .../devicetree/bindings/usb/usb-nop-xceiv.txt      |    7 +-
 arch/arm/boot/dts/omap3-beagle-xm.dts              |   65 +++++++++++++--
 arch/arm/boot/dts/omap3-beagle.dts                 |   44 +++++------
 arch/arm/boot/dts/omap4-panda-common.dtsi          |   18 +----
 arch/arm/boot/dts/omap5-uevm.dts                   |   26 +------
 arch/arm/mach-omap2/board-omap3beagle.c            |    6 --
 arch/arm/mach-omap2/usb-host.c                     |   18 ++--
 arch/arm/mach-omap2/usb.h                          |    1 -
 drivers/usb/phy/phy-am335x.c                       |    2 +-
 drivers/usb/phy/phy-generic.c                      |   84 +++++++++++++-------
 drivers/usb/phy/phy-generic.h                      |    6 +-
 include/linux/usb/usb_phy_gen_xceiv.h              |    3 +-
 12 files changed, 153 insertions(+), 127 deletions(-)
Signature · 1 line
1.7.4.1