From patchwork Wed Mar 22 15:48:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 9639309 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 2A2356020B for ; Wed, 22 Mar 2017 16:01:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1AC5128456 for ; Wed, 22 Mar 2017 16:01:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F76B2845C; Wed, 22 Mar 2017 16:01:55 +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=unavailable 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 A8D7E28456 for ; Wed, 22 Mar 2017 16:01:54 +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=OQtjXEQliFmm7+ogQhMnclKpHuSoYUIHOVU3p6BLA3E=; b=dbueQlpCTeDIz76EvJaMgKfeOm ov87WkH72v7O9NFaDGJC4bt/PFc2DmgOE1WSdXXOrWCtx3iCzQdC8KcnCYBGG+/yKLvPJuMd/A3Ov Zt8UXwLBhOH3HtxxQ5VZ/VVQ1uDtZbfNpiaEZ2chRzwk25h/+73AYCwic0HBoDwe0unODHc037JIh M2TMgZc7czgwEanMUtqNzCueDr8M9LJBKm1bZRZmhR7G3pzGCUA5eybryje6SSS5nNBrwQwmOP7aA 85uWbCQNHbk6mcxcnBLBNp7f7W9AhuQXgx0Y94CpvdFw9ZlLshwCjTiSjL3nq1TJPtSw2G/2+VgMs vUpQ9LZQ==; 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 1cqihs-0001K4-1O; Wed, 22 Mar 2017 16:01:52 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqiVR-0000eW-On; Wed, 22 Mar 2017 15:49:03 +0000 Received: by mail-wm0-x242.google.com with SMTP id x124so10796455wmf.3; Wed, 22 Mar 2017 08:48:44 -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=pKX0aZgBoouwBAnw92BEUVsclCcqSwsWjniYE3ehv5s=; b=JjUDjg9qhBIAj5UaQAfjLM/7chuRglEpWcvx2duTBTK22xcUvLszBfXglMFGxgWnRS g6VLQEFuSGyI4agGsCHRE62nHs4l81yKbMXHcABPOPgh6kEY826M68p/aMXeiCjAkoG/ bj0vn0VYjHxs1HVmCdMBEvWJrfXD/VXmkCN+zrcpDV0f5JKINMoSoPODtZ0hbKfahc4C uRxvb/MhjRr0C97OORNfkpr11YjbUnf7O0S0DsMRKM1TWADwz8tbhUMT9SoYRjNur1i/ m/wgK/wesTDR5lQbBZ4BvzJCQNyvh7vfO/nGrYb8FeRHk4bz+QVeUBfs7cMNy7/gI6QL ptRw== 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=pKX0aZgBoouwBAnw92BEUVsclCcqSwsWjniYE3ehv5s=; b=cZ0WNnIpL6ZvU10+iH2uxg8t4Qgb3963EzfwKsEj3vdipZgfk9QByMKf4nTVyDwiTs ygqhAfIVBx9YhUyuWMKzQ5g+/3uDSeOfqrRj1V6CVfq0Lvztt7dqcqH78mZpSL59qLdG rfgh6SIJlsoyIX2Cmwa5Pg+3Uz8PzqpTFCSIM4QFKR1E7WgzdnKTh+rhR9vroEaz96g+ bmtTDXsyb5fTKABbnhIoh7bRi0yCCyAeSHuzb2o6HlDSa6iOE0TfNay3ob+t2j3hjYhn AJWldkU2Znhb+W3HPtkCQ86KdFt2WN+lbPc9BB2bJZfB9tfdoKnoL6D4QPCfLFbTjx6V yeNw== X-Gm-Message-State: AFeK/H04P2FymV8MwDLqreMQoy4wT7EcNyOwuHOISzI0qwu+ETxDJCGnAheT+8VjfcS3uQ== X-Received: by 10.25.228.131 with SMTP id x3mr10782978lfi.125.1490197723609; Wed, 22 Mar 2017 08:48:43 -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.42 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Mar 2017 08:48:43 -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 4/7] ARM: dts: rockchip: add clockevent attribute to rockchip timers Date: Wed, 22 Mar 2017 18:48:31 +0300 Message-Id: <1490197714-25415-5-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_084901_979467_AFB27BBF X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. 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 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 All rockchip timers present in the DT act as clockevent. It is possible to specify timer role using DT attribute. Mark them accordingly. Also this patch specify that for timer should be called init function specified with CLOCKEVENT_OF_DECLARE(). Without the commit boot warnings will appear because clock framework will try initialize them as clocksource. Signed-off-by: Alexander Kochetkov --- arch/arm/boot/dts/rk3036.dtsi | 1 + arch/arm/boot/dts/rk322x.dtsi | 1 + arch/arm/boot/dts/rk3288.dtsi | 1 + arch/arm64/boot/dts/rockchip/rk3368.dtsi | 1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index 843d2be..a04bb5a 100644 --- a/arch/arm/boot/dts/rk3036.dtsi +++ b/arch/arm/boot/dts/rk3036.dtsi @@ -353,6 +353,7 @@ interrupts = ; clocks = <&xin24m>, <&cru PCLK_TIMER>; clock-names = "timer", "pclk"; + clockevent; }; pwm0: pwm@20050000 { diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index 2a4eee2..2250640 100644 --- a/arch/arm/boot/dts/rk322x.dtsi +++ b/arch/arm/boot/dts/rk322x.dtsi @@ -328,6 +328,7 @@ interrupts = ; clocks = <&xin24m>, <&cru PCLK_TIMER>; clock-names = "timer", "pclk"; + clockevent; }; cru: clock-controller@110e0000 { diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 91c4b3c..f45b7ad 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -217,6 +217,7 @@ interrupts = ; clocks = <&xin24m>, <&cru PCLK_TIMER>; clock-names = "timer", "pclk"; + clockevent; }; display-subsystem { diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi index 4f44d11..054dadd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi @@ -673,6 +673,7 @@ compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer"; reg = <0x0 0xff810000 0x0 0x20>; interrupts = ; + clockevent; }; gic: interrupt-controller@ffb71000 {