arm64: dts: rk3399-mid: rk818 enabled boost_otg fix ota vcc5v poweroff when susppend
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-evb-rev2.dtsi
index d00d8ff37ac0d4da3e8121dd7605b082667b9371..ec937bd182a750293e989ab4b617dc2925971bc9 100644 (file)
@@ -41,6 +41,7 @@
  */
 
 #include "rk3399-evb.dtsi"
+#include "rk3399-early-opp.dtsi"
 
 / {
        compatible = "rockchip,rk3399-evb-rev2", "rockchip,rk3399";
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
        };
+
+       vdd_center: vdd-center {
+               compatible = "pwm-regulator";
+               rockchip,pwm_id = <3>;
+               rockchip,pwm_voltage = <900000>;
+               pwms = <&pwm3 0 25000 1>;
+               regulator-name = "vdd_center";
+               regulator-min-microvolt = <800000>;
+               regulator-max-microvolt = <1400000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+};
+
+&cpu_l0 {
+       dynamic-power-coefficient = <121>;
+};
+
+&cpu_b0 {
+       dynamic-power-coefficient = <1068>;
+};
+
+&soc_thermal {
+       sustainable-power = <1600>; /* milliwatts */
+
+       cooling-maps {
+               map0 {
+                       trip = <&target>;
+                       cooling-device =
+                               <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       contribution = <10240>;
+               };
+               map1 {
+                       trip = <&target>;
+                       cooling-device =
+                               <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       contribution = <1024>;
+               };
+               map2 {
+                       trip = <&target>;
+                       cooling-device =
+                               <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       contribution = <10240>;
+               };
+       };
+};
+
+&gpu_power_model {
+       dynamic-power = <1780>;
 };
 
 &i2c0 {
+       fusb1: fusb30x@22 {
+               compatible = "fairchild,fusb302";
+               reg = <0x22>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&fusb1_int>;
+               vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
+               int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
+               status = "okay";
+       };
+
        vdd_cpu_b: syr827@40 {
                compatible = "silergy,syr827";
                reg = <0x40>;
                                regulator-name = "vdd_gpu";
                                regulator-min-microvolt = <735000>;
                                regulator-max-microvolt = <1400000>;
+                               regulator-ramp-delay = <6000>;
                                regulator-always-on;
                                regulator-boot-on;
                        };
                                regulator-boot-on;
                                regulator-min-microvolt = <750000>;
                                regulator-max-microvolt = <1350000>;
+                               regulator-ramp-delay = <6001>;
                                regulator-name = "vdd_log";
                                regulator-state-mem {
                                        regulator-on-in-suspend;
                                regulator-boot-on;
                                regulator-min-microvolt = <750000>;
                                regulator-max-microvolt = <1350000>;
+                               regulator-ramp-delay = <6001>;
                                regulator-name = "vdd_cpu_l";
                                regulator-state-mem {
                                        regulator-off-in-suspend;
        };
 };
 
-&cpu_l0 {
-       cpu-supply = <&vdd_cpu_l>;
-};
-
-&cpu_l1 {
-       cpu-supply = <&vdd_cpu_l>;
-};
-
-&cpu_l2 {
-       cpu-supply = <&vdd_cpu_l>;
-};
-
-&cpu_l3 {
-       cpu-supply = <&vdd_cpu_l>;
-};
-
-&cpu_b0 {
-       cpu-supply = <&vdd_cpu_b>;
+&pwm3 {
+       status = "okay";
 };
 
-&cpu_b1 {
-       cpu-supply = <&vdd_cpu_b>;
+&u2phy0_otg {
+       rockchip,utmi-avalid;
 };
 
-&gpu {
+&i2c6 {
        status = "okay";
-       mali-supply = <&vdd_gpu>;
+       fusb0: fusb30x@22 {
+               compatible = "fairchild,fusb302";
+               reg = <0x22>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&fusb0_int>;
+               vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
+               int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
+               status = "okay";
+       };
 };
-