From patchwork Thu Jun 15 03:04:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9787931 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 959F460384 for ; Thu, 15 Jun 2017 03:08:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B27C283A6 for ; Thu, 15 Jun 2017 03:08:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EDF6283DA; Thu, 15 Jun 2017 03:08:11 +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 1FF70283A6 for ; Thu, 15 Jun 2017 03:08:11 +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=nZsY9B9xPhZx7HZqkxUtWqWjb1 8wV7bkEHeDSSv9YL7XyeIs9DUmvALCKroGe5CuIi5Q3HFD9fNjKYoO/TUT8SpjS6o654mAscdd1PP QowZV9zp1dh8kHXlgsuyOgy3nvF/WFrV1DFVa2ttDdzJl6rG+bFAdKQOCvRrFMTMnfG2bkCp0TND3 DwL0a74/PT5nwbSFp797Vix91wwDM6qS5lr42PvR0Eo0deUH3pljTuOmkqSs1jhVwVRL5fm1X+fSV e2vX/M+WUHmflfjDYDp9r9uOESBis4wAAppkwmeIWENFZwEmvOsFkXJhKm6WvifLEU5Tsc78mSvKe XpIbZ64g==; 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 1dLL8i-0003g1-Ux; Thu, 15 Jun 2017 03:08:08 +0000 Received: from mail-pg0-f46.google.com ([74.125.83.46]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLL7k-0002Hm-UJ for linux-arm-kernel@lists.infradead.org; Thu, 15 Jun 2017 03:07:12 +0000 Received: by mail-pg0-f46.google.com with SMTP id f185so1289929pgc.0 for ; Wed, 14 Jun 2017 20:06:48 -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=QK7h2rmuyNnJzQ5RJjN9cg+cX0OHLe3gklkcWiiujrkNRcKt0RfSE6qfATFkSvRvOT /Ccn8kOZtvzko5zuimuZSIFU/GDVInoh2E8Pjyb7p5r1+spIhFKYBII7IEEkwXzl2Hmf 08vDOj/INwMM5yS9+PPeW3rKtsG2ETDieVulg= 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=M9unXrni8DSJHsOf8oVtoEafLPoeT7dYsBP7XvFY+G4LvaYUE+6ZCRqj5WEgZl/oHg Bnkyehjrz1VhioCmbOuMvcTroQPb0zNw5iSYB/JiMkKLtFANGUUVpUNYH8gQeoyksGLv 0AI9KtlRdTAk8O+5avhr+lbR2lz7JCXa/8+z+eO9qmBrEcwKW9uGIeiDyYOaSvYxxwjw HYxUUXRhkNxCXIKXlG83P994b6dlp585JttB0MYyfrqUlT9kuEQn/qf8uruyKctEubAg 4ylyFwc4fBdwbv1BU0/17MB4Dn9cHczz1rRv/rr0VpUzjir0yIR5z7q7umbT4unrVmC9 z4CQ== X-Gm-Message-State: AKS2vOz4AR10g4KiA8pV3qKULUruPM6zHTyeM+tHplT4dosG7HNwJlWe MvfghjBhtJf3D8Wr X-Received: by 10.99.165.17 with SMTP id n17mr1737051pgf.163.1497496007725; Wed, 14 Jun 2017 20:06:47 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.17]) by smtp.gmail.com with ESMTPSA id y65sm2156656pgd.33.2017.06.14.20.06.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 20:06:47 -0700 (PDT) From: Guodong Xu To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, lgirdwood@gmail.com, broonie@kernel.org, khilman@baylibre.com, arnd@arndb.de, gregory.clement@free-electrons.com, horms+renesas@verge.net.au, olof@lixom.net, thomas.petazzoni@free-electrons.com, yamada.masahiro@socionext.com, riku.voipio@linaro.org, treding@nvidia.com, krzk@kernel.org, eric@anholt.net, damm+renesas@opensource.se, ard.biesheuvel@linaro.org, linus.walleij@linaro.org, geert+renesas@glider.be Subject: [PATCH v4 13/20] arm64: dts: hi3660: add sp804 timer node Date: Thu, 15 Jun 2017 11:04:10 +0800 Message-Id: <20170615030417.14059-14-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170615030417.14059-1-guodong.xu@linaro.org> References: <20170615030417.14059-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170614_200709_462100_993351B7 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. 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, hw.wangxiaoyin@hisilicon.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Leo Yan 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>;