All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Cochran <richardcochran@gmail.com>
To: "N, Mugunthan V" <mugunthanvnm@ti.com>
Cc: "Cousson, Benoit" <b-cousson@ti.com>,
	"Hiremath, Vaibhav" <hvaibhav@ti.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"paul@pwsan.com" <paul@pwsan.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 4/4] arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX
Date: Fri, 2 Nov 2012 16:19:44 +0100	[thread overview]
Message-ID: <20121102151944.GB2900@netboy.at.omicron.at> (raw)
In-Reply-To: <EB1619762EAF8B4E97A227FB77B7E0293EA09122@DBDE01.ent.ti.com>

On Fri, Nov 02, 2012 at 10:42:04AM +0000, N, Mugunthan V wrote:
> 
> I saw those posts. The CPSW ip version changes tracks the internal IP
> changes and there is no possible way to track the offset changes. For
> example CPTS sub module offsets in DM814x and AM335x are different
> though the CPTS version is same in both IP versions. So keeping these
> offset in DT will make the same driver works directly with DT changes
> for future SoC.

But the CPSW versions are different, and the offsets could be
determined that way, couldn't they?

The TRM for the DM814x does not even make the distinction among
CPSW_SS, CPSW_PORT, CPSW_CPDMA, and so on. Instead, it places all of
the registers into one space called CPSW_3G.

So I agree with Benoit. Placing all of the offsets into DT seems like
over-engineering to me, unless you know of TI's plans to release a new
SoC with the same CPSW version but different register offsets.

Thanks,
Richard

WARNING: multiple messages have this Message-ID (diff)
From: richardcochran@gmail.com (Richard Cochran)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/4] arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX
Date: Fri, 2 Nov 2012 16:19:44 +0100	[thread overview]
Message-ID: <20121102151944.GB2900@netboy.at.omicron.at> (raw)
In-Reply-To: <EB1619762EAF8B4E97A227FB77B7E0293EA09122@DBDE01.ent.ti.com>

On Fri, Nov 02, 2012 at 10:42:04AM +0000, N, Mugunthan V wrote:
> 
> I saw those posts. The CPSW ip version changes tracks the internal IP
> changes and there is no possible way to track the offset changes. For
> example CPTS sub module offsets in DM814x and AM335x are different
> though the CPTS version is same in both IP versions. So keeping these
> offset in DT will make the same driver works directly with DT changes
> for future SoC.

But the CPSW versions are different, and the offsets could be
determined that way, couldn't they?

The TRM for the DM814x does not even make the distinction among
CPSW_SS, CPSW_PORT, CPSW_CPDMA, and so on. Instead, it places all of
the registers into one space called CPSW_3G.

So I agree with Benoit. Placing all of the offsets into DT seems like
over-engineering to me, unless you know of TI's plans to release a new
SoC with the same CPSW version but different register offsets.

Thanks,
Richard

  reply	other threads:[~2012-11-02 15:19 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-29  8:21 # (c) 2007, Joe Perches <joe@perches.com> Vaibhav Hiremath
2012-10-29  8:21 ` Vaibhav Hiremath
2012-10-29  8:21 ` Vaibhav Hiremath
2012-10-29  8:21 ` [PATCH-V2 0/4] ARM: AM33XX: net: Add DT support to CPGMAC and MDIO driver Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-29  8:33   ` Richard Cochran
2012-10-29  8:33     ` Richard Cochran
2012-10-29  8:21 ` [PATCH 1/4] net: davinci_mdio: Fix typo mistake in calling runtime-pm api Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-30 21:33   ` Peter Korsgaard
2012-10-30 21:33     ` Peter Korsgaard
2012-10-30 21:33     ` Peter Korsgaard
2012-10-29  8:21 ` [PATCH 2/4] net: cpsw: Add parent<->child relation support between cpsw and mdio Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-30 21:34   ` Peter Korsgaard
2012-10-30 21:34     ` Peter Korsgaard
2012-10-30 21:34     ` Peter Korsgaard
2012-10-29  8:21 ` [PATCH 3/4] ARM: OMAP3+: hwmod: Add AM33XX HWMOD data for davinci_mdio module Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-30 21:35   ` Peter Korsgaard
2012-10-30 21:35     ` Peter Korsgaard
2012-10-30 21:35     ` Peter Korsgaard
2012-10-29  8:21 ` [PATCH 4/4] arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-29  8:21   ` Vaibhav Hiremath
2012-10-30 21:35   ` Peter Korsgaard
2012-10-30 21:35     ` Peter Korsgaard
2012-10-30 21:35     ` Peter Korsgaard
2012-10-31 15:17   ` Benoit Cousson
2012-10-31 15:17     ` Benoit Cousson
2012-10-31 15:17     ` Benoit Cousson
2012-10-31 19:52     ` Hiremath, Vaibhav
2012-10-31 19:52       ` Hiremath, Vaibhav
2012-11-01  7:45     ` Richard Cochran
2012-11-01  7:45       ` Richard Cochran
2012-11-01  9:28       ` Cousson, Benoit
2012-11-01  9:28         ` Cousson, Benoit
2012-11-01  9:28         ` Cousson, Benoit
2012-11-03 17:45         ` [PATCH RFC net-next 0/1] Simplify the CPSW DT Richard Cochran
2012-11-03 17:45           ` Richard Cochran
2012-11-03 17:45           ` Richard Cochran
2012-11-03 17:45           ` [PATCH RFC net-next 1/1] cpsw: simplify the setup of the register pointers Richard Cochran
2012-11-03 17:45             ` Richard Cochran
2012-11-03 17:45             ` Richard Cochran
2012-11-02  8:46     ` [PATCH 4/4] arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX N, Mugunthan V
2012-11-02  8:46       ` N, Mugunthan V
2012-11-02  8:56       ` Richard Cochran
2012-11-02  8:56         ` Richard Cochran
2012-11-02 10:42         ` N, Mugunthan V
2012-11-02 10:42           ` N, Mugunthan V
2012-11-02 15:19           ` Richard Cochran [this message]
2012-11-02 15:19             ` Richard Cochran
2012-11-08 12:59     ` Mugunthan V N
2012-11-08 12:59       ` Mugunthan V N
2012-11-08 12:59       ` Mugunthan V N
2012-10-29  9:25 ` # (c) 2007, Joe Perches <joe@perches.com> Vaibhav Hiremath
2012-10-29  9:25   ` Vaibhav Hiremath
2012-10-29  9:25   ` Vaibhav Hiremath

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=20121102151944.GB2900@netboy.at.omicron.at \
    --to=richardcochran@gmail.com \
    --cc=b-cousson@ti.com \
    --cc=hvaibhav@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mugunthanvnm@ti.com \
    --cc=netdev@vger.kernel.org \
    --cc=paul@pwsan.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.