Skip to content

Commit cfe28a7

Browse files
Andy3Kuoasus-leslieyu
authored andcommitted
ARM: dts: enable rk808 dvs
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. pick from 73b1e5e Change-Id: I969c0f6723d8dcada8c6dcebbe2bcd93210e2f39
1 parent 67fb231 commit cfe28a7

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

arch/arm/boot/dts/rk3288-tinker-board.dts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,10 @@
365365
interrupt-parent = <&gpio0>;
366366
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
367367
pinctrl-names = "default";
368-
pinctrl-0 = <&pmic_int &global_pwroff>;
368+
pinctrl-0 = <&pmic_int &global_pwroff &dvs_1 &dvs_2>;
369+
dvs-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
370+
<&gpio0 12 GPIO_ACTIVE_HIGH>;
371+
369372
rockchip,system-power-controller;
370373
wakeup-source;
371374
#clock-cells = <1>;

arch/arm/boot/dts/rk3288-tinker-board.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,14 @@
421421
pmic_int: pmic-int {
422422
rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
423423
};
424+
425+
dvs_1: dvs-1 {
426+
rockchip,pins = <RK_GPIO0 11 RK_FUNC_GPIO &pcfg_pull_down>;
427+
};
428+
429+
dvs_2: dvs-2 {
430+
rockchip,pins = <RK_GPIO0 12 RK_FUNC_GPIO &pcfg_pull_down>;
431+
};
424432
};
425433

426434
sdio-pwrseq {

0 commit comments

Comments
 (0)