[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_Jsq+r9fNWqD9O8Kz7Tn7oCaiJv7fSjEJ5QNcf+YLO146wPw@mail.gmail.com>
Date: Sun, 5 Jul 2015 09:39:26 -0500
From: Rob Herring <robherring2@...il.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: "linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Paul Osmialowski <pawelo@...g.net.pl>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Jiri Slaby <jslaby@...e.cz>, Kumar Gala <galak@...eaurora.org>,
Linus Walleij <linus.walleij@...aro.org>,
Mark Rutland <mark.rutland@....com>,
Michael Turquette <mturquette@...libre.com>,
Pawel Moll <pawel.moll@....com>,
Rob Herring <robh+dt@...nel.org>,
Russell King <linux@....linux.org.uk>,
Stephen Boyd <sboyd@...eaurora.org>,
Vinod Koul <vinod.koul@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-clk@...r.kernel.org,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-serial@...r.kernel.org" <linux-serial@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
dmaengine@...r.kernel.org,
Nicolas Pitre <nicolas.pitre@...aro.org>,
Sergei Poselenov <sposelenov@...raft.com>,
Paul Bolle <pebolle@...cali.nl>,
Jingchang Lu <jingchang.lu@...escale.com>,
Yuri Tikhonov <yur@...raft.com>,
Rob Herring <r.herring@...escale.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Uwe Kleine-Koenig <u.kleine-koenig@...gutronix.de>,
Alexander Potashev <aspotashev@...raft.com>,
Frank Li <Frank.Li@...escale.com>,
Thomas Gleixner <tglx@...utronix.de>,
Anson Huang <b20788@...escale.com>
Subject: Re: [PATCH v2 4/9] arm: twr-k70f120m: timer driver for Kinetis SoC
On Tue, Jun 30, 2015 at 3:43 PM, Arnd Bergmann <arnd@...db.de> wrote:
> On Tuesday 30 June 2015 14:27:25 Paul Osmialowski wrote:
>
>> / {
>> + aliases {
>> + pit0 = &pit0;
>> + pit1 = &pit1;
>> + pit2 = &pit2;
>> + pit3 = &pit3;
>> + };
>> +
>> soc {
>> + pit@...37000 {
>> + compatible = "fsl,kinetis-pit-timer";
>> + reg = <0x40037000 0x100>;
>> + clocks = <&mcg_pclk_gate 5 23>;
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> + ranges;
>> +
>> + pit0: timer@...37100 {
>> + reg = <0x40037100 0x10>;
>> + interrupts = <68>;
>> + status = "disabled";
>> + };
>
> I don't think it's necessary to have both an alias
> and a label here. What do you use the alias for?
Yes, don't use aliases. If you really need a specific timer to be used
then there must be some feature it has or doesn't have (e.g. always
on, output compare pin, specific clock, etc.) Put those those
properties in DT if that is the case. See OMAP timers for a complex
example of this.
Rob
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists