Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932866AbcJROcw (ORCPT ); Tue, 18 Oct 2016 10:32:52 -0400 Received: from mail-db5eur01on0063.outbound.protection.outlook.com ([104.47.2.63]:40224 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933466AbcJROci (ORCPT ); Tue, 18 Oct 2016 10:32:38 -0400 From: Noam Camus To: Rob Herring 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 Thread-Topic: [PATCH 3/3] clocksource: Add clockevent support to NPS400 driver Thread-Index: AQHSJWHNAIhk4uM0/Emszg2O/1pKxaCuRFQAgAAD//A= Date: Tue, 18 Oct 2016 14:32:35 +0000 Message-ID: References: <1476370350-3853-1-git-send-email-noamca@mellanox.com> <1476370350-3853-4-git-send-email-noamca@mellanox.com> <20161018135722.oflcjm5hfy6eugiy@rob-hp-laptop> In-Reply-To: <20161018135722.oflcjm5hfy6eugiy@rob-hp-laptop> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=noamca@mellanox.com; x-originating-ip: [212.179.42.66] x-ms-office365-filtering-correlation-id: ee34d7a4-f3e4-46f8-f943-08d3f7639aaa x-microsoft-exchange-diagnostics: 1;DB6PR0501MB2518;7:hs5rrEG1Ym+3nYIQFbA+2Q4SBvEb/bwb2mpHiLrgCVgCpm2u/WKMH7HqvJ1NZMFi3ATuB+yex/97Vei5zJ/Iumbja4CRtQdLr0cV+ix3TJB9NhofbE3cJ9DlOT397IF6oPtm9aaoiyATfyBvw/PDEfTjpFaNbGKoDdmqfODkhn9RtkCYJChNElNH1HpoHBuTWLu32JREfeSoG+qY5eLBgI7jZtW0dA/6A2A3xur69CGsaI6sbc8pm6RiZRAdRB7vfAC8Awe+owSel6D1QPjsPV7lq2ydADHFadXHP4lnBNOmU2mSqq32k98+qfvA9WcejhJn4UAsv/Ew4kkrRtr2P826sMrYpUqkiF7363uAV6Q= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0501MB2518; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:DB6PR0501MB2518;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0501MB2518; x-forefront-prvs: 00997889E7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(189002)(377454003)(199003)(50986999)(19580395003)(3280700002)(3660700001)(8676002)(19580405001)(74316002)(76576001)(106356001)(81156014)(122556002)(7736002)(7846002)(4326007)(305945005)(87936001)(9686002)(81166006)(5002640100001)(11100500001)(86362001)(2906002)(2950100002)(2900100001)(77096005)(92566002)(110136003)(97736004)(6116002)(54356999)(5660300001)(66066001)(105586002)(6916009)(189998001)(101416001)(68736007)(76176999)(106116001)(10400500002)(3846002)(33656002)(7696004)(586003)(102836003)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2518;H:DB6PR0501MB2518.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Oct 2016 14:32:35.6179 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2518 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id u9IEWtUs011010 Content-Length: 949 Lines: 18 > From: Rob Herring [mailto:robh@kernel.org] > Sent: Tuesday, October 18, 2016 4:57 PM >> >> 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. Yes, blocks are different. The difference is that only second timer instance are actually producing timer interrupt served by Linux for the clockevent framework. Please note that the numbering used here for timer (i.e. 0 or 1) are derived from HW blocks and are not any Linux detail I used for binding definition (It is a note at this patch set cover letter). Noam