From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rajendra Nayak Subject: Re: how to specify an OMAP clock in device tree? Date: Tue, 5 Feb 2013 20:06:46 +0530 Message-ID: <511118FE.7020405@ti.com> References: <1359993540-20780-1-git-send-email-rogerq@ti.com> <1359993540-20780-12-git-send-email-rogerq@ti.com> <5110D229.1000808@ti.com> <5110E9C4.9000301@ti.com> <51110D4B.50904@ti.com> <51111371.6050502@ti.com> <511114C1.4050809@ti.com> <5111157D.7040803@ti.com> <51111739.2050805@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51111739.2050805-l0cyMroinI0@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Roger Quadros Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, b-cousson-l0cyMroinI0@public.gmane.org, balbi-l0cyMroinI0@public.gmane.org, stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org, linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, paul-DWxLp4Yu+b8AvxtiuMwx3w@public.gmane.org List-Id: devicetree@vger.kernel.org On Tuesday 05 February 2013 07:59 PM, Roger Quadros wrote: > On 02/05/2013 04:21 PM, Rajendra Nayak wrote: >> On Tuesday 05 February 2013 07:48 PM, Roger Quadros wrote: >>> On 02/05/2013 04:13 PM, Rajendra Nayak wrote: >>>> On Tuesday 05 February 2013 07:16 PM, Roger Quadros wrote: >>>>> Fixing the device name doesn't really solve the problem. >>>>> Not all OMAP boards will use the same clock for the external device. >>>> >>>> Are you saying different OMAP boards will use different Internal clocks? >>>> Or different OMAP boards will use a single Internal clock or an >>>> external one. >>>> >>> All I was saying is that one board can use for example auxclk1 whereas another >>> one can use auxclk3, both generated by OMAP for the same PHY configuration. >> >> Ok, so lets keep DT aside for a while. How would something like this >> work in a non-DT world? Would the driver then be able to do a >> clk_get(dev, "main_clk"); and get say auxclk1 on one board and >> auxclk3 on another? >> > > Yes, all you need to do is specify an alias to the clock in the board file. Can we then create a special board specific node for panda and do similar things from DT? See a similar discussion below on how to handle the gpio_request() we had as part of board files http://www.spinics.net/lists/linux-omap/msg85248.html > > e.g. in board 1 file > clk_add_alias("main_clk", "phy.1", "auxclk1_ck", NULL); > > in board 2 file > clk_add_alias("main_clk", "phy.1", "auxclk3_ck", NULL); > > cheers, > -roger > -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html