All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: imx25: provide a fixed regulator for usb phys
@ 2019-06-25 10:04 Uwe Kleine-König
  2019-06-25 10:44 ` Sergei Shtylyov
  2019-06-26  2:40 ` Peter Chen
  0 siblings, 2 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2019-06-25 10:04 UTC (permalink / raw)
  To: Shawn Guo, Peter Chen
  Cc: Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	devicetree, linux-usb

The usb phys are internal to the SoC and so it their 5V supply. With
this regulator added explicitly the following (harmless) boot messages
go away:

	usb_phy_generic usbphy:usb-phy@0: usbphy:usb-phy@0 supply vcc not found, using dummy regulator
	usb_phy_generic usbphy:usb-phy@1: usbphy:usb-phy@1 supply vcc not found, using dummy regulator

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
Hello,

note I'm an USB noob, so please consider carefully before applying :-)
I also put the regulator near the usbphy node instead of in alphabetic
order. Not sure what is sensible/usual here, too.

Best regards
Uwe

 arch/arm/boot/dts/imx25.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi
--- a/arch/arm/boot/dts/imx25.dtsi
+++ b/arch/arm/boot/dts/imx25.dtsi
@@ -614,6 +614,11 @@
 		};
 	};
 
+	reg_usb: regulator_usbphy {
+		compatible = "regulator-fixed";
+		regulator-name = "usb-phy supply";
+	};
+
 	usbphy {
 		compatible = "simple-bus";
 		#address-cells = <1>;
@@ -623,12 +630,14 @@
 			reg = <0>;
 			compatible = "usb-nop-xceiv";
 			#phy-cells = <0>;
+			vcc-supply = <&reg_usb>;
 		};
 
 		usbphy1: usb-phy@1 {
 			reg = <1>;
 			compatible = "usb-nop-xceiv";
 			#phy-cells = <0>;
+			vcc-supply = <&reg_usb>;
 		};
 	};
 };
-- 
2.20.1

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

end of thread, other threads:[~2021-10-21 11:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 10:04 [PATCH] ARM: imx25: provide a fixed regulator for usb phys Uwe Kleine-König
2019-06-25 10:44 ` Sergei Shtylyov
2019-06-26  2:40 ` Peter Chen
2019-06-26  5:54   ` Marco Felsch
2019-06-26  5:54     ` Marco Felsch
2019-06-27  3:15     ` Peter Chen
2019-07-24 13:09       ` Uwe Kleine-König
2019-07-24 13:09         ` Uwe Kleine-König
2019-09-23 10:28         ` Uwe Kleine-König
2019-11-15  9:07           ` Uwe Kleine-König
2021-10-21 11:02             ` Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.