ARM64: dts: rk3399: enable rockchip-suspend for box
authorZhangbin Tong <zebulun.tong@rock-chips.com>
Wed, 8 Feb 2017 07:04:48 +0000 (15:04 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 10 Feb 2017 07:27:58 +0000 (15:27 +0800)
Change-Id: Ibfaee3b898dc77673b806e6a46570320918b9a5e
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-box-next.dtsi
arch/arm64/boot/dts/rockchip/rk3399-box-rev2-disvr.dts
arch/arm64/boot/dts/rockchip/rk3399-box-rev2-next.dts
arch/arm64/boot/dts/rockchip/rk3399-box-rev2.dts
arch/arm64/boot/dts/rockchip/rk3399-box.dtsi

index 060172f..bdb95ac 100644 (file)
 &rkvdec {
        status = "okay";
 };
+
+&rockchip_suspend {
+       status = "okay";
+       rockchip,sleep-debug-en = <0>;
+       rockchip,sleep-mode-config = <
+               (0
+               | RKPM_SLP_ARMPD
+               | RKPM_SLP_PERILPPD
+               | RKPM_SLP_DDR_RET
+               | RKPM_SLP_PLLPD
+               | RKPM_SLP_CENTER_PD
+               | RKPM_SLP_AP_PWROFF
+               )
+       >;
+       rockchip,wakeup-config = <
+               (0
+               | RKPM_GPIO_WKUP_EN
+               | RKPM_PWM_WKUP_EN
+               )
+       >;
+       rockchip,pwm-regulator-config = <
+               (0
+               | PWM2_REGULATOR_EN
+               )
+       >;
+       rockchip,power-ctrl =
+               <&gpio1 17 GPIO_ACTIVE_HIGH>,
+               <&gpio1 14 GPIO_ACTIVE_HIGH>;
+};
index 9ac533c..fc57e73 100644 (file)
        vsel-gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
        fcs,suspend-voltage-selector = <0>;
 };
+
+&rockchip_suspend {
+       rockchip,power-ctrl =
+               <&gpio1 18 GPIO_ACTIVE_LOW>,
+               <&gpio1 14 GPIO_ACTIVE_HIGH>;
+};
index 03f2b5c..5f4c4c9 100644 (file)
        vsel-gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
        fcs,suspend-voltage-selector = <0>;
 };
+
+&rockchip_suspend {
+       rockchip,power-ctrl =
+               <&gpio1 18 GPIO_ACTIVE_LOW>,
+               <&gpio1 14 GPIO_ACTIVE_HIGH>;
+};
index ce8843f..b8e0f82 100644 (file)
        vsel-gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
        fcs,suspend-voltage-selector = <0>;
 };
+
+&rockchip_suspend {
+       rockchip,power-ctrl =
+               <&gpio1 18 GPIO_ACTIVE_LOW>,
+               <&gpio1 14 GPIO_ACTIVE_HIGH>;
+};
index 1102d38..685a326 100644 (file)
        pmu1830-supply = <&vcc_1v8>;
 };
 
+&rockchip_suspend {
+       status = "okay";
+       rockchip,sleep-debug-en = <0>;
+       rockchip,sleep-mode-config = <
+               (0
+               | RKPM_SLP_ARMPD
+               | RKPM_SLP_PERILPPD
+               | RKPM_SLP_DDR_RET
+               | RKPM_SLP_PLLPD
+               | RKPM_SLP_CENTER_PD
+               | RKPM_SLP_AP_PWROFF
+               )
+       >;
+       rockchip,wakeup-config = <
+               (0
+               | RKPM_GPIO_WKUP_EN
+               | RKPM_PWM_WKUP_EN
+               )
+       >;
+       rockchip,pwm-regulator-config = <
+               (0
+               | PWM2_REGULATOR_EN
+               )
+       >;
+       rockchip,power-ctrl =
+               <&gpio1 17 GPIO_ACTIVE_HIGH>,
+               <&gpio1 14 GPIO_ACTIVE_HIGH>;
+};