linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information
@ 2018-06-28 16:36 Sebastian Reichel
  2018-06-28 16:36 ` [PATCHv2 2/2] ARM: dts: imx53: PPD: Rename usbphy nodes Sebastian Reichel
  2018-07-03  5:59 ` [PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Sebastian Reichel @ 2018-06-28 16:36 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team
  Cc: Rob Herring, linux-arm-kernel, devicetree, linux-kernel, kernel,
	Sebastian Reichel

Add information about 3V3 power rail to avoid kernel warnings,
that dummy regulators have been added.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
---
Changes since PATCHv1:
 * split usbphy rename into its own patch
 * drop useless regulator-boot-on
---
 arch/arm/boot/dts/imx53-ppd.dts | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm/boot/dts/imx53-ppd.dts b/arch/arm/boot/dts/imx53-ppd.dts
index 4ddef5abda56..daed979b6e40 100644
--- a/arch/arm/boot/dts/imx53-ppd.dts
+++ b/arch/arm/boot/dts/imx53-ppd.dts
@@ -140,6 +140,25 @@
 		regulator-always-on;
 	};
 
+	reg_3v3: regulator-3v3 {
+		/* TPS54320 */
+		compatible = "regulator-fixed";
+		regulator-name = "3V3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+	};
+
+	reg_3v3_lcd: regulator-3v3-lcd {
+		/* MIC2009 */
+		compatible = "regulator-fixed";
+		regulator-name = "LCD_3V3";
+		vin-supply = <&reg_3v3>;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+	};
+
 	pwm_bl: backlight {
 		compatible = "pwm-backlight";
 		pwms = <&pwm2 0 50000>;
@@ -154,6 +173,7 @@
 				     234 237 239 242 244 247 249 252 255>;
 		default-brightness-level = <0>;
 		enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
+		power-supply = <&reg_3v3_lcd>;
 	};
 
 	leds {
@@ -200,6 +220,7 @@
 
 	usbphy2: usbphy2 {
 		compatible = "usb-nop-xceiv";
+		vcc-supply = <&reg_3v3>;
 		reset-gpios = <&gpio4 4 GPIO_ACTIVE_LOW>;
 		clock-names = "main_clk";
 		clock-frequency = <24000000>;
@@ -210,6 +231,7 @@
 
 	usbphy3: usbphy3 {
 		compatible = "usb-nop-xceiv";
+		vcc-supply = <&reg_3v3>;
 		reset-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
 		clock-names = "main_clk";
 
@@ -221,6 +243,7 @@
 
 	panel-lvds0 {
 		compatible = "nvd,9128";
+		power-supply = <&reg_3v3_lcd>;
 
 		port {
 			panel_in_lvds0: endpoint {
@@ -230,6 +253,14 @@
 	};
 };
 
+&usbphy0 {
+	vcc-supply = <&reg_3v3>;
+};
+
+&usbphy1 {
+	vcc-supply = <&reg_3v3>;
+};
+
 &audmux {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_audmux>;
@@ -409,6 +440,7 @@
 &fec {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_fec>;
+	phy-supply = <&reg_3v3>;
 	phy-mode = "rmii";
 	phy-reset-gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
 	status = "okay";
-- 
2.18.0


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

* [PATCHv2 2/2] ARM: dts: imx53: PPD: Rename usbphy nodes
  2018-06-28 16:36 [PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information Sebastian Reichel
@ 2018-06-28 16:36 ` Sebastian Reichel
  2018-07-03  5:59 ` [PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2018-06-28 16:36 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team
  Cc: Rob Herring, linux-arm-kernel, devicetree, linux-kernel, kernel,
	Sebastian Reichel

This renames usbphy nodes 2 & 3, so that they follow the same
format as usbphy node 0 & 1 from imx53.dtsi.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
---
 arch/arm/boot/dts/imx53-ppd.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/imx53-ppd.dts b/arch/arm/boot/dts/imx53-ppd.dts
index daed979b6e40..f3a02481ce14 100644
--- a/arch/arm/boot/dts/imx53-ppd.dts
+++ b/arch/arm/boot/dts/imx53-ppd.dts
@@ -218,7 +218,7 @@
 		};
 	};
 
-	usbphy2: usbphy2 {
+	usbphy2: usbphy-2 {
 		compatible = "usb-nop-xceiv";
 		vcc-supply = <&reg_3v3>;
 		reset-gpios = <&gpio4 4 GPIO_ACTIVE_LOW>;
@@ -229,7 +229,7 @@
 		assigned-clock-parents = <&clks IMX5_CLK_OSC>;
 	};
 
-	usbphy3: usbphy3 {
+	usbphy3: usbphy-3 {
 		compatible = "usb-nop-xceiv";
 		vcc-supply = <&reg_3v3>;
 		reset-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
-- 
2.18.0


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

* Re: [PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information
  2018-06-28 16:36 [PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information Sebastian Reichel
  2018-06-28 16:36 ` [PATCHv2 2/2] ARM: dts: imx53: PPD: Rename usbphy nodes Sebastian Reichel
@ 2018-07-03  5:59 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2018-07-03  5:59 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Rob Herring, linux-arm-kernel, devicetree,
	linux-kernel, kernel

On Thu, Jun 28, 2018 at 06:36:38PM +0200, Sebastian Reichel wrote:
> Add information about 3V3 power rail to avoid kernel warnings,
> that dummy regulators have been added.
> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>

I changed subject prefix to 'ARM: dts: imx53-ppd: ...', and applied
both.

Shawn

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

end of thread, other threads:[~2018-07-03  5:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-28 16:36 [PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information Sebastian Reichel
2018-06-28 16:36 ` [PATCHv2 2/2] ARM: dts: imx53: PPD: Rename usbphy nodes Sebastian Reichel
2018-07-03  5:59 ` [PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information Shawn Guo

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