From patchwork Wed Mar 22 15:48:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 9639267 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 65E60602CB for ; Wed, 22 Mar 2017 15:50:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5697628451 for ; Wed, 22 Mar 2017 15:50:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B6E928460; Wed, 22 Mar 2017 15:50:18 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 C1E2B28451 for ; Wed, 22 Mar 2017 15:50:17 +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=FH2rjvcNEh0jJqOycMERyjUjwkty05PSSdgH3NqSeS4=; b=m/HchQnOdei8YkN+Of0JiToCLb wF15tXQyEZ05QZxDNnWtkFa3XBUr1U7nVLxsBAIsi6dRbyxQLe4EHWqy+G9p8deQzRrIc/+zufXAl IwIgOj3FxRk5UT3raX/38Q9y8CTBIogSWzpYeaXhJ6Pvkx7qwu3ZpXUW2XIziBowle0RQ1dPktIa9 3qK3r/2XTXCK+UC3tJ2cEJgIQ9k/4pt9kaqZBAYjBNVZJ1FZCyQ9jMIRprDqEq/o/vpo1P0eBuu3U BvhjlZJS97oIm03tc4VoPOUybjyRH4sWmMensTC9IiKIF3yPXCHnQUDZPC+qkXYOOVLIqMwJq9/vi uqdbml3g==; 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 1cqiWe-00037x-U3; Wed, 22 Mar 2017 15:50:16 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqiVX-0000eg-W7; Wed, 22 Mar 2017 15:49:16 +0000 Received: by mail-wm0-x243.google.com with SMTP id u132so10752403wmg.1; Wed, 22 Mar 2017 08:48:47 -0700 (PDT) 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; bh=S0Epz0YaYGOwUXr+qQjCpmP0cukBnmq7/GUOGROsP6Q=; b=BiT6sSkJjV0hNIdEla8ITMocM1NWi9HZejzAgW62ICySexMBTvJR/9EnBHSrmmiZKX nCf3Uc8feryP0gtuIT/L6DXUG2QALXp4ij1CLsfDXK1kLJDHsO86xMJFcRHPnnYrMpHJ rf/QxRRxcAX2F+Jw79WmdeMSN2zH6pgpbiJ5nZKDnIalz3kWLNFjph7iLp4T1yrbAohg rylO0bHzj2gUjSHaBnOO2M3F9q/TDphv4obHYJWWTZzcBDppmXodU6y59kbSTTpPsHRV fs5Klb58fB0a4hDoPTCu5YOwtHKaAPH1NXGrM4K/fFLgDQoZluLkC9PP8Q31eziplnpL 4d7w== 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=S0Epz0YaYGOwUXr+qQjCpmP0cukBnmq7/GUOGROsP6Q=; b=HupCoHzJvyP64GrKdKx4TentuOmiV1zkzgNcYKIKI2p2knVd2Y4YfBsZmHEuhDrk5M vl/6eRbn3kfRa6iFnhBDPQC3uyyEknVEiwhvlx2E1aoUXigjkG6b7gyMniNUhDye/gbh z862SiYbnMX9gCbeYOs1L2y9Hu1VhfZcEaqJ51yvXx/8EYzyD7yl5u8K5JY8oHhAwJH3 fC/l1dfugIN+dkIDTtitevl5jFmyxtjlFZe9XlijNHNXGZCblPLIcCSoqziG7UuE5F+l kBhUjvQRi29SGfuuHhIUuVnCoj04g2XM0THu3XjGjMxviIgSb07HkopdpTvIZrdDpTY4 Payw== X-Gm-Message-State: AFeK/H0T7jCPKeGZSS2PFiZ/5NokbrVbdUA4hpyL3SWpJXAtRjycqu+3WwGNftj9ssi5YA== X-Received: by 10.25.225.216 with SMTP id l85mr11089723lfk.129.1490197726166; Wed, 22 Mar 2017 08:48:46 -0700 (PDT) Received: from ubuntu.lintech.local ([185.35.119.87]) by smtp.gmail.com with ESMTPSA id p27sm591898lfg.5.2017.03.22.08.48.44 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Mar 2017 08:48:45 -0700 (PDT) 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 v7 6/7] ARM: dts: rockchip: add timer entries to rk3188 SoC Date: Wed, 22 Mar 2017 18:48:33 +0300 Message-Id: <1490197714-25415-7-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1490197714-25415-1-git-send-email-al.kochet@gmail.com> References: <1490197714-25415-1-git-send-email-al.kochet@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170322_084908_707066_CA6DEBEF X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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 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 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 Reviewed-by: Heiko Stuebner --- arch/arm/boot/dts/rk3188.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index b3e6a30..a20d501 100644 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi @@ -106,6 +106,24 @@ }; }; + 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"; + clockevent; + }; + + 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"; + clocksource; + }; + i2s0: i2s@1011a000 { compatible = "rockchip,rk3188-i2s", "rockchip,rk3066-i2s"; reg = <0x1011a000 0x2000>;