From patchwork Tue Nov 29 13:45:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 9452193 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 6CF3C6071C for ; Tue, 29 Nov 2016 14:22:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 605922830A for ; Tue, 29 Nov 2016 14:22:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54F0728339; Tue, 29 Nov 2016 14:22:04 +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=ham 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 1B5E02830A for ; Tue, 29 Nov 2016 14:22:04 +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 1cBjGK-0008IL-Nf; Tue, 29 Nov 2016 14:20:00 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cBjFu-00089g-R0; Tue, 29 Nov 2016 14:19:34 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by merlin.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cBijD-0002Li-V4; Tue, 29 Nov 2016 13:45:48 +0000 Received: by mail-lf0-x241.google.com with SMTP id 98so12666466lfs.0; Tue, 29 Nov 2016 05:45:30 -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=TgLovTdsM6ib3EZtzv1wfAS3aUGKtQOjng1vrsJdoXk=; b=AdznhkwYL0iOaXGjrS9e8gLMnEGPFIK8SCynayCOFZkPguugzaqKpjox28t4hJIYX6 rruwwJBgEF/sGi7RGUQ5Ppzd1TA7K+omiQdngv5Kx3Au9LjC52YIvQufy4SDGF3B2FbG 85rB8EIOHrYUS6icTna2aqpldHSXM8+knMJdks7GPWcgn0FMkbqI3HCa+sF04U+VA1Bq D2iI8iVD72faIHAwOIA0UOSVrtp3fsSLmKW7Diu7QWMYFc8XlinMC2eRGrRVmrSwY4Bs hBEYQ49yCUuSZ19AdYDXM8KCum73V+8Ui3JvfA6bdHRKBDxfTwYRW+7Kkh4zLitAgHuf +9MA== 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=TgLovTdsM6ib3EZtzv1wfAS3aUGKtQOjng1vrsJdoXk=; b=CU/7f/zmjdv0L/El/voGa2YFz3U+V5b5b/IldGhhRm5m1KdPhZivdVk+7nzt1kusr1 dBK77VHtX966kyRfOiaMZEzN/oY5TuLE2hGYncqwWJCU3w9QiOMgpUfuzGmHTaEnBDqK Q3m7YBuqtHxCrdDb8wfcL6GHlL1sR+8T88PgeOLYmcMSJ68+W4y82SmYXulTn8i75UaK IapJBMk4dO9EMpZM0SOUNVjDxYgOgDIa2tUYKUfdaQjzbgvJA20ik553M7UY57rlzHS3 uUiL8xZgnK6w41xY7Xkb0v7TCpR4ooacta1a/BioJ/Bg4EEQX69QbAfJsNIDETry3WxD 4zBA== X-Gm-Message-State: AKaTC00j6tz6L+4j9vZtqmBnhI3eA0Nyf60UAkLjsx1JY8nitTcyTNMrr7xEXc11SCJbxA== X-Received: by 10.46.14.17 with SMTP id 17mr8703980ljo.16.1480427127989; Tue, 29 Nov 2016 05:45:27 -0800 (PST) Received: from ubuntu.lintech.local ([185.35.119.87]) by smtp.gmail.com with ESMTPSA id y3sm250543lfj.42.2016.11.29.05.45.26 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Nov 2016 05:45:27 -0800 (PST) From: Alexander Kochetkov To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH v3 04/13] ARM: dts: rockchip: add timer entries to rk3188 dtsi Date: Tue, 29 Nov 2016 16:45:09 +0300 Message-Id: <1480427118-5126-5-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1480427118-5126-1-git-send-email-al.kochet@gmail.com> References: <1480343486-25539-1-git-send-email-al.kochet@gmail.com> <1480427118-5126-1-git-send-email-al.kochet@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161129_084548_277496_D1F9E340 X-CRM114-Status: GOOD ( 10.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Huang Tao , Heiko Stuebner , Alexander Kochetkov , Daniel Lezcano , Russell King , Rob Herring , Thomas Gleixner , Caesar Wang 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 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 timers on other rockchip chips already present in kernel. The second timer is from CPU subsystem and act as replacement for the arm-global-timer clocksource. It run as stable frequency 24MHz. Signed-off-by: Alexander Kochetkov --- 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 31f81b2..0dc52fe 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>;