Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760429AbcJRN5e (ORCPT ); Tue, 18 Oct 2016 09:57:34 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:35180 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754966AbcJRN5Y (ORCPT ); Tue, 18 Oct 2016 09:57:24 -0400 Date: Tue, 18 Oct 2016 08:57:22 -0500 From: Rob Herring To: Noam Camus Cc: mark.rutland@arm.com, daniel.lezcano@linaro.org, tglx@linutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, John Stultz Subject: Re: [PATCH 3/3] clocksource: Add clockevent support to NPS400 driver Message-ID: <20161018135722.oflcjm5hfy6eugiy@rob-hp-laptop> References: <1476370350-3853-1-git-send-email-noamca@mellanox.com> <1476370350-3853-4-git-send-email-noamca@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476370350-3853-4-git-send-email-noamca@mellanox.com> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 933 Lines: 25 On Thu, Oct 13, 2016 at 05:52:30PM +0300, Noam Camus wrote: > From: Noam Camus > > Till now we used clockevent from generic ARC driver. > This was enough as long as we worked with simple multicore SoC. > When we are working with multithread SoC each HW thread can be > scheduled to receive timer interrupt using timer mask register > (TSI1). > > This patch will provide a way to control clock events per > HW thread. > > Driver can be used from device tree by: > compatible = "ezchip,nps400-timer0" <-- for clocksource > compatible = "ezchip,nps400-timer1" <-- for clockevent You're letting Linux details define the binding. Are these blocks different (the block itself, not connections to the block like interrupts)? If you need a particular timer instance to be used, then describe whatever is the difference in the h/w. For example, the clockevent timer has to be the timer with an interrupt. Rob