All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Roger Quadros <rogerq@ti.com>
Cc: "Menon, Nishanth" <nm@ti.com>,
	grygorii.strashko@ti.com, linux@arm.linux.org.uk,
	devicetree-discuss@lists.ozlabs.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org, balbi@ti.com,
	linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs
Date: Tue, 9 Apr 2013 10:43:20 -0700	[thread overview]
Message-ID: <20130409174319.GP10155@atomide.com> (raw)
In-Reply-To: <20130409164928.GL10155@atomide.com>

* Tony Lindgren <tony@atomide.com> [130409 09:54]:
> * Roger Quadros <rogerq@ti.com> [130409 03:00]:
> > On 04/05/2013 06:58 PM, Tony Lindgren wrote:
> > > 
> > > Can't you just use the clock name there to get it?
> > 
> > In device tree we don't pass around clock names. You can either get
> > a phandle or an index to the clock.
> > 
> > e.g. Documentation/devicetree/bindings/clock/imx31-clock.txt
> 
> Yes I understand that. But the driver/clock/omap driver can just
> remap the DT device initially so the board specific clock is
> found from the clock alias table. Basically initially a passthrough
> driver that can be enhanced to parse DT clock bindings and load
> data from /lib/firmware.

Actually probably the driver/clock/omap can even do even less
initially. There probably even no need to remap clocks there.

As long as the DT clock driver understands that a board specific
auxclk is specified in the DT it can just call clk_add_alias() so
the driver will get the right auxclk from cclock44xx_data.c.

Then other features can be added later on like to allocate a
clock entirely based on the binding etc.

Regards,

Tony 

WARNING: multiple messages have this Message-ID (diff)
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs
Date: Tue, 9 Apr 2013 10:43:20 -0700	[thread overview]
Message-ID: <20130409174319.GP10155@atomide.com> (raw)
In-Reply-To: <20130409164928.GL10155@atomide.com>

* Tony Lindgren <tony@atomide.com> [130409 09:54]:
> * Roger Quadros <rogerq@ti.com> [130409 03:00]:
> > On 04/05/2013 06:58 PM, Tony Lindgren wrote:
> > > 
> > > Can't you just use the clock name there to get it?
> > 
> > In device tree we don't pass around clock names. You can either get
> > a phandle or an index to the clock.
> > 
> > e.g. Documentation/devicetree/bindings/clock/imx31-clock.txt
> 
> Yes I understand that. But the driver/clock/omap driver can just
> remap the DT device initially so the board specific clock is
> found from the clock alias table. Basically initially a passthrough
> driver that can be enhanced to parse DT clock bindings and load
> data from /lib/firmware.

Actually probably the driver/clock/omap can even do even less
initially. There probably even no need to remap clocks there.

As long as the DT clock driver understands that a board specific
auxclk is specified in the DT it can just call clk_add_alias() so
the driver will get the right auxclk from cclock44xx_data.c.

Then other features can be added later on like to allocate a
clock entirely based on the binding etc.

Regards,

Tony 

WARNING: multiple messages have this Message-ID (diff)
From: Tony Lindgren <tony@atomide.com>
To: Roger Quadros <rogerq@ti.com>
Cc: "Menon, Nishanth" <nm@ti.com>,
	linux-usb@vger.kernel.org, linux@arm.linux.org.uk,
	devicetree-discuss@lists.ozlabs.org,
	linux-kernel@vger.kernel.org, balbi@ti.com,
	grygorii.strashko@ti.com, linux-omap@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs
Date: Tue, 9 Apr 2013 10:43:20 -0700	[thread overview]
Message-ID: <20130409174319.GP10155@atomide.com> (raw)
In-Reply-To: <20130409164928.GL10155@atomide.com>

* Tony Lindgren <tony@atomide.com> [130409 09:54]:
> * Roger Quadros <rogerq@ti.com> [130409 03:00]:
> > On 04/05/2013 06:58 PM, Tony Lindgren wrote:
> > > 
> > > Can't you just use the clock name there to get it?
> > 
> > In device tree we don't pass around clock names. You can either get
> > a phandle or an index to the clock.
> > 
> > e.g. Documentation/devicetree/bindings/clock/imx31-clock.txt
> 
> Yes I understand that. But the driver/clock/omap driver can just
> remap the DT device initially so the board specific clock is
> found from the clock alias table. Basically initially a passthrough
> driver that can be enhanced to parse DT clock bindings and load
> data from /lib/firmware.

Actually probably the driver/clock/omap can even do even less
initially. There probably even no need to remap clocks there.

As long as the DT clock driver understands that a board specific
auxclk is specified in the DT it can just call clk_add_alias() so
the driver will get the right auxclk from cclock44xx_data.c.

Then other features can be added later on like to allocate a
clock entirely based on the binding etc.

Regards,

Tony 

  reply	other threads:[~2013-04-09 17:43 UTC|newest]

Thread overview: 117+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-19 14:26 [RFC][PATCH 0/2] Device tree support for OMAP4 SCRM clocks Roger Quadros
2013-03-19 14:26 ` Roger Quadros
2013-03-19 14:26 ` Roger Quadros
     [not found] ` <1363703220-4777-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>
2013-03-19 14:26   ` [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs Roger Quadros
2013-03-19 14:26     ` Roger Quadros
2013-03-19 14:26     ` Roger Quadros
     [not found]     ` <1363703220-4777-2-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>
2013-03-19 14:30       ` Roger Quadros
2013-03-19 14:30         ` Roger Quadros
2013-03-19 14:30         ` Roger Quadros
2013-03-21 13:08     ` Rajendra Nayak
2013-03-21 13:08       ` Rajendra Nayak
2013-03-21 13:08       ` Rajendra Nayak
     [not found]       ` <514B0650.5070406-l0cyMroinI0@public.gmane.org>
2013-03-21 13:54         ` Roger Quadros
2013-03-21 13:54           ` Roger Quadros
2013-03-21 13:54           ` Roger Quadros
2013-03-21 14:04           ` Rajendra Nayak
2013-03-21 14:04             ` Rajendra Nayak
2013-03-21 14:04             ` Rajendra Nayak
2013-03-21 14:11             ` Roger Quadros
2013-03-21 14:11               ` Roger Quadros
2013-03-21 14:11               ` Roger Quadros
2013-03-21 14:07     ` Roger Quadros
2013-03-21 14:07       ` Roger Quadros
2013-03-21 14:07       ` Roger Quadros
2013-03-26 10:23     ` [PATCH v2] " Roger Quadros
2013-03-26 10:23       ` Roger Quadros
2013-03-26 10:23       ` Roger Quadros
     [not found]       ` <1364293408-20677-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>
2013-04-02  8:23         ` Roger Quadros
2013-04-02  8:23           ` Roger Quadros
2013-04-02  8:23           ` Roger Quadros
     [not found]           ` <515A958B.5080905-l0cyMroinI0@public.gmane.org>
2013-04-05  8:47             ` Roger Quadros
2013-04-05  8:47               ` Roger Quadros
2013-04-05  8:47               ` Roger Quadros
2013-04-05  8:48               ` Nishanth Menon
2013-04-05  8:48                 ` Nishanth Menon
2013-04-05  8:48                 ` Nishanth Menon
2013-04-05  8:50                 ` Roger Quadros
2013-04-05  8:50                   ` Roger Quadros
2013-04-05  8:50                   ` Roger Quadros
2013-04-03 23:42     ` [RFC][PATCH 1/2] " Tony Lindgren
2013-04-03 23:42       ` Tony Lindgren
2013-04-04  5:20       ` Rajendra Nayak
2013-04-04  5:20         ` Rajendra Nayak
2013-04-04  5:20         ` Rajendra Nayak
2013-04-04 16:33         ` Tony Lindgren
2013-04-04 16:33           ` Tony Lindgren
     [not found]       ` <20130403234242.GE10155-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2013-04-04  7:35         ` Roger Quadros
2013-04-04  7:35           ` Roger Quadros
2013-04-04  7:35           ` Roger Quadros
2013-04-04 16:41           ` Tony Lindgren
2013-04-04 16:41             ` Tony Lindgren
2013-04-05 10:39             ` Roger Quadros
2013-04-05 10:39               ` Roger Quadros
2013-04-05 10:39               ` Roger Quadros
2013-04-05 15:58               ` Tony Lindgren
2013-04-05 15:58                 ` Tony Lindgren
2013-04-05 15:58                 ` Tony Lindgren
2013-04-09  9:55                 ` Roger Quadros
2013-04-09  9:55                   ` Roger Quadros
2013-04-09  9:55                   ` Roger Quadros
2013-04-09 16:49                   ` Tony Lindgren
2013-04-09 16:49                     ` Tony Lindgren
2013-04-09 17:43                     ` Tony Lindgren [this message]
2013-04-09 17:43                       ` Tony Lindgren
2013-04-09 17:43                       ` Tony Lindgren
     [not found]                       ` <20130409174319.GP10155-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2013-04-09 20:49                         ` Nishanth Menon
2013-04-09 20:49                           ` Nishanth Menon
2013-04-09 20:49                           ` Nishanth Menon
2013-04-09 21:54                           ` Nishanth Menon
2013-04-09 21:54                             ` Nishanth Menon
2013-04-09 21:54                             ` Nishanth Menon
2013-04-10 11:04                             ` Roger Quadros
2013-04-10 11:04                               ` Roger Quadros
2013-04-10 11:04                               ` Roger Quadros
2013-04-09 22:22                           ` Tony Lindgren
2013-04-09 22:22                             ` Tony Lindgren
2013-04-10  8:06                           ` Mike Turquette
2013-04-10  8:06                             ` Mike Turquette
2013-04-10  8:06                             ` Mike Turquette
2013-04-10 10:55                             ` Roger Quadros
2013-04-10 10:55                               ` Roger Quadros
2013-04-10 10:55                               ` Roger Quadros
2013-04-10 17:39                               ` Nishanth Menon
2013-04-10 17:39                                 ` Nishanth Menon
2013-04-10 17:39                                 ` Nishanth Menon
2013-04-10 18:49                                 ` Tony Lindgren
2013-04-10 18:49                                   ` Tony Lindgren
     [not found]                                   ` <20130410184919.GJ10155-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2013-04-10 19:19                                     ` Nishanth Menon
2013-04-10 19:19                                       ` Nishanth Menon
2013-04-10 19:19                                       ` Nishanth Menon
2013-04-10 20:21                                       ` Tony Lindgren
2013-04-10 20:21                                         ` Tony Lindgren
2013-04-11  7:48                                 ` Roger Quadros
2013-04-11  7:48                                   ` Roger Quadros
2013-04-11  7:48                                   ` Roger Quadros
2013-04-11  9:04                                   ` Grygorii Strashko
2013-04-11  9:04                                     ` Grygorii Strashko
2013-04-11  9:04                                     ` Grygorii Strashko
2013-04-11 22:45                                   ` Nishanth Menon
2013-04-11 22:45                                     ` Nishanth Menon
2013-04-11 18:46                                 ` Mike Turquette
2013-04-11 18:46                                   ` Mike Turquette
2013-04-11 18:46                                   ` Mike Turquette
2013-04-11 22:40                                   ` Nishanth Menon
2013-04-11 22:40                                     ` Nishanth Menon
2013-04-05 17:56             ` Grygorii Strashko
2013-04-05 17:56               ` Grygorii Strashko
2013-04-05 17:56               ` Grygorii Strashko
2013-04-09 10:16               ` Roger Quadros
2013-04-09 10:16                 ` Roger Quadros
2013-04-09 10:16                 ` Roger Quadros
2013-03-19 14:27   ` [PATCH 2/2] ARM: dts: omap4-panda: Provide PHY clock information Roger Quadros
2013-03-19 14:27     ` Roger Quadros
2013-03-19 14:27     ` Roger Quadros
2013-03-19 14:28   ` [RFC][PATCH 0/2] Device tree support for OMAP4 SCRM clocks Roger Quadros
2013-03-19 14:28     ` Roger Quadros
2013-03-19 14:28     ` Roger Quadros

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130409174319.GP10155@atomide.com \
    --to=tony@atomide.com \
    --cc=balbi@ti.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grygorii.strashko@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=nm@ti.com \
    --cc=rogerq@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.