linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: zonque@gmail.com (Daniel Mack)
To: linux-arm-kernel@lists.infradead.org
Subject: Current state of AM33xx patches
Date: Fri, 29 Jun 2012 20:34:53 +0200	[thread overview]
Message-ID: <4FEDF54D.4030609@gmail.com> (raw)
In-Reply-To: <79CD15C6BA57404B839C016229A409A83EA5FBC1@DBDE01.ent.ti.com>

On 29.06.2012 19:33, Hiremath, Vaibhav wrote:
> On Thu, Jun 28, 2012 at 20:39:08, Daniel Mack wrote:
>> On 27.06.2012 14:13, Hiremath, Vaibhav wrote:
>>
>>> Just to clarify from AM335x perspective,
>>>
>>> In case of AM335x, since the patches and complete BasePort support is still
>>> not present in the Mainline (neither in Linus's tree not in linux-omap), you 
>>> need to use my Repo (https://github.com/hvaibhav: Closely follows linux-
>>> omap/master) in order to test something on BeagleBone platform.
>>
>> Great, that is the information I've been looking for.
>>
>> Your am335x-upstream-staging branch works for me on a custom AM335x
>> based board using a custom DT config.
>>
>> I'll dig through the sources and come back once I know which parts are
>> missing.
>>
> 
> Great to hear that you could able to get this working on your board.
> Please let me know if you need any help.

I wonder about the way forward with regard to hwmod and DT. From what I
can currently see, resources are defined as hard-coded values, even
though that doesn't seem necessary as they're stored in the device tree
data already.

As an example, am33xx.dtsi yields

		uart1: serial at 44E09000 {
			compatible = "ti,omap3-uart";
			ti,hwmods = "uart1";
			clock-frequency = <48000000>;
		};

But the address of that hardware module is in fact ignored. Instead, the
reference to the "uart1" hwmod defines the address space and interrupt
sources the driver requires:

static struct omap_hwmod_addr_space am33xx_uart1_addr_space[] = {
        {
                .pa_start       = 0x44E09000,
                .pa_end         = 0x44E09000 + SZ_8K - 1,
                .flags          = ADDR_TYPE_RT,
        },
        { }
};

And that's the same for all the hardware modules.

Correct me if I'm mistaken, but this isn't really what DT was designed
for. In this context, it is used as a simple list of devices to probe,
not as a abstracted description of the hardware resources and their
interconnects.

The question is: is that the way things should be kept for OMAP/AM33xx?
Or should work be done to move all that hwmod stuff to proper
clk/irq/res definitions that can be used from DT generically? As there's
actually no need to care for legacy users at all (as no board support
for AM33xx is mainline), shouldn't things be done right in the first place?


Best regards,
Daniel

  reply	other threads:[~2012-06-29 18:34 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-11  9:28 Current state of AM33xx patches Daniel Mack
2012-06-11 13:51 ` Jason Kridner
2012-06-11 14:21   ` Hernandez, Carlos
2012-06-18  8:15   ` Hiremath, Vaibhav
2012-06-21 13:50     ` Daniel Mack
2012-06-25 18:17       ` Daniel Mack
2012-06-26 11:42         ` Sekhar Nori
2012-06-27 12:13           ` Hiremath, Vaibhav
2012-06-28 15:09             ` Daniel Mack
2012-06-29 13:54               ` Yegor Yefremov
2012-06-29 17:43                 ` Hiremath, Vaibhav
2012-07-02 12:56                   ` Yegor Yefremov
2012-06-29 17:33               ` Hiremath, Vaibhav
2012-06-29 18:34                 ` Daniel Mack [this message]
2012-06-29 18:47                   ` Hiremath, Vaibhav
2012-06-30  2:11                   ` Paul Walmsley
2012-06-30  9:33                     ` Daniel Mack
2012-07-04 10:07                       ` Paul Walmsley
2012-07-04 10:50                         ` Hiremath, Vaibhav
2012-07-04 11:22                           ` Daniel Mack
2012-07-05 17:45                             ` N, Mugunthan V
2012-07-23  6:30                               ` Daniel Mack
2012-07-23 16:36                                 ` N, Mugunthan V
2012-07-26 14:52                                   ` Daniel Mack
2012-07-26 15:00                                     ` Koen Kooi
2012-07-26 15:58                                       ` Daniel Mack
2012-07-26 16:09                                         ` Koen Kooi
2012-07-26 17:46                                           ` Daniel Mack
2012-07-31 19:29                                             ` Koen Kooi
2012-08-02 15:30                                               ` Daniel Mack
2012-08-02 15:37                                                 ` Koen Kooi
2012-08-02 17:19                                                   ` Daniel Mack
2012-08-02 19:56                                                   ` Daniel Mack
2012-08-02 20:20                                                     ` Koen Kooi
2012-08-03 10:17                                                   ` N, Mugunthan V
2012-08-03  5:25                                                 ` N, Mugunthan V
2012-06-11 14:15 ` Vaibhav Hiremath
2012-06-23 13:03   ` Domenico Andreoli
2012-06-27 12:07     ` Hiremath, Vaibhav
2012-06-27 18:31       ` Paul Walmsley
2012-06-27 19:01         ` Hiremath, Vaibhav
2012-06-27 19:12           ` Paul Walmsley
2012-06-27 19:21             ` Hiremath, Vaibhav
2012-06-27 19:37               ` Paul Walmsley
2012-06-27 20:00               ` Paul Walmsley
2012-06-27 20:56                 ` Hiremath, Vaibhav
2012-06-27 21:13                   ` Paul Walmsley
2012-06-27 21:44                   ` Paul Walmsley
2012-06-29 14:20       ` Mark Jackson
2012-06-29 17:56         ` Hiremath, Vaibhav
2012-07-02  8:04           ` Mark Jackson

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=4FEDF54D.4030609@gmail.com \
    --to=zonque@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).