};
};
- gpio_export {
- compatible = "gpio-export";
- #size-cells = <0>;
-
- power_usb3 {
- gpio-export,name = "power_usb3";
- gpio-export,output = <1>;
- gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
- };
+ reg_power_usb3: regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "power_usb3";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
};
};
};
};
+&xhci {
+ vbus-supply = <®_power_usb3>;
+};
+
&pcie {
status = "okay";
};
label-mac-device = &gmac1;
};
- gpio-export {
- compatible = "gpio-export";
-
- gpio-usb-power {
- gpio-export,name = "power:usb";
- gpio-export,output = <1>;
- gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
- };
- };
-
leds {
compatible = "gpio-leds";
linux,code = <KEY_RESTART>;
};
};
+
+ reg_power_usb: regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "power:usb";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
};
&spi0 {
};
};
+&xhci {
+ vbus-supply = <®_power_usb>;
+};
+
&pcie {
status = "okay";
};
gpio-export,output = <0>;
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
+ };
- usb_power {
- gpio-export,name = "usb_power";
- gpio-export,output = <1>;
- gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
- };
+ reg_usb_power: regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "usb_power";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
};
};
+&xhci {
+ vbus-supply = <®_usb_power>;
+};
+
&keys {
mode {
label = "mode";
};
};
+ reg_power_usb: regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "power_usb";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
watchdog {
compatible = "linux,wdt-gpio";
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
gpio-export,output = <1>;
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
-
- ext-usb {
- gpio-export,name = "ext-usb";
- gpio-export,output = <1>;
- gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
- };
};
};
+&xhci {
+ vbus-supply = <®_power_usb>;
+};
+
&sdhci {
status = "okay";
};
};
};
+ reg_power_usb: regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "power_usb";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
watchdog {
compatible = "linux,wdt-gpio";
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
gpio-export,output = <1>;
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
-
- ext-usb {
- gpio-export,name = "ext-usb";
- gpio-export,output = <1>;
- gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
- };
};
};
+&xhci {
+ vbus-supply = <®_power_usb>;
+};
+
&sdhci {
status = "okay";
};
};
+ reg_power_usb: regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "power_usb";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
};
-&gpio {
- status = "okay";
-
- enable_usb_power {
- gpio-hog;
- line-name = "enable USB power";
- gpios = <7 GPIO_ACTIVE_HIGH>;
- output-high;
- };
+&xhci {
+ vbus-supply = <®_power_usb>;
};
&nand {
gpio-export,output = <0>;
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
+ };
- usb_power {
- gpio-export,name = "usb_power";
- gpio-export,output = <1>;
- gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
- };
+ reg_usb_power: regulator {
+ compatible = "regulator-fixed";
+ reglator-name = "usb_power";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
};
};
+&xhci {
+ vbus-supply = <®_usb_power>;
+};
+
&nand {
status = "okay";