ARM64: dts: rk3399: add clock-latency-ns for each opp
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-vr-android.dts
index 2c13fcbcb27101969bb48438b5a5082bec79f8ec..25e1b06924741ff6353ad12a6ab4a7e800dc5eca 100644 (file)
                rockchip,uboot-charge-on = <0>;
                rockchip,android-charge-on = <1>;
        };
+
+       rk_vr_key: rockchip-vr-key {
+               compatible = "rockchip,key";
+               status = "okay";
+
+               io-channels = <&saradc 1>;
+
+               vol-down-key {
+                       linux,code = <114>;
+                       label = "volume down";
+                       rockchip,adc_value = <170>;
+               };
+
+               vol-up-key {
+                       linux,code = <115>;
+                       label = "volume up";
+                       rockchip,adc_value = <340>;
+               };
+
+               home-key {
+                       linux,code = <102>;
+                       label = "home";
+                       rockchip,adc_value = <420>;
+               };
+
+               camera-key {
+                       linux,code = <212>;
+                       label = "camera";
+                       rockchip,adc_value = <520>;
+               };
+
+               power-key {
+                       gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+                       linux,code = <116>;
+                       label = "power";
+                       gpio-key,wakeup;
+               };
+
+               back-key {
+                       linux,code = <158>;
+                       label = "back";
+                       rockchip,adc_value = <620>;
+               };
+
+               n-key {
+                       linux,code = <102>;
+                       label = "n";
+                       rockchip,adc_value = <700>;
+               };
+
+               menu-key {
+                       linux,code = <59>;
+                       label = "menu";
+                       rockchip,adc_value = <780>;
+               };
+       };
+
+       rk_headset {
+               compatible = "rockchip_headset";
+               headset_gpio = <&gpio4 28 GPIO_ACTIVE_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&hp_det>;
+               io-channels = <&saradc 2>;
+       };
 };
 
 &cluster0_opp {
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <850000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <925000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1075000>;
+               clock-latency-ns = <40000>;
        };
        opp@1512000000 {
                opp-hz = /bits/ 64 <1512000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
+               status="disabled";
        };
 };
 
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <825000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <850000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <900000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1000000>;
+               clock-latency-ns = <40000>;
        };
        opp@1608000000 {
                opp-hz = /bits/ 64 <1608000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
        };
        opp@1800000000 {
                opp-hz = /bits/ 64 <1800000000>;
                opp-microvolt = <1150000>;
+               clock-latency-ns = <40000>;
        };
        opp@1992000000 {
                opp-hz = /bits/ 64 <1992000000>;
                opp-microvolt = <1225000>;
-               status="disabled";
+               clock-latency-ns = <40000>;
        };
 };
 
        opp@200000000 {
                opp-hz = /bits/ 64 <200000000>;
                opp-microvolt = <825000>;
+               status = "disabled";
        };
        opp@300000000 {
                opp-hz = /bits/ 64 <300000000>;
 };
 
 &emmc_phy {
-       freq-sel = <200000000>;
-       dr-sel = <50>;
-       opdelay = <4>;
        status = "okay";
 };
 
        mmc-hs400-1_8v;
        supports-emmc;
        non-removable;
+       keep-power-in-suspend;
        mmc-hs400-enhanced-strobe;
        status = "okay";
 };
                                regulator-max-microvolt = <1350000>;
                                regulator-ramp-delay = <6001>;
                                regulator-state-mem {
-                                       regulator-on-in-suspend;
-                                       regulator-suspend-microvolt = <1000000>;
+                                       regulator-off-in-suspend;
                                };
                        };
 
                clocks = <&cru SCLK_I2S_8CH_OUT>;
                clock-names = "mclk";
                spk-con-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
-               hp-det-gpio = <&gpio4 28 GPIO_ACTIVE_LOW>;
        };
 };
 
 };
 
 &threshold {
-       temperature = <85000>; /* millicelsius */
+       temperature = <70000>; /* millicelsius */
 };
 
 &target {
-       temperature = <100000>; /* millicelsius */
+       temperature = <85000>; /* millicelsius */
 };
 
 &soc_crit {
-       temperature = <105000>; /* millicelsius */
+       temperature = <100000>; /* millicelsius */
 };
 
 &tsadc {
        status = "okay";
 };
 
-&rk_key {
-       compatible = "rockchip,key";
-       status = "okay";
-       io-channels = <&saradc 1>;
-
-       vol-up-key {
-               linux,code = <115>;
-               label = "volume up";
-               rockchip,adc_value = <340>;
-       };
-
-       vol-down-key {
-               linux,code = <114>;
-               label = "volume down";
-               rockchip,adc_value = <170>;
-       };
-
-       power-key {
-               gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
-               linux,code = <116>;
-               label = "power";
-               gpio-key,wakeup;
-       };
-
-       back-key {
-               linux,code = <158>;
-               label = "back";
-               rockchip,adc_value = <620>;
-       };
-
-       home-key {
-               linux,code = <102>;
-               label = "home";
-               rockchip,adc_value = <700>;
-       };
-};
-
 &u2phy0 {
        extcon = <&fusb0>;
        status = "okay";
        rockchip,pwm_voltage = <900000>;
 };
 
+&rk_key {
+       status = "disabled";
+};
+
 &rk_screen {
        assigned-clocks = <&cru PLL_VPLL>;
        assigned-clock-rates = <245000000>;
                        rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_up>;
                };
        };
+
+       headphone {
+               hp_det: hp-det {
+                       rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
+};
+
+&pvtm {
+       status = "okay";
+};
+
+&pmu_pvtm {
+       status = "okay";
 };