9 Enter sleep and power off mode

V0.0.4

9.1 Histroy

  • 2014-10-27, rayoslee, release V0.0.4 (908)
    • S605-32’s operation mode
    • wifi packets wake up system
  • 2014-05-06, rayoslee, release V0.0.3 (754)
    • patch cpu.c to fix “ADC recording causes power down wakeup failed issue”
  • 2014-04-29, rayoslee, release V0.0.2
  • 2014-04-24, rayoslee, release V0.0.1

9.2 FAQ

  1. How to enter sleep mode using RTC?
    • SD card side
      a. Update etc/plugin/timer.conf
      Interval=1#In second#-i
      ---WDT_Enable=1#0: Disable, 1: Enable#-w
      +++WDT_Enable=0(Disable watch dog timer)

      b. Rename etc/pluging/audio_in.conf
      mv audio_in.conf _audio_in.conf

    • Linux kernel source side
      • pathc cpu.c and update /arch/arm/mach-w55fa93/cpu.c
        267 #define SHUTDOWN_TIME 30 // seconds
        Compose SHUTDOWN_TIME to your new sleep time

      • make menuconfig
        Disable “Device Drivers / Input device support / Keyboards”
        (Watch out! If you want to enable Keyboards again, make sure
        CONFIG_W55FA93_KEYPAD=y
        CONFIG_W55FA93_KEYPAD_2X3=y, two configs are enable.)

      • rebuild kernel. (./build sd)
      • in the debug console(putty), key in the following commands to enter sleep mode. The system will wake up after your new sleep time.
        echo “pd” > /sys/devices/platform/w55fa93-clk/clock

    • S605-32 demo kit side

      You can check the following PINs
      • PIN 41/RTC_1.8V is connected to independent 1.8V power source.
      • PIN 42/RTC_PWREN is connected to independent 1.8V power source.
      • PIN 43/RTC_WKUP is connected to switch.
      • PIN 44/RTC_XIN is connected to 32. 768 crystal.
      • PIN 45/RTC_XOUT is connected to 32. 768 crystal.
  2. How to wake up system from HW button(GPA6)?

    • SD card side
      • Update etc/plugin/timer.conf
        Interval=1#In second#-i
        ---WDT_Enable=1#0: Disable, 1: Enable#-w
        +++WDT_Enable=0

      • Rename etc/pluging/audio_in.conf
        mv audio_in.conf _audio_in.conf

    • Linux kernel source side
      • update /drivers/input/keyboard/w55fa93_keypad_2x3.c to support GPA6(gpio in)
      • make menuconfig
        Disable “Device Drivers / Real Time Clock”
      • rebuild kernel. (./build sd)
      • in the debug console(putty), key in the following commands to enter sleep mode. The system will wake up when you press HW button(GPA6)
        echo “pd” > /sys/devices/platform/w55fa93-clk/clock
    • S605-32 demo kit side
      Check it as the following:
    PIN 50/GPA6 is connect to 47Kohm resistance and switch that is pulled low to GND 
      ----------- 
                |      47Kohm                  ===  
     S605 PIN 50 |------/\/\/\/------==o o==---------O GND
                |                                     Switch 
                | 
      -----------
  1. How to power off or reboot S605-32 demo kit?
    • kernel .config as item1
    • echo “pr” > /sys/devices/platform/w55fa93-clk/clock , it can reset S605-32 demo kit immediately.
    • echo “rpo” > /sys/devices/platform/w55fa93-clk/clock , it can power off S605-32 demo kit but sd card can’t be protected. (Not recommended)
    • poweroff, it’s the normal power off flow with “kill all process” and “sync data” (press button POWER ON ot reboot S605-32)
  2. How to wake up system from SW button(GPE1)?
    • SD card side
      1. Rename etc/pluging/audio_in.conf
        mv audio_in.conf _audio_in.conf
    • Linux kernel source side (extract V004.tar.xz)
      1. update /drivers/input/keyboard/w55fa93_keypad_2x3.c to support GPE1(gpio in)

      2. make menuconfig
        Enable “Device Drivers / Real Time Clock”
        and rewrite #define SHUTDOWN_TIME 300 or more as item 1.
        or Disable “Device Drivers / Real Time Clock”

      3. rebuild kernel. (./build sd)

      4. in the debug console(putty), key in the following commands to enter sleep mode. The system will wake up when ap0 or wlan0 has any packets pass by GPE1.
        echo “pd” > /sys/devices/platform/w55fa93-clk/clock

    • S605-32 demo kit side
      S605-32’s GPE1 has been connected with S605-32’s WIFI interrupted PIN.
  3. What is the S605’s operation mode?
    • Normal mode: it is an operation after power-on.
      • Core power is 1.8V and chip is in normal operation.
    • CPU Standby mode: CPU clock will be turned off but no save any power. This is not supported in Linux BSP.
      • Core power is 1.8V and only ARM CPU clock is turned OFF.
    • Deep Standby mode: ALL IP(Inter-Group Priority or Intra-Group Priority) clocks will be turned and memory will go self-refresh. We can call echo “pd” (power down) to go this mode.
      • Core power is 1.8V and all IP clocks are tured OFF.
    • Power Down mode: Shut down operatoin, only RTC is working. We can call echo “rpo” (RTC power it off) to go this mode or poweroff command.
      • Only the RTC power is ON. Other 3.3V and 1.8V power are OFF.