From patchwork Sun Apr 16 20:27:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 9683209 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 350D360138 for ; Sun, 16 Apr 2017 20:34:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22E0D27B81 for ; Sun, 16 Apr 2017 20:34:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1620627D0C; Sun, 16 Apr 2017 20:34:28 +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 8C9F327B81 for ; Sun, 16 Apr 2017 20:34:27 +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=ZJro5UcNCdTmtXmrD43VOME7u9pv8NW8sA08+obWoYc=; b=SLbtu5S7pO4T58kkBOVKAY9CeF yg/CfXCkFziJz/AWxWU48FDjywjjfQgp7tz0ak2ukD7K1Phm7uR+WUI0r19q4q3WoCPtTBmkNt3c2 Jhpzyp0CMzOtlMepaax+OBJvjCXv8CFEkKtLiQk646y4kDzolJ/5tDhs6/j9w39OLyct6xMYYQve6 AptxFS3OxKJKX50GErMd45cDmnNmi7xsq8Ub/y4DrkmEF5UofEaZDt9GwWMgDhPxrqZy161MUDeLr 9YmcfIxYUQycEHN2wmKfsHS3j1nUkwUoW8fmjhb5kX5NMp0FhfJA/uCpYog39d3HkvU6ILkAb4ghA DEnIo/zg==; 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 1czqsG-0004JN-5F; Sun, 16 Apr 2017 20:34:20 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1czqsC-0004G6-31 for linux-arm-kernel@lists.infradead.org; Sun, 16 Apr 2017 20:34:17 +0000 Received: by mail-wm0-x231.google.com with SMTP id y18so6165978wmh.0 for ; Sun, 16 Apr 2017 13:33:55 -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=Dle/NQY282WKPJYupLtRcMj3rM9bSvkdbgQeOrhHrFA=; b=ZZFaoxI5rhtR7y5xAWzTNYw9TfrEctnUCQNHhikyPqsIamdnGaop5qG/wrjkJTNbfL nSB1NLoYVG6lYd8xnjgA1/tT6NzkAw+iJpmuwKfGBdI53VKQwbkyG4q6aZHmcIAR3EmX 1DEtWC23BlP+CDJ61+Cg/MumQ/MBij3Z5vSK4= 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=Dle/NQY282WKPJYupLtRcMj3rM9bSvkdbgQeOrhHrFA=; b=ZHg1FhV2rURw3hB2kyhnsnTaB+Dl4H1LZJeyuFgfZVSvZ73JFnbyf+jpxb9OmBJcYa MVR7X2P6qM8n9dxRYMbJTJgigLhqjw9VJMsZNQnOJPE9fRtby1SPhzz8BoBiX7OWKAVY 5FC/dkeYHbRzdz+AETvjHWFTd92bO6PA8yQponTvo0t0YMk5vv3jotEh0EUgac8uBOe9 jKXNRZAQDaqw7P+jjReW1ktPTlxnA1s7/+odooEJ63uDJJQrMEhyqSO8HokeSQJTDVNs bNWGh5OWxhVa9ZDljbgQRPRxUe0uDUArlrCVlfnMJ0eFpMpvkHDP6P/nmJ6NU21xyEXe HE0w== X-Gm-Message-State: AN3rC/4Q2VGSKr5pfs1o/+EvwnuQsBkuDUnb0ADQky7rb7VP44przxZg E43qi0TjRBlRTh+A X-Received: by 10.28.139.1 with SMTP id n1mr4983680wmd.132.1492374527482; Sun, 16 Apr 2017 13:28:47 -0700 (PDT) Received: from mai.lan ([2001:41d0:fe90:b800:20c0:6248:a385:db35]) by smtp.gmail.com with ESMTPSA id 81sm7732196wmj.9.2017.04.16.13.28.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Apr 2017 13:28:46 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Subject: [PATCH 25/29] ARM: dts: rockchip: Add timer entries to rk3188 SoC Date: Sun, 16 Apr 2017 22:27:15 +0200 Message-Id: <1492374441-23336-25-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492374441-23336-1-git-send-email-daniel.lezcano@linaro.org> References: <20170416202542.GV2078@mai> <1492374441-23336-1-git-send-email-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170416_133416_277264_B9D7D05D X-CRM114-Status: GOOD ( 10.80 ) 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: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Heiko Stuebner , Alexander Kochetkov , Russell King , linux-kernel@vger.kernel.org, "open list:ARM/Rockchip SoC support" , Rob Herring , "moderated list:ARM/Rockchip SoC support" 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: Alexander Kochetkov The patch add two timers to all rk3188 based boards. The first timer is from alive subsystem and it act as a backup for the local timers at sleep time. It act the same as other SoC rockchip timers already present in kernel. The second timer is from CPU subsystem and act as replacement for the arm-global-timer clocksource and sched clock. It run at stable frequency 24MHz. Signed-off-by: Alexander Kochetkov Signed-off-by: Daniel Lezcano Reviewed-by: Heiko Stuebner --- arch/arm/boot/dts/rk3188.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index cf91254..8428fae 100644 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi @@ -106,6 +106,22 @@ }; }; + timer3: timer@2000e000 { + compatible = "rockchip,rk3188-timer", "rockchip,rk3288-timer"; + reg = <0x2000e000 0x20>; + interrupts = ; + clocks = <&cru SCLK_TIMER3>, <&cru PCLK_TIMER3>; + clock-names = "timer", "pclk"; + }; + + timer6: timer@200380a0 { + compatible = "rockchip,rk3188-timer", "rockchip,rk3288-timer"; + reg = <0x200380a0 0x20>; + interrupts = ; + clocks = <&cru SCLK_TIMER6>, <&cru PCLK_TIMER0>; + clock-names = "timer", "pclk"; + }; + i2s0: i2s@1011a000 { compatible = "rockchip,rk3188-i2s", "rockchip,rk3066-i2s"; reg = <0x1011a000 0x2000>;