Commit 64e593af authored by Russell King's avatar Russell King Committed by Shawn Guo

ARM: dts: imx6qdl: SolidRun: rename regulators to match schematic

Make the regulators match the schematic - name the regulators after
one of their schematic supply names, and arrange them into their
heirarchy.
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent bf504ca7
...@@ -62,34 +62,36 @@ front { ...@@ -62,34 +62,36 @@ front {
}; };
}; };
reg_3p3v: 3p3v { v_5v0: regulator-v-5v0 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "3P3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on; regulator-always-on;
regulator-max-microvolt = <5000000>;
regulator-min-microvolt = <5000000>;
regulator-name = "v_5v0";
}; };
reg_usbh1_vbus: usb-h1-vbus { v_usb2: regulator-v-usb2 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
enable-active-high; enable-active-high;
gpio = <&gpio1 0 0>; gpio = <&gpio1 0 0>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cubox_i_usbh1_vbus>; pinctrl-0 = <&pinctrl_cubox_i_usbh1_vbus>;
regulator-name = "usb_h1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
regulator-min-microvolt = <5000000>;
regulator-name = "v_usb2";
vin-supply = <&v_5v0>;
}; };
reg_usbotg_vbus: usb-otg-vbus { v_usb1: regulator-v-usb1 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
enable-active-high; enable-active-high;
gpio = <&gpio3 22 0>; gpio = <&gpio3 22 0>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cubox_i_usbotg_vbus>; pinctrl-0 = <&pinctrl_cubox_i_usbotg_vbus>;
regulator-name = "usb_otg_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
regulator-min-microvolt = <5000000>;
regulator-name = "v_usb1";
vin-supply = <&v_5v0>;
}; };
sound-spdif { sound-spdif {
...@@ -237,21 +239,25 @@ &spdif { ...@@ -237,21 +239,25 @@ &spdif {
&usbh1 { &usbh1 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cubox_i_usbh1>; pinctrl-0 = <&pinctrl_cubox_i_usbh1>;
vbus-supply = <&reg_usbh1_vbus>; vbus-supply = <&v_usb2>;
status = "okay"; status = "okay";
}; };
&usbotg { &usbotg {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cubox_i_usbotg>; pinctrl-0 = <&pinctrl_cubox_i_usbotg>;
vbus-supply = <&reg_usbotg_vbus>; vbus-supply = <&v_usb1>;
status = "okay"; status = "okay";
}; };
&usdhc2 { &usdhc2 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>; pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>;
vmmc-supply = <&reg_3p3v>; vmmc-supply = <&vcc_3v3>;
cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
status = "okay"; status = "okay";
}; };
&vcc_3v3 {
vin-supply = <&v_5v0>;
};
...@@ -51,12 +51,21 @@ ir_recv: ir-receiver { ...@@ -51,12 +51,21 @@ ir_recv: ir-receiver {
pinctrl-0 = <&pinctrl_hummingboard_gpio3_5>; pinctrl-0 = <&pinctrl_hummingboard_gpio3_5>;
}; };
reg_3p3v: 3p3v { v_3v2: regulator-v-3v2 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "3P3V"; regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
regulator-min-microvolt = <3300000>;
regulator-name = "v_3v2";
vin-supply = <&v_5v0>;
};
v_5v0: regulator-v-5v0 {
compatible = "regulator-fixed";
regulator-always-on; regulator-always-on;
regulator-max-microvolt = <5000000>;
regulator-min-microvolt = <5000000>;
regulator-name = "v_5v0";
}; };
v_sd: regulator-v-sd { v_sd: regulator-v-sd {
...@@ -69,29 +78,31 @@ v_sd: regulator-v-sd { ...@@ -69,29 +78,31 @@ v_sd: regulator-v-sd {
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-name = "v_sd"; regulator-name = "v_sd";
startup-delay-us = <1000>; startup-delay-us = <1000>;
vin-supply = <&reg_3p3v>; vin-supply = <&v_3v2>;
}; };
reg_usbh1_vbus: usb-h1-vbus { v_usb2: regulator-v-usb2 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
enable-active-high; enable-active-high;
gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>; pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>;
regulator-name = "usb_h1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
regulator-min-microvolt = <5000000>;
regulator-name = "v_usb2";
vin-supply = <&v_5v0>;
}; };
reg_usbotg_vbus: usb-otg-vbus { v_usb1: regulator-v-usb1 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
enable-active-high; enable-active-high;
gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>; pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>;
regulator-name = "usb_otg_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
regulator-min-microvolt = <5000000>;
regulator-name = "v_usb1";
vin-supply = <&v_5v0>;
}; };
sound-sgtl5000 { sound-sgtl5000 {
...@@ -151,8 +162,8 @@ sgtl5000: sgtl5000@a { ...@@ -151,8 +162,8 @@ sgtl5000: sgtl5000@a {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>; pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>;
reg = <0x0a>; reg = <0x0a>;
VDDA-supply = <&reg_3p3v>; VDDA-supply = <&v_3v2>;
VDDIO-supply = <&reg_3p3v>; VDDIO-supply = <&v_3v2>;
}; };
}; };
...@@ -292,7 +303,7 @@ &ssi1 { ...@@ -292,7 +303,7 @@ &ssi1 {
&usbh1 { &usbh1 {
disable-over-current; disable-over-current;
vbus-supply = <&reg_usbh1_vbus>; vbus-supply = <&v_usb2>;
status = "okay"; status = "okay";
}; };
...@@ -300,7 +311,7 @@ &usbotg { ...@@ -300,7 +311,7 @@ &usbotg {
disable-over-current; disable-over-current;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>; pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>;
vbus-supply = <&reg_usbotg_vbus>; vbus-supply = <&v_usb1>;
status = "okay"; status = "okay";
}; };
...@@ -314,3 +325,7 @@ &pinctrl_hummingboard_usdhc2 ...@@ -314,3 +325,7 @@ &pinctrl_hummingboard_usdhc2
cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
status = "okay"; status = "okay";
}; };
&vcc_3v3 {
vin-supply = <&v_3v2>;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment