ARM: dts: sun5i: hsg-h702: add axp209 regulator nodes
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / sun5i-a13-hsg-h702.dts
index 99a5968720b4e5489925953a5f3921415244fee3..82637db1c55a5a4188a29594d8725ef315e985fa 100644 (file)
                };
 
                usbphy: phy@01c13400 {
-                       /*
-                        * There doesn't seem to be a GPIO for controlling
-                        * usb1 vbus, despite the fex file saying otherwise.
-                        */
-                       usb1_vbus-supply = <&reg_vcc5v0>;
+                       usb1_vbus-supply = <&reg_ldo3>;
                        status = "okay";
                };
 
                        status = "okay";
 
                        axp209: pmic@34 {
-                               compatible = "x-powers,axp209";
                                reg = <0x34>;
                                interrupts = <0>;
-                               interrupt-controller;
-                               #interrupt-cells = <1>;
                        };
                };
 
                };
        };
 };
+
+#include "axp209.dtsi"
+
+&cpu0 {
+       cpu-supply = <&reg_dcdc2>;
+};
+
+&reg_dcdc2 {
+       regulator-always-on;
+       regulator-min-microvolt = <1000000>;
+       regulator-max-microvolt = <1500000>;
+       regulator-name = "vdd-cpu";
+};
+
+&reg_dcdc3 {
+       regulator-always-on;
+       regulator-min-microvolt = <1000000>;
+       regulator-max-microvolt = <1400000>;
+       regulator-name = "vdd-int-dll";
+};
+
+&reg_ldo1 {
+       regulator-name = "vdd-rtc";
+};
+
+&reg_ldo2 {
+       regulator-always-on;
+       regulator-min-microvolt = <3000000>;
+       regulator-max-microvolt = <3000000>;
+       regulator-name = "avcc";
+};
+
+&reg_ldo3 {
+       regulator-min-microvolt = <3300000>;
+       regulator-max-microvolt = <3300000>;
+       regulator-name = "vcc-wifi";
+};