Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5457845imm; Sun, 22 Jul 2018 23:14:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdsB63sh7/MrnGteL8i8rza4Bi2GeU4ZEn1VFdbhBv99RssEjHAYLYTlwrHW08Kjn2n+R6s X-Received: by 2002:a17:902:1007:: with SMTP id b7-v6mr11475903pla.277.1532326453492; Sun, 22 Jul 2018 23:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532326453; cv=none; d=google.com; s=arc-20160816; b=ZcfTBCTb8iIDYuOU7UWFrwRJn1HKhc9sGMndhvwk98eycvtbK9FDdpzY8S+SGfS/0r Dn1T1PDtJt3QmskFYWZ9f3z8jzfvtvYN0D01u8cfvODuZqWhNSxx4W5E4BbG+BnGD/xp dNjMUTucnxiR3gfPk3DBSfNT4BZcgy2VsWyHt2Kc1GEGEES+ic6ofWMKGVAxFGTVUObO kXDpB/ltKAu6T5913nfBZ/JdUZ22RcnNNUFZnmZB3dAvwHmsjKPHvJ5pFe5frsNnUGTg IuND0bdwk4HXQrB5Snt6R7TNSAPlb6YjJ1wqxJTyZ/rk7nUJ9gC+hVlrcoYRzrMigeyZ Q3og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=NkthwwEMi7a4yyrhFCNi+MJpK1lyOUPQFCvHpXCK/FI=; b=Du2dULlFf1Z+1x3WlgWsixzjaHi1Y1Hy2tt9KYobX95jXUM43MTDodbE3LsFYFe2oL BFOmjPgrohagHCHtIgqBJAer2WSLJUH12Z3SzVAodk1ARfGxPRTNeQbgJPjmZmK+U6Ed rxnyJrvy3xAIuWORX4u9/G2qQOpx6fDsn022benYaFNP28RQgXJSa+NEpf6yvArZqxqf ydFVwhAz3NFTk411iPn9dXqAXesmD6M4JuAkePzxc6vwc8ittFtcCxRtmOHjBA/PLBbr aXllnx5YKMLdX/4n/Kht8hwPgRqZV7ja54KMEDpYn/AjlgEztrEZm8zIeBdrWOQeBskK x0qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ehSvf2q4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2-v6si8146383pgg.422.2018.07.22.23.13.58; Sun, 22 Jul 2018 23:14:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ehSvf2q4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387953AbeGWHLI (ORCPT + 99 others); Mon, 23 Jul 2018 03:11:08 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:43193 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387904AbeGWHLH (ORCPT ); Mon, 23 Jul 2018 03:11:07 -0400 Received: by mail-pl0-f68.google.com with SMTP id o7-v6so7799030plk.10 for ; Sun, 22 Jul 2018 23:11:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=NkthwwEMi7a4yyrhFCNi+MJpK1lyOUPQFCvHpXCK/FI=; b=ehSvf2q4bgyD1rOtVRN85iwNczGNSEnX1XdpFKm5kw8STBiIQljxglLbgbqfr4itot sDoXqFsHYvmeVEIdloeA6glXv0Y6uIYrZYt5RD08oT2Y6ldVOBN9VqSOYRJGLs2zk/CB d89H7qxQETsHil+ozUS5zvv3SAJGLlBRWn02w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=NkthwwEMi7a4yyrhFCNi+MJpK1lyOUPQFCvHpXCK/FI=; b=obkhNvBBQFxSNdiZ0iEtmK53Booi/jFiWL6swaokltrn1n69EU3/ux1V/04tNjtWAI bIeami76Qj1x0WB0+85r293IYmJXaVaTZw1FXCFKW9rYTVFlLGUNCgLEeCd1W0SwZLTE 3xAoOQD9BQaOybEAINkVgUQ37Rl4YaBmyrUn4wO/75Lgj/rWyjsrBqwoB/AF8BlHVQ7N 0dDilI8dym88BEfZfmiAmPIxFHGuy0EkbHsh8qIPSx34HKnGFIZd3BU94ejc+d10c6RV B9USBJ1SjzrdW3ZbsgoAB5Vha8ZuL/dwlKb3vbbp0wlHlAaRZWeR0LFoHA8axReWXwV5 MOvA== X-Gm-Message-State: AOUpUlGfrreLKDgzgOB/KHoDT5LVTqaGeETOLHdvoIucfm7JtJz74yff GTX6a2TR8YmR80g3td9jiaclrw== X-Received: by 2002:a17:902:18a:: with SMTP id b10-v6mr11826486plb.62.1532326293671; Sun, 22 Jul 2018 23:11:33 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 8-v6sm11972303pfk.132.2018.07.22.23.11.29 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jul 2018 23:11:33 -0700 (PDT) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: devicetree@vger.kernel.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH 5/5] arm64: dts: sprd: Add one suspend timer Date: Mon, 23 Jul 2018 14:10:20 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Spreadtrum platform, the current clocksource for timekeeping will be stopped in suspend state, thus add one always-on timer to calculate the suspend time. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index e9db910..eb6be56 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -146,6 +146,12 @@ clocks = <&ext_32k>; }; + timer@40050020 { + compatible = "sprd,sc9860-suspend-timer"; + reg = <0 0x40050020 0 0x20>; + clocks = <&ext_32k>; + }; + hwlock: hwspinlock@40500000 { compatible = "sprd,hwspinlock-r3p0"; reg = <0 0x40500000 0 0x1000>; -- 1.7.9.5