Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751991AbbGEOj7 (ORCPT ); Sun, 5 Jul 2015 10:39:59 -0400 Received: from mail-yk0-f173.google.com ([209.85.160.173]:35015 "EHLO mail-yk0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750854AbbGEOjr (ORCPT ); Sun, 5 Jul 2015 10:39:47 -0400 MIME-Version: 1.0 In-Reply-To: <2939807.q7WvOoYzDX@wuerfel> References: <1435667250-28299-1-git-send-email-pawelo@king.net.pl> <1435667250-28299-5-git-send-email-pawelo@king.net.pl> <2939807.q7WvOoYzDX@wuerfel> From: Rob Herring Date: Sun, 5 Jul 2015 09:39:26 -0500 Message-ID: Subject: Re: [PATCH v2 4/9] arm: twr-k70f120m: timer driver for Kinetis SoC To: Arnd Bergmann Cc: "linux-arm-kernel@lists.infradead.org" , Paul Osmialowski , Greg Kroah-Hartman , Ian Campbell , Jiri Slaby , Kumar Gala , Linus Walleij , Mark Rutland , Michael Turquette , Pawel Moll , Rob Herring , Russell King , Stephen Boyd , Vinod Koul , "linux-kernel@vger.kernel.org" , linux-clk@vger.kernel.org, "linux-gpio@vger.kernel.org" , "linux-serial@vger.kernel.org" , "devicetree@vger.kernel.org" , dmaengine@vger.kernel.org, Nicolas Pitre , Sergei Poselenov , Paul Bolle , Jingchang Lu , Yuri Tikhonov , Rob Herring , Geert Uytterhoeven , Uwe Kleine-Koenig , Alexander Potashev , Frank Li , Thomas Gleixner , Anson Huang Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1530 Lines: 42 On Tue, Jun 30, 2015 at 3:43 PM, Arnd Bergmann wrote: > On Tuesday 30 June 2015 14:27:25 Paul Osmialowski wrote: > >> / { >> + aliases { >> + pit0 = &pit0; >> + pit1 = &pit1; >> + pit2 = &pit2; >> + pit3 = &pit3; >> + }; >> + >> soc { >> + pit@40037000 { >> + compatible = "fsl,kinetis-pit-timer"; >> + reg = <0x40037000 0x100>; >> + clocks = <&mcg_pclk_gate 5 23>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges; >> + >> + pit0: timer@40037100 { >> + 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/