Firefly Open Source Community

Title: rk3328 suspend: How to define wakeup sources? [Print This Page]

Author: pablo    Time: 6/13/2019 19:38
Title: rk3328 suspend: How to define wakeup sources?
Last edited by pablo In 6/13/2019 19:40 Editor

Hi all,

Can anyone describe how to configure the roc-rk3328-cc for suspend and wakeup? I need information on:

In the Firefly (roc-rk3328-cc) and Rockchip (develop-4.4) Linux kernel repos the process is just barely described in Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt, with the rk3328 configuration example being only how to disable:
  1. rockchip_suspend: rockchip-suspend {
  2.                 compatible = "rockchip,pm-rk3328";
  3.                 status = "disabled";
  4.                 rockchip,virtual-poweroff = <0>;
  5. };
Copy the code

The actual rk3328.dtsi files in the Firefly (roc-rk3328-cc) and Rockchip (develop-4.4) Linux kernel repos look slightly different, why? And why are not rockchip,wakeup-config and rockchip,pwm-regulator-config configured?

      
  1. rockchip_suspend: rockchip-suspend {
  2.                 compatible = "rockchip,pm-rk3328";
  3.                 status = "disabled";
  4.                 rockchip,sleep-mode-config = <0>;
  5.                 rockchip,virtual-poweroff = <0>;
  6.         };
Copy the code


Also the corresponding suspend header file for rk3328, include/dt-bindings/suspend/rockchip-rk3328.h, does not list any relevant bits to use for sleep and wakeup configuration, like the rk3399 header file does, why?
  1. /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
  2. /*
  3. * Header providing constants for Rockchip suspend bindings.
  4. *
  5. * Copyright (C) 2018, Fuzhou Rockchip Electronics Co., Ltd
  6. * Author: XiaoDong.Huang
  7. */
  8. #ifndef __DT_BINDINGS_ROCKCHIP_PM_H__
  9. #define __DT_BINDINGS_ROCKCHIP_PM_H__
  10. /******************************bits ops************************************/

  11. #ifndef BIT
  12. #define BIT(nr)                         (1 << (nr))
  13. #endif

  14. #define RKPM_SLP_CTR_VOL_PWM0           BIT(10)
  15. #define RKPM_SLP_CTR_VOL_PWM1           BIT(11)

  16. #endif
Copy the code


In the Rockchip (develop-4.4) Linux kernel repo the rk3328-evb-* and  rk3328-rock64-* boards seem to enable the suspend, but what is the consequence for suspend and resume? How do I configure the wakeup sources?
  1. &rockchip_suspend {
  2.     status = "okay";
  3.     rockchip,virtual-poweroff = <1>;
  4. };
Copy the code


Author: penguin    Time: 6/18/2019 12:02
Please grep keyword 'wakeup' in the dts files to find some examples.
Author: mikegre132    Time: 1/15/2026 06:13
I was completely taken by that article. The Test C_ARCIG_2508 study guide exam papers are free! Best of luck to everyone preparing!
Author: emmatho607    Time: 4 day before
¤¢¤Ê¤¿¤ÏThe Open Group¤ÎOGBA-101Ô‡òY¤Ø¤ÎŬÁ¦¤òͨ¤·¤Æœº×ãµÄ¤Ê½Y¹û¤òµÃ¤é¤ì¤Æ¤¤¤ë¤Î¤ÏÎÒ¡©Tech4Exam¤ÎÏ£Íû¤Ç¤¹¡£ÐŤ¸¤é¤ì¤Ê¤¤¤Ê¤é¡¢±×Éç¤Î¥Ç¥â¤ò¤ä¤Ã¤Æ¤ß¤Æ¡¢The Open Group¤ÎOGBA-101Ô‡òY†–î}¼¯¤òÌåòY¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Ô‡¤·¤ÆÎÒ¡©ŒŸéT¼Ò¤¿¤Á¤ÎÕæÃæÄ¿¤µ¤ò¸Ð¤¸¤é¤ì¤Æ¤¤¤Þ¤¹¡£The Open Group¤ÎOGBA-101Ô‡òY¤Î¤Û¤«¤ÎÔ‡òY¤Ë²Î¼Ó¤¹¤ë¤Ä¤â¤ê¤Ç¤·¤¿¤é¡¢¤¢¤Ê¤¿¤â±×Éç¤ÎTech4Exam¤Ç¤Õ¤µ¤ï¤·¤¤¥½¥Õ¥È¤ò̽¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤¢¤Ê¤¿¤Ïœº×ã¤Ç¤­¤ë¤ÈÐŤ¸¤Æ¤¤¤Þ¤¹¡£
Author: paulcla937    Time: 4 day before
That article was a goldmine of information. Mule-Dev-301 brain exam offers great insights, and it's completely free to access.
Author: joshlee481    Time: 6 hour before
The article was really wonderful; thank you for sharing! Take advantage of Latest Cybersecurity-Practitioner test tips, full of valuable content, available for free.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1