linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] usb: dwc3: add layerscape platform driver use flatten dwc3 core
@ 2025-06-02 22:01 Frank Li
  2025-06-02 22:01 ` [PATCH 1/3] dt-bindings: usb: add missed compatible string for arm64 layerscape Frank Li
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Frank Li @ 2025-06-02 22:01 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thinh Nguyen, Shawn Guo
  Cc: linux-usb, devicetree, linux-kernel, linux-arm-kernel,
	bjorn.andersson, Frank Li

Add layerscape platform driver use flatten dwc3 core to enable dma-coherence.
It needs set gsburstcfg0 to 0x2222.

There are some several try before:
[1] https://lore.kernel.org/imx/20240710-ls-dwc-v1-0-62f8cbed31d7@nxp.com/
[2] https://lore.kernel.org/imx/20240123170206.3702413-1-Frank.Li@nxp.com/

[2]: add new property, which was reject because there are no varience in
the soc. Fortunately the below commit resolve this problem by use software
managed property.

d504bfa6cfd1a usb: dwc3: enable CCI support for AMD-xilinx DWC3 controller

[1] was reject because there are not actually dwc wrap at layerscape
platform. Fortunately Bjorn Andersson's below patch to make it possible
by use correct dts dwc3 node layer out.

613a2e655d4dc usb: dwc3: core: Expose core driver as library

This resolve problem [1] and [2] by use flatten dwc3 core library.

1. add soc specific compatible string at dt-binding.
2. create platform driver for layerscape chips and pass down gsbuscfg0 if
dma-coherence enabled.
3. update layerscape dts files.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Frank Li (3):
      dt-bindings: usb: add missed compatible string for arm64 layerscape
      usb: dwc3: add layerscape dwc3 support
      arm64: dts: layerscape: add dma-coherent for usb node

 .../devicetree/bindings/usb/fsl,ls1028a.yaml       | 33 ++++----
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi     |  3 +-
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi     |  8 +-
 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi     |  9 ++-
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi     |  9 ++-
 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi     |  8 +-
 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi     |  8 +-
 drivers/usb/dwc3/Kconfig                           | 10 +++
 drivers/usb/dwc3/Makefile                          |  1 +
 drivers/usb/dwc3/dwc3-layerscape.c                 | 88 ++++++++++++++++++++++
 10 files changed, 149 insertions(+), 28 deletions(-)
---
base-commit: 66fda7d5293cdf86be0ef5bde9bf37205622dad2
change-id: 20250602-ls_dma_coherence-c3c2b6f79db2

Best regards,
---
Frank Li <Frank.Li@nxp.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-06-25 18:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-02 22:01 [PATCH 0/3] usb: dwc3: add layerscape platform driver use flatten dwc3 core Frank Li
2025-06-02 22:01 ` [PATCH 1/3] dt-bindings: usb: add missed compatible string for arm64 layerscape Frank Li
2025-06-25 18:38   ` Rob Herring (Arm)
2025-06-02 22:01 ` [PATCH 2/3] usb: dwc3: add layerscape dwc3 support Frank Li
2025-06-03  1:23   ` Thinh Nguyen
2025-06-03 14:59     ` Frank Li
2025-06-05  0:20       ` Thinh Nguyen
2025-06-02 22:01 ` [PATCH 3/3] arm64: dts: layerscape: add dma-coherent for usb node Frank Li

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).