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

Commit aa607ebf authored by Stephen Warren's avatar Stephen Warren
Browse files

ARM: tegra: add USB ULPI PHY reset GPIO to device tree



ULPI PHYs have a reset signal, and different boards use a different GPIO
for this task. Add a property to device tree to represent this.

I'm not sure if adding this property to the EHCI controller node is
entirely correct; perhaps eventually we should have explicit separate
nodes for the various PHYs. However, we don't have that right now, so this
binding seems like a reasonable choice.

Cc: <devicetree-discuss@lists.ozlabs.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <linux-usb@vger.kernel.org>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 60d148b9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -12,6 +12,9 @@ Required properties :
 - nvidia,vbus-gpio : If present, specifies a gpio that needs to be
   activated for the bus to be powered.

Required properties for phy_type == ulpi:
  - nvidia,phy-reset-gpio : The GPIO used to reset the PHY.

Optional properties:
  - dr_mode : dual role mode. Indicates the working mode for
   nvidia,tegra20-ehci compatible controllers.  Can be "host", "peripheral",
+4 −0
Original line number Diff line number Diff line
@@ -336,4 +336,8 @@
		power-gpios = <&gpio 70 0>; /* gpio PI6 */
		support-8bit;
	};

	usb@c5004000 {
		nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */
	};
};
+4 −0
Original line number Diff line number Diff line
@@ -351,4 +351,8 @@
			linux,default-trigger = "rfkill0";
		};
	};

	usb@c5004000 {
		nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */
	};
};
+4 −0
Original line number Diff line number Diff line
@@ -415,4 +415,8 @@
				0x00000000 0x00000000 0x00000000 0x00000000 >;
		};
	};

	usb@c5004000 {
		nvidia,phy-reset-gpio = <&gpio 169 0>; /* gpio PV1 */
	};
};
+4 −0
Original line number Diff line number Diff line
@@ -304,4 +304,8 @@
		cd-gpios = <&gpio 121 0>;
		wp-gpios = <&gpio 122 0>;
	};

	usb@c5004000 {
		nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */
	};
};
Loading