Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9962b62f authored by John Youn's avatar John Youn Committed by Felipe Balbi
Browse files

usb: dwc2: Deprecate g-use-dma binding



This is not needed as the gadget now fully supports DMA and it can
autodetect it. This was initially added because gadget DMA mode was only
partially implemented so could not be automatically enabled.

Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 5fb6fdaf
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -25,11 +25,13 @@ Optional properties:
Refer to phy/phy-bindings.txt for generic phy consumer properties
- dr_mode: shall be one of "host", "peripheral" and "otg"
  Refer to usb/generic.txt
- g-use-dma: enable dma usage in gadget driver.
- g-rx-fifo-size: size of rx fifo size in gadget mode.
- g-np-tx-fifo-size: size of non-periodic tx fifo size in gadget mode.
- g-tx-fifo-size: size of periodic tx fifo per endpoint (except ep0) in gadget mode.

Deprecated properties:
- g-use-dma: gadget DMA mode is automatically detected

Example:

        usb@101c0000 {
+0 −1
Original line number Diff line number Diff line
@@ -204,7 +204,6 @@
		g-np-tx-fifo-size = <16>;
		g-rx-fifo-size = <275>;
		g-tx-fifo-size = <256 128 128 64 64 32>;
		g-use-dma;
		status = "disabled";
	};

+0 −1
Original line number Diff line number Diff line
@@ -596,7 +596,6 @@
		g-np-tx-fifo-size = <16>;
		g-rx-fifo-size = <275>;
		g-tx-fifo-size = <256 128 128 64 64 32>;
		g-use-dma;
		phys = <&usbphy0>;
		phy-names = "usb2-phy";
		status = "disabled";
+0 −1
Original line number Diff line number Diff line
@@ -181,7 +181,6 @@
		g-np-tx-fifo-size = <16>;
		g-rx-fifo-size = <275>;
		g-tx-fifo-size = <256 128 128 64 64 32>;
		g-use-dma;
		phys = <&usbphy0>;
		phy-names = "usb2-phy";
		status = "disabled";
+0 −1
Original line number Diff line number Diff line
@@ -747,7 +747,6 @@
			clocks = <&sys_ctrl HI6220_USBOTG_HCLK>;
			clock-names = "otg";
			dr_mode = "otg";
			g-use-dma;
			g-rx-fifo-size = <512>;
			g-np-tx-fifo-size = <128>;
			g-tx-fifo-size = <128 128 128 128 128 128>;
Loading