ARM: dts: enable rk808 dvs for rk3288 miniarm
authorJacob Chen <jacob2.chen@rock-chips.com>
Thu, 29 Dec 2016 03:05:47 +0000 (11:05 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 6 Jan 2017 02:46:54 +0000 (10:46 +0800)
Buck1/2 can be controlled by gpio dvs, this is GPIO specifiers
for 2 host gpio's used for dvs. The format of the gpio specifier depends in
the gpio controller. If DVS GPIOs aren't present, voltage changes will happen
very quickly with no slow ramp time.

Change-Id: Icfca0f2204356907b72533e6f7a3fd7835948229
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
arch/arm/boot/dts/rk3288-miniarm.dts

index 069e7b2e16102661659a53d9b4d1a4df662b7b73..0621fafb3e13d67771e4317b93947ba80abe3a0b 100644 (file)
                interrupt-parent = <&gpio0>;
                interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
                pinctrl-names = "default";
-               pinctrl-0 = <&pmic_int &global_pwroff>;
+               pinctrl-0 = <&pmic_int &global_pwroff &dvs_1 &dvs_2>;
+               dvs-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
+                               <&gpio0 12 GPIO_ACTIVE_HIGH>;
+
                rockchip,system-power-controller;
                wakeup-source;
                #clock-cells = <1>;
                                regulator-min-microvolt = <750000>;
                                regulator-max-microvolt = <1350000>;
                                regulator-name = "vdd_arm";
+                               regulator-ramp-delay = <6000>;
                                regulator-state-mem {
                                        regulator-off-in-suspend;
                                };
                pmic_int: pmic-int {
                        rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
                };
+
+               dvs_1: dvs-1 {
+                       rockchip,pins = <RK_GPIO0 11 RK_FUNC_GPIO &pcfg_pull_down>;
+               };
+
+               dvs_2: dvs-2 {
+                       rockchip,pins = <RK_GPIO0 12 RK_FUNC_GPIO &pcfg_pull_down>;
+               };
        };
 
        sdmmc {