From patchwork Tue Jan 24 12:16:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 9535097 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 149896042C for ; Tue, 24 Jan 2017 12:20:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 058F428119 for ; Tue, 24 Jan 2017 12:20:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE0B82819A; Tue, 24 Jan 2017 12:20:19 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no 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 A29A528179 for ; Tue, 24 Jan 2017 12:20:19 +0000 (UTC) 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 1cW059-0000XU-9j; Tue, 24 Jan 2017 12:20:15 +0000 Received: from mail-lf0-f66.google.com ([209.85.215.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cW03D-0007cM-9S; Tue, 24 Jan 2017 12:18:17 +0000 Received: by mail-lf0-f66.google.com with SMTP id x1so17098929lff.0; Tue, 24 Jan 2017 04:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UJ67V+3qNFJNBFjwG3wLCI+yUXGwAsMOuFpsAkCqmG4=; b=myOTPUz7hu/gFNwE1bC42ErjczLBWnbg9Zg3SOdqfIL5XdmnxDhgn7NJ3+W2ceER4B gxYNDVbovvsDWNS97DIZiKWIws1niH49JuIowrFQZAfRMwC2V/tHw9Vo881HSABNkTD6 20BCUVCjlNTUVHo2Z7hRMiEvnQzUbAoAgYelU6YiXHNrETHgHbwVdu4mdSjGfNsdru0J PqCxoIbCMKYfn5VULWdILC+DWniM1isdK3rKnz3NUbla9JxPma3gnSsTq6NIXL8syeR9 ybBMX1XJmOvm8/5/4Rlg/5eT6QJS64eFQ7yDRaZdvEMLFEq18tg9xGS3qaoJQ5L/6oAM nUFA== 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:mime-version:content-transfer-encoding; bh=UJ67V+3qNFJNBFjwG3wLCI+yUXGwAsMOuFpsAkCqmG4=; b=iuH0SJ7jw6KTIpWpEqCSdRdmyUBswlaIPvRncwu/8hIk6itrH5JzRu5IdZf9xjMZjI uQpY/BJpaRpbsiKpaIk+bvZoBT+2dLZYI14VKvPlEYulnY8GjC+hVObzZ/8A4dx8U1zu LO+o7nQARMQ8hhlkbMJ9PZqDRV3DM6UeUaEP8Ff1kRWQseVmixVjbirFr2M6hXD8MMtQ 8RR6IgxTRVI5dizHBSSFRBsOD+zho597yMbI2EYddvE3XM1V9QAOz7W1h0ZIvP7CHLng 0ZXB6cbUtOuwrVogx7RYJsZ2+DeINXpOuznCmLrB5u+xrPjb3P5pAVULY/gEume1Revf 3ndQ== X-Gm-Message-State: AIkVDXJZRlXCfaTG3cNLcOQh+JPMg2KowQRPChDWTPrZMkJ+94q1BKQfEvYGBej9clRcGQ== X-Received: by 10.25.26.201 with SMTP id a192mr9823247lfa.154.1485260213307; Tue, 24 Jan 2017 04:16:53 -0800 (PST) Received: from ubuntu.lintech.local ([185.35.119.87]) by smtp.gmail.com with ESMTPSA id e86sm7348934lji.32.2017.01.24.04.16.52 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Jan 2017 04:16:52 -0800 (PST) From: Alexander Kochetkov To: Daniel Lezcano , Heiko Stuebner , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH v5 3/8] ARM: dts: rockchip: add timer entries to rk3188 SoC Date: Tue, 24 Jan 2017 15:16:38 +0300 Message-Id: <1485260203-14216-4-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1485260203-14216-1-git-send-email-al.kochet@gmail.com> References: <1485260203-14216-1-git-send-email-al.kochet@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170124_041815_550106_AE96FBFC X-CRM114-Status: GOOD ( 10.63 ) 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 , Huang Tao , Alexander Kochetkov , Russell King , Rob Herring , Thomas Gleixner , Caesar Wang 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 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 Reviwed-by: Heiko Stübner --- 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 869e189..bcf8e03 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>;