From patchwork Wed Nov 23 17:29:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 9443985 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 AC6466075F for ; Wed, 23 Nov 2016 17:33:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B66FC2679B for ; Wed, 23 Nov 2016 17:33:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8F9027165; Wed, 23 Nov 2016 17:33:46 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3B1742679B for ; Wed, 23 Nov 2016 17:33:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9bQW-0000I1-To; Wed, 23 Nov 2016 17:33:44 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9bN8-0005P0-Md; Wed, 23 Nov 2016 17:30:16 +0000 Received: by mail-lf0-x241.google.com with SMTP id 98so623400lfs.0; Wed, 23 Nov 2016 09:29:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oDi8+PhiN7E+kJdiIL8gJlE9XBhpQiA7KKBvTFrw6Q8=; b=WrFOkmOv8InT5O7MW9GoxvSjauLnJ5DaapOYeUb0RCdhtz9t+i6QR3PQyCu86wcrC6 p1IQM+iffx07vQbyCjjofS/RugUggHDzQWCbwSNNI+01xUArowK5QunT/5ZfoJcOl/mh PKwAGxVrM+7ubAI8JQJ4Qy3zWe3GF5YFcrlfUnQL3GaGG305o+L82nAdjyPSmtHrExYT BHJi82LSysVPLi1o/zgQoYysng2mR8zuuvZKMszzR8zqHwNDllrkDD3EbsiSRlPKlugB xAiDuW0kWoGOODYtfiaTxdnkBSVMXA/n4aFncHFwui0Na14hAItjM0jKI38PCno74hvO 7tHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oDi8+PhiN7E+kJdiIL8gJlE9XBhpQiA7KKBvTFrw6Q8=; b=Kl3kPY1YK144HBz5yjYR2VfU29UgXmX/4W5Cc7CPizVLduBDDM6sAnlT7WrvfybBrL Ey2MWJSCgC95xVWsxMvD95oBwGf9ayhNrEfhpJzsz58yZFLIWPuIlxMZqzZdTVkpwVtK 4joPVxMcb8ircoGY4MjUp4/5mvQhF5UHsFpz71JuHJtn8Hl06bRYbMs/PwmCn420b3ku iyJxSWu8iymEbIUgdtQQvows9bC64ZgmhyjilUUJBNGz5VEi6x3uvJV3vnG34D6MbBdV yyNocpO0WOltqLufX1UwIet0gG6QDGg9ozV+1WKoZ8QZm8CVgq9p5NzjCBeDcUGND+E3 sAOQ== X-Gm-Message-State: AKaTC02UhcH25vSc3Cs+PJnS62iuFkkp7Y7kp1VXOkrqQc6mfYihVw8mk9ovNvnyyXB5tA== X-Received: by 10.25.28.21 with SMTP id c21mr994125lfc.91.1479922192451; Wed, 23 Nov 2016 09:29:52 -0800 (PST) Received: from ubuntu.lintech.local ([185.35.119.87]) by smtp.gmail.com with ESMTPSA id h71sm7455138ljh.21.2016.11.23.09.29.51 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 09:29:51 -0800 (PST) From: Alexander Kochetkov To: daniel.lezcano@linaro.org, tglx@linutronix.de, heiko@sntech.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 9/9] ARM: dts: rockchip: add timer entries to rk3188.dtsi Date: Wed, 23 Nov 2016 20:29:37 +0300 Message-Id: <1479922177-20136-9-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1479922177-20136-1-git-send-email-al.kochet@gmail.com> References: <1479922177-20136-1-git-send-email-al.kochet@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161123_093015_058147_96127DF8 X-CRM114-Status: UNSURE ( 7.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Kochetkov MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is correct configuration borrowed from 3.0 kernel[1]. timer 6 used as clocksource, timers 0, 1, 4 and 5 used as clockevents. Timers can do interrupts and work as expected with correct driver support. [1] https://github.com/radxa/linux-rockchip/blob/radxa-stable-3.0/arch/arm/mach-rk3188/rk_timer.c Signed-off-by: Alexander Kochetkov --- arch/arm/boot/dts/rk3188.dtsi | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index 31f81b2..e2f88c8 100644 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi @@ -106,6 +106,51 @@ }; }; + timer0: timer@20038000 { + compatible = "rockchip,rk3288-timer"; + reg = <0x20038000 0x20>; + interrupts = ; + clocks = <&cru SCLK_TIMER0>, <&cru PCLK_TIMER0>; + clock-names = "timer", "pclk"; + status = "disabled"; + }; + + timer1: timer@20038020 { + compatible = "rockchip,rk3288-timer"; + reg = <0x20038020 0x20>; + interrupts = ; + clocks = <&cru SCLK_TIMER1>, <&cru PCLK_TIMER0>; + clock-names = "timer", "pclk"; + status = "disabled"; + }; + + timer4: timer@20038060 { + compatible = "rockchip,rk3288-timer"; + reg = <0x20038060 0x20>; + interrupts = ; + clocks = <&cru SCLK_TIMER4>, <&cru PCLK_TIMER0>; + clock-names = "timer", "pclk"; + status = "disabled"; + }; + + timer5: timer@20038080 { + compatible = "rockchip,rk3288-timer"; + reg = <0x20038080 0x20>; + interrupts = ; + clocks = <&cru SCLK_TIMER5>, <&cru PCLK_TIMER0>; + clock-names = "timer", "pclk"; + status = "disabled"; + }; + + timer6: timer@200380A0 { + compatible = "rockchip,rk3288-timer"; + reg = <0x200380A0 0x20>; + interrupts = ; + clocks = <&cru SCLK_TIMER6>, <&cru PCLK_TIMER0>; + clock-names = "timer", "pclk"; + status = "disabled"; + }; + i2s0: i2s@1011a000 { compatible = "rockchip,rk3188-i2s", "rockchip,rk3066-i2s"; reg = <0x1011a000 0x2000>;