From patchwork Wed Jun 14 08:23:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9785815 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8DF1F60384 for ; Wed, 14 Jun 2017 08:49:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 734CC28583 for ; Wed, 14 Jun 2017 08:49:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 668802858F; Wed, 14 Jun 2017 08:49:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DCA8228583 for ; Wed, 14 Jun 2017 08:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=oktUsgynv6/WYBobLQEr6gc/EfE0r52czY6qZRTEPcw=; b=BMXYn6xn6zQ2Tl0JDWlqCZTdNU jKhuwHvoQByt253kOufSYXRbSuaWDLopsTG6QETdGsHYYNLUsCSVJl6lVWHbUzYgTRQtYHCAHPFiz kGfA4jkOoLXQcmAZvcMb5YyoMIb6IKRUJOwvXZFc/WC6+wISaOBINaICWzV1MFTvZMl4x6sl+PtIC DCl2e9VeM538Wy7w7KE3nVTVu4KFvCzY7ma+SkBk3BZ9RISqNlIA/ctLqgDruOo2SjWC4Bg6PL/SD etcaKiH5PLR+dBG9VniWlysMjHUqG/3wkWThyUP7thIwynSjSmdyMPHlVSLToVikJ+FFfGPkrVpsa zBU5YUDQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dL3zf-0001ij-JA; Wed, 14 Jun 2017 08:49:39 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL3zK-0001A1-Jk for linux-arm-kernel@bombadil.infradead.org; Wed, 14 Jun 2017 08:49:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=26ibPGtf3Fi4tY1hrxAlJrJuKlENMe8/xmgbIZrOl3w=; b=nqeRkuxZZUrK79tUrpt89Ufh9 iOSDHejZiWci2f6W1vAHVfmqZdJkdlyfSPKhULp4ranuQFp2IpZ5QCRAdNm5WoCE2c1FT1iCRhrr9 RxtK7Mmizd37JIkOOCSbJkG6/BjwVdq2oY6ZLeDc04e1urnCbcPesUGdjbrLYh3ELyLoMfMKnlnmG VAn1OpscHrDJJFuRTaj7oDQxfGAGnWmhznELgVQz3ugnx5P6F95CRBMoj5orUAbafPyf5Zl+orzYC Gb8FYkERA6fQiLqXbeFmSMJw5bEy5eFaU1nB7k7u+n8XKf3IDCO+44rBZqfT4dpuF0EwtvQyeWPJ3 /O1kukI0g==; Received: from mail-pg0-x22c.google.com ([2607:f8b0:400e:c05::22c]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL3cN-0003EP-Iz for linux-arm-kernel@lists.infradead.org; Wed, 14 Jun 2017 08:25:36 +0000 Received: by mail-pg0-x22c.google.com with SMTP id k71so72579266pgd.2 for ; Wed, 14 Jun 2017 01:25:15 -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; bh=26ibPGtf3Fi4tY1hrxAlJrJuKlENMe8/xmgbIZrOl3w=; b=c6k8/+VWrAMsAAaJTC+ki/2mZKyFh7JHSglprk24oHsZDDMvDcjuYpWLNhFRtzlKRC 1CERX4wK7VNiYmAUZO/33VQNSTCS2JREyMW019SknfpPhkunDL6ol27TWiBCfYGWYdCi W/L/kTuhzegou/d0MJmnw+ZbslLdV34jjzZuA= 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; bh=26ibPGtf3Fi4tY1hrxAlJrJuKlENMe8/xmgbIZrOl3w=; b=rjg2fpLpeUUSEWTCVoPtUubK2zXndpfT+tRmZmOY/mlIWNyuC737I5oftCeDWB+Tbw 9ksuQMMvqNQfEi1yLbZSpLwmATuitSRXq0aQaYqibEOS3oXvl669WFWKPqGi2v3E/+yE +v0rbi49Fpe+5nSnZbOr2vXcF4QGghgb7td3w01k4x39YQHJ3hwM9k/5SpiCi/pJUhuZ XA200cQQHs2AJuyooIDwBNDZNTSFqI++Vp+fs0WTGME4UkMgzBOJJpqz5voH765pbFTS 5EZ/dKzM1TpXMfJ4cmmO/sxtUHZvGLUoFCpOxWQLE1HbYkoN4IrGpMxNHOETckE6sN7o VYag== X-Gm-Message-State: AKS2vOwCFyy/i3G4xVkLhXLOj5ibWh/Ij8ZY0I/HJRHayk560dzAZVpj sLHaGLbw7W+t0rFA X-Received: by 10.98.50.129 with SMTP id y123mr3000516pfy.53.1497428713240; Wed, 14 Jun 2017 01:25:13 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id h14sm766802pfh.71.2017.06.14.01.25.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 01:25:12 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, xuejiancheng@hisilicon.com, peter.griffin@linaro.org, puck.chen@hisilicon.com, lee.jones@linaro.org, ulf.hansson@linaro.org, bhelgaas@google.com, arnd@arndb.de Subject: [PATCH v3 13/21] arm64: dts: hi3660: add sp804 timer node Date: Wed, 14 Jun 2017 16:23:30 +0800 Message-Id: <20170614082338.15673-14-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170614082338.15673-1-guodong.xu@linaro.org> References: <20170614082338.15673-1-guodong.xu@linaro.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Leo Yan , zhangfei.gao@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Leo Yan The Hi3660 SoC comes with the sp804 timer in addition to the architecture timers. These ones are shutdown when reaching a deep idle states and a backup timer is needed. The sp804 belongs to another power domain and can fulfill the purpose of replacing temporarily an architecture timer when the CPU is idle. Describe it in the device tree, so it can be enabled at boot time. Suggested-by: Daniel Lezcano Acked-by: Daniel Lezcano Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index a6b91f1..e138973 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -186,6 +186,17 @@ #reset-cells = <2>; }; + dual_timer0: timer@fff14000 { + compatible = "arm,sp804", "arm,primecell"; + reg = <0x0 0xfff14000 0x0 0x1000>; + interrupts = , + ; + clocks = <&crg_ctrl HI3660_OSC32K>, + <&crg_ctrl HI3660_OSC32K>, + <&crg_ctrl HI3660_OSC32K>; + clock-names = "timer1", "timer2", "apb_pclk"; + }; + i2c0: i2c@ffd71000 { compatible = "snps,designware-i2c"; reg = <0x0 0xffd71000 0x0 0x1000>;