Skip to content

USB Device Controller support for BCM281xx

Matt Porter linux-arm-kernel linux-devicetree lkml 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest9 patches 0 repliesNew
  2. v89 patches 5 repliesApplied
  3. v79 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v69 patches3 repliesSuperseded
v59 patches8 repliesSuperseded
v49 patches2 repliesSuperseded

Changes in v9 from the cover letter

- Fix build issue in s3c-hsotg on !ARM by guarding with a "depends on ARM". Will fix by replacing use of readsl/writesl for 3.15 and dropping the Kconfig workaround..

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9phy: add phy_get_bus_width()/phy_set_bus_width() callsinclude/linux/phy/phy.h+28 -00 replies
2/9staging: dwc2: update DT binding to add generic clock/phy propertiesDocumentation/devicetree/bindings/staging/dwc2.txt+12 -00 replies
3/9usb: gadget: s3c-hsotg: enable build for other platformsdrivers/usb/gadget/Kconfig drivers/usb/gadget/s3c-hsotg.c+4 -60 replies
4/9usb: gadget: s3c-hsotg: add snps,dwc2 compatible stringdrivers/usb/gadget/s3c-hsotg.c+1 -00 replies
5/9usb: gadget: s3c-hsotg: enable generic phy supportdrivers/usb/gadget/s3c-hsotg.c+39 -160 replies
6/9usb: gadget: s3c-hsotg: get phy bus width from phy subsystemdrivers/usb/gadget/s3c-hsotg.c drivers/usb/gadget/s3c-hsotg.h+14 -10 replies
7/9phy: add Broadcom Kona USB2 PHY DT bindingDocumentation/devicetree/bindings/phy/bcm-phy.txt+15 -00 replies
8/9phy: add Broadcom Kona USB2 PHY driverdrivers/phy/Kconfig drivers/phy/Makefile drivers/phy/phy-bcm-kona-usb2.c+165 -00 replies
9/9ARM: dts: add usb udc support to bcm281xxarch/arm/boot/dts/bcm11351-brt.dts arch/arm/boot/dts/bcm11351.dtsi arch/arm/boot/dts/bcm28155-ap.dts+32 -00 replies

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchKishon Vijay Abraham IMarkus MayerTim Kryger
1/9A-b
2/9A-b
3/9R-b R-b
4/9
5/9
6/9A-b
7/9A-b
8/9
9/9R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v9 thread

Cover letter [PATCH v9 0/9] USB Device Controller support for BCM281xx

Changes since v8:
- Fix build issue in s3c-hsotg on !ARM by guarding with a "depends on ARM". Will fix by replacing use of readsl/writesl for 3.15 and dropping the Kconfig workaround..

Changes since v7:
- Register phy provider with generic phy subsystem only after the generic phy has been allocated and configured.

Changes since v6:
- Drop dependency on the Exynos generic phy conversion series
- Bring back original patch that converts s3c-hsotg to use the generic phy layer with a fall back to the old usb style phy support.

Changes since v5:
- tweak s3c-hsotg Kconfig help message to be more generic

Changes since v4:
- phy_set/get_bus_width now use an int for bus_width

Changes since v3:
- Rebased on 3.13-rc3
- Move struct phy bus_width attribute back into struct phy_attrs
- Fix build issue on !GENERIC_PHY
- Update dwc2 binding to reflect optional phy properties
- Rename bcm-kona-phy.txt binding to bcm-phy.txt
- Reorder bcm kona phy includes and use bitops
- phy-names changed to "usb2-phy" to match updated s3c-hsotg generic phy-ification series

Changes since v2:
- Rebased on 3.13-rc1
- Fix braces in phy_get_bus_width()/phy_set_bus_width()
- Drop generic phy conversion to use the same support from the Exynos generic phy conversion series
- Modify dts support to match the "device" phy name required in the v3 Exynos generic phy conversion
- Add s3c-hsotg phy_init/phy_exit support
- Fix typo on reg property in kona phy binding
- Replace phy driver reg struct with offset defines
- Move phy soft reset to phy driver init
- Fix dts node names to match ePAPR conventions

Changes since v1:
- Convert USB phy driver to generic phy subsystem
- Add phy bus width apis
- Drop dwc2 phy bus width DT property in favor of querying the phy provider for bus width
- Add generic phy/clock properties to dwc2 DT binding
- Add generic phy subsystem support to s3c-hsotg with the existing usb phy and pdata phy methods as a fallback
- Split bindings out to separate patches to match the latest DT binding review guidelines

This series adds USB Device Controller support for the Broadcom BCM281xx family of parts. BCM281xx contains a DWC2 OTG block and s3c-hsotg is used to support UDC operation.

Part 1 adds phy bus width support to the generic phy subsystem

Parts 2-6 allows s3c-hsotg to build on non-Samsung platforms, supports the dwc2 binding, adds generic phy layer support, and supports fetching phy bus width using the generic phy layer.

Parts 7-8 add a generic phy binding and driver for the BCM Kona USB PHY.

Part 9 adds the DT nodes to enable UDC support on both BCM281xx boards in the kernel.

This series depends on:
- "Update Kona drivers to use clocks" v4 series
https://lkml.org/lkml/2013/12/5/508
(relevant portion now queued for 3.14)

Matt Porter (9):
phy: add phy_get_bus_width()/phy_set_bus_width() calls
staging: dwc2: update DT binding to add generic clock/phy properties
usb: gadget: s3c-hsotg: enable build for other platforms
usb: gadget: s3c-hsotg: add snps,dwc2 compatible string
usb: gadget: s3c-hsotg: enable generic phy support
usb: gadget: s3c-hsotg: get phy bus width from phy subsystem
phy: add Broadcom Kona USB2 PHY DT binding
phy: add Broadcom Kona USB2 PHY driver
ARM: dts: add usb udc support to bcm281xx

 Documentation/devicetree/bindings/phy/bcm-phy.txt  |  15 ++
 Documentation/devicetree/bindings/staging/dwc2.txt |  12 ++
 arch/arm/boot/dts/bcm11351-brt.dts                 |   6 +
 arch/arm/boot/dts/bcm11351.dtsi                    |  18 +++
 arch/arm/boot/dts/bcm28155-ap.dts                  |   8 ++
 drivers/phy/Kconfig                                |   6 +
 drivers/phy/Makefile                               |   1 +
 drivers/phy/phy-bcm-kona-usb2.c                    | 158 +++++++++++++++++++++
 drivers/usb/gadget/Kconfig                         |   8 +-
 drivers/usb/gadget/s3c-hsotg.c                     |  72 +++++++---
 drivers/usb/gadget/s3c-hsotg.h                     |   1 +
 include/linux/phy/phy.h                            |  28 ++++
 12 files changed, 310 insertions(+), 23 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/phy/bcm-phy.txt
 create mode 100644 drivers/phy/phy-bcm-kona-usb2.c
Signature · 1 line
1.8.4