From: Jacob Chen Date: Thu, 29 Dec 2016 03:05:47 +0000 (+0800) Subject: ARM: dts: enable rk808 dvs for rk3288 miniarm X-Git-Tag: firefly_0821_release~818 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=58e23d3e43bd9ffc408f057858570f8f731460fd;p=firefly-linux-kernel-4.4.55.git ARM: dts: enable rk808 dvs for rk3288 miniarm 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 --- diff --git a/arch/arm/boot/dts/rk3288-miniarm.dts b/arch/arm/boot/dts/rk3288-miniarm.dts index 069e7b2e1610..0621fafb3e13 100644 --- a/arch/arm/boot/dts/rk3288-miniarm.dts +++ b/arch/arm/boot/dts/rk3288-miniarm.dts @@ -182,7 +182,10 @@ 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>; @@ -208,6 +211,7 @@ regulator-min-microvolt = <750000>; regulator-max-microvolt = <1350000>; regulator-name = "vdd_arm"; + regulator-ramp-delay = <6000>; regulator-state-mem { regulator-off-in-suspend; }; @@ -513,6 +517,14 @@ pmic_int: pmic-int { rockchip,pins = ; }; + + dvs_1: dvs-1 { + rockchip,pins = ; + }; + + dvs_2: dvs-2 { + rockchip,pins = ; + }; }; sdmmc {