rk3288 autowakeup immediately after sleep
冷启动自动唤醒日志_1029.txt that's the debug info.
our product doesn't nedd ethernet.we just use wifi or bluetooth.so i just remove the phy circuit from the bord.but when the system enter sleep mode,it wakeup immediately.
steps: 1、remove the phy chip. 2、boot the system 3、login form debug serial,and ru as root 4、use 'echo mem >/sys/power/state',to enter sleppmode. 5、it wakeup immediately.
i try some way,but doen't work. way1、close the gmac by change gmac to disable(file :rk3288.dtsi): gmac: ethernet@ff290000 { compatible = "rockchip,rk3288-gmac"; reg = <0x0 0xff290000 0x0 0x10000>; interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "macirq", "eth_wake_irq"; rockchip,grf = <&grf>; clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>, <&cru PCLK_GMAC>; clock-names = "stmmaceth", "mac_clk_rx", "mac_clk_tx", "clk_mac_ref", "clk_mac_refout", "aclk_mac", "pclk_mac"; resets = <&cru SRST_MAC>; reset-names = "stmmaceth"; status = "disabled"; }; this way will case the system stop at ' [ 2.977420] Boot mode: coldboot ' way2、comment the interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH> as fllow " //interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>, interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; //interrupt-names = "macirq", interrupt-names = "eth_wake_irq"; " reusult same as way1.
way 3.comment the interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH> as fllow " interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; // interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "macirq"; //interrupt-names = "eth_wake_irq"; " it will autowake up too.
please help me.