From patchwork Mon May 22 04:52:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 9739603 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 4D3B360392 for ; Mon, 22 May 2017 05:09:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E837284C0 for ; Mon, 22 May 2017 05:09:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 301BA284FF; Mon, 22 May 2017 05:09:09 +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 CA759284C0 for ; Mon, 22 May 2017 05:09:08 +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=zcSC6dfSB3bD3+GntMo9YuI8WwoJhnuJpEWcsWTwo2s=; b=dPniEFCTouzx0D2raglTthWzNq AZlTe7greTYZlxbSBfbGKQY3PfKAI88+UU0/D8qwO5hqeqA+2Ux1hQZPgjpAxNKsorc5k0crjcNHb fNx8szFqa1yFh8uvL8Ag7QFD3MU3gd4RnPi9q+X1EiLN+HrT8BFbzw4HpKyC3Ds0K1ixagGjPly+9 Sf3T7ive6AKgKfUKjE6t6Y+SnxVvgCEwcHCsey7hq0pw91YdlMonpLTDKKhIBj1+OOcq2jNwEfSyP FOmzXicyYqGuar0c99eZeS7K8Hu+KKtn9fwcgqZO4HLdRcUCcwgiMv6BQzUIczjuGa9quTyhLevWu 0Rx4rPkA==; 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 1dCfac-0006TI-Gb; Mon, 22 May 2017 05:09:06 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCfaa-0006Px-6z for linux-arm-kernel@bombadil.infradead.org; Mon, 22 May 2017 05:09:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=wJAzihJNdQtMyT+iTeJQtD3nlj+AP+QoQkcKNRMR0+g=; b=LKuQW6EqA3ZdYYdr1E2YFfZ91 nePEZfNOSv5cXJP/f4BsFxpSED+Wg64A8NmiQ3Qf0gvp9uQeI6AY0LRuIDVMNugTBRmtd6gJAkv8r Y4AnGAVnD9htMmUTcBDvAaHv9tldYXZdsTSAjCBLjK61zerw7UjANAr7IvnnfKSbXrBg1z1bTP6Uk 2iwLH1LwWT9K86CCBjIt+3G7GpmN3I9F6BJPjrqLOsSBAbCf2RvZ2n/uht4CDd/C0b9IWDYwc6xI6 N+eCRMbtwEynqjx8CespfSg8JcPpKrBca7WQr7ylSSAsxkK+u5l9TOXxaZHX63GK785BJ6wkTsIbV U2mPHEE7w==; Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCfLg-0001Uf-8W for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 04:53:45 +0000 Received: by mail-pf0-x22f.google.com with SMTP id m17so70094603pfg.3 for ; Sun, 21 May 2017 21:53:19 -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=wJAzihJNdQtMyT+iTeJQtD3nlj+AP+QoQkcKNRMR0+g=; b=APp4w2yxZiJQafvp4ZWU28SRYQ+vs1WjXYU4lkfauIoSgiHobEf/9hikmi4Rr6tyd3 gyYCkxXJxiGF0YwrXyyLBpW/NtBgMT9/AaeQrh4Qqvz8gmPy9WDsYIDnu3aErzYcRrJd pCQEdWQFcOMoEyaz5vbRSMNg0YppsjLUN/jZU= 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=wJAzihJNdQtMyT+iTeJQtD3nlj+AP+QoQkcKNRMR0+g=; b=myqZ6y7YpiJwI0/JAArTP9FCmSokJCkRXQ2Bvs5XTfyQDQBykVVWsU5KRQrzzEqmup 68bIk9PE0Y8SYGZxMEkhapKBIRiGmgTDb+j+3/jL6up5gSPS+uLA10VvYoz5iYtef3IT eI2TdhVcN8f2ay5EDPw2V263OhNGc+Eb6f8pGqh5d6HN3vgpu22sdnbmZ1f9o/lbOBLx i6QEHyJbGOQtJre/rgT7jpQerFD5IHcqwGQxpxuVg0fESwwBFk+8jDjOr/sVVHAEIxoR dQkkEBE0IWwZ2Sj6KMvm1FhRikwNnOx+GcZOgLlvBkuSUxNd+oypmUBNz/HJdDUXGR2H 8o9g== X-Gm-Message-State: AODbwcCuJYVOBjfD8MpoZDXCK/GR9phI/A7Olh8cijR7F1C9h31hhTn9 bDmS0+Q73sHldKua X-Received: by 10.84.228.201 with SMTP id y9mr26942036pli.13.1495428797525; Sun, 21 May 2017 21:53:17 -0700 (PDT) Received: from localhost.localdomain (li637-108.members.linode.com. [106.186.117.108]) by smtp.gmail.com with ESMTPSA id s68sm28837594pgc.5.2017.05.21.21.53.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 21 May 2017 21:53:16 -0700 (PDT) From: Leo Yan To: Wei Xu , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Zhangfei Gao , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Guodong Xu , Haojian Zhuang Subject: [PATCH v3 2/2] arm64: dts: add sp804 timer node for Hi3660 Date: Mon, 22 May 2017 12:52:28 +0800 Message-Id: <1495428748-11153-3-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495428748-11153-1-git-send-email-leo.yan@linaro.org> References: <1495428748-11153-1-git-send-email-leo.yan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170522_055340_484029_244DD9B9 X-CRM114-Status: GOOD ( 11.83 ) 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: 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 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 138fcba..f75c792 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -173,6 +173,17 @@ #clock-cells = <1>; }; + 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"; + }; + ufs: ufs@ff3b0000 { compatible = "jedec,ufs-1.1", "hisilicon,hi3660-ufs"; reg = <0x0 0xff3b0000 0x0 0x1000>, /* 0: HCI standard */