Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757182AbeAINSX (ORCPT + 1 other); Tue, 9 Jan 2018 08:18:23 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:52941 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752231AbeAINSW (ORCPT ); Tue, 9 Jan 2018 08:18:22 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Tue, 09 Jan 2018 14:18:02 +0100 From: Stefan Agner To: Dong Aisheng Cc: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com Subject: Re: [PATCH 5/7] ARM: dts: imx6ul: add ARM architected timer In-Reply-To: <20180109093422.GD26312@b29396-OptiPlex-7040> References: <20180102164223.15230-1-stefan@agner.ch> <20180102164223.15230-5-stefan@agner.ch> <20180109093422.GD26312@b29396-OptiPlex-7040> Message-ID: <52375931bc227da59721b0d7ebcf024b@agner.ch> User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 2018-01-09 10:34, Dong Aisheng wrote: > Hi Stefan, > > On Tue, Jan 02, 2018 at 05:42:21PM +0100, Stefan Agner wrote: >> Add per-core ARM architected timer. Unfortunately bootloaders (U-Boot) >> currently do not make the necessary initialization. Also specifing the >> clock manually using the clock-frequency property seems not to help. >> Therefor leave the timer disabled by default for now. >> >> Signed-off-by: Stefan Agner > > Any special purpose to use arch timer? > It is the better option. It supports virtualization and allows direct user space access, e.g. as used in OpenSSL through _armv7_tick. -- Stefan >> --- >> arch/arm/boot/dts/imx6ul.dtsi | 10 ++++++++++ >> 1 file changed, 10 insertions(+) >> >> diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi >> index 993fbdbdd506..4d76923e8f44 100644 >> --- a/arch/arm/boot/dts/imx6ul.dtsi >> +++ b/arch/arm/boot/dts/imx6ul.dtsi >> @@ -110,6 +110,16 @@ >> <0x00a06000 0x2000>; >> }; >> >> + timer { >> + compatible = "arm,armv7-timer"; >> + interrupts = , >> + , >> + , >> + ; >> + interrupt-parent = <&intc>; >> + status = "disabled"; >> + }; >> + >> ckil: clock-cli { >> compatible = "fixed-clock"; >> #clock-cells = <0>; >> -- >> 2.15.1 >>