Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platform bus driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Grant Likely
Date: Sunday, May 24, 2009 - 11:53 pm

On Sat, May 23, 2009 at 10:44 AM, Wolfgang Grandegger <wg@grandegger.com> wrote:

Would it be better to specify the external clock frequency, and the
driver know that internal freq is half that?  I ask because external
clock freq is a value the HW designer actually has control over.


Ugh, I see what you mean.


Or how about CLKOUT pin off if the property isn't present?  Otherwise,
this looks okay.  BTW, I'd consider prefixing this with 'nxp,' or
'sja1000,' to protect the namespace.  clock-out-frequency sounds like
one of those names which could be commonly used in the future.  I'd so
the same for the other chip-specific properties too.

Segher, what's your opinion on this?


hmmm; It is very chip specific and it is a lot of mucking around.  If
you prefix the property with the manufacturer name, then perhaps the
explicit register setting is okay.

Are TX0 & TX1 protocol pins or GPIOs?  If gpio, then maybe it is worth
the mucking about to then use the gpios binding to specify the pin
mode.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[net-next-2.6 PATCH v2] can: SJA1000: generic OF platform ..., Wolfgang Grandegger, (Fri May 22, 7:46 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Fri May 22, 11:29 pm)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Sat May 23, 9:44 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Sat May 23, 9:51 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Grant Likely, (Sun May 24, 11:53 pm)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Sun May 24, 11:58 pm)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Mon May 25, 1:15 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Benjamin Herrenschmidt, (Tue May 26, 2:40 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Tue May 26, 7:23 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Sat May 30, 10:59 am)