From: Andre Schwarz <andre.schwarz@matrix-vision.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Add Vitesse 8601 support to TSEC driver
Date: Thu, 24 Apr 2008 16:23:04 +0200 [thread overview]
Message-ID: <481097C8.1060607@matrix-vision.de> (raw)
In-Reply-To: <NPAblFOq.1208508046.5957230.tor@localhost>
Tor,
at last I could solve my "strange" behaviour.
Actually the PHY definitely uses both 2 bit definitions of Rx and Tx Skew at
"RGMII Skew Control Reg" 0x1c - which are set up by eeprom or strapping.
Due to noise or strapping resistor mismatch these setting are not always
like
I want them to be.
Setting bit 8 in "Extended PHY Control 1" @ 0x17 activates the delay lines.
Obviously your Skew values did match.
I'll send a patch to configure the delay.
Cheers,
Andre
Tor Krill schrieb:
> Hi,
>
> On 4/17/2008, "Andre Schwarz" <andre.schwarz@matrix-vision.de> wrote:
>
>
>> Tor,
>>
>> after all my VSC8601 is up and running on MPC8343 :-)
>>
>> I'm sorry to say that I don't find this patch ok after going through the
>> manuals :
>>
>> Register 0x17 is a very coarse setting. If the capabilities of the PHY
>> should be taken into account and be configurable we should use the skew
>> control in extended register 0x1c. This should be definable -
>> CFG_VSC8601_SKEWFIX simply applies maximum skew ...
>>
>
> Sure it certainly could have been done in a more configurable way. But
> you have to decide what you need. For us this was an apropriate level
> atm that scratched our itch. If we where to expose every setting from
> the start we still would not have been done ;)
>
>
>> After all changing the bits in register 0x17 _require_ a soft reset by
>> asserting bit 15 in register 0 before they are going to work.
>>
>> Obviously this patch has no effect at all.
>> Do you reset the PHY manually after this configuration ?
>>
>
> According to our datasheet (dated july 2006) only changes of bit 12 in
> this register needs a software reset to take. We don't reset the phy
> after changing this and the change obviously work (we have tested and
> verified that it won't work without the change).
>
>
>> This PHY definitely needs a proper setup function since there are quite
>> interesting registers which need read-modify-write.
>>
>> What do you think ?
>>
>
> Perhaps a patch to improve what you find missing?
>
> /Tor
>
>
>> Kim Phillips schrieb:
>>
>>> On Mon, 31 Mar 2008 10:01:34 -0400
>>> Ben Warren <biggerbadderben@gmail.com> wrote:
>>>
>>>
>>>
>>>> Tor Krill wrote:
>>>>
>>>>
>>>>> Add phy_info for Vitesse VSC8601.
>>>>> Add config option, CFG_VSC8601_SKEWFIX, to enable RGMII skew timing compensation.
>>>>>
>>>>> Signed-off-by: Tor Krill <tor@excito.com>
>>>>>
>>>>>
>>>>>
>>>> Acked-by: Ben Warren <biggerbadderben@gmail.com>
>>>>
>>>>
>>> I don't have a Vitesse 8601, so technically I can't ack it, but I can:
>>>
>>> Reviewed-by: Kim Phillips <kim.phillips@freescale.com>
>>>
>>> minor nit: it would be nice if the following:
>>>
>>>
>>>
>>>>> +#ifdef CFG_VSC8601_SKEWFIX
>>>>> + {MIIM_VSC8601_EPHY_CON,MIIM_VSC8601_EPHY_CON_INIT_SKEW,NULL},
>>>>> +#endif
>>>>>
>>>>>
>>> were made to have spaces after commas, and flow onto a separate
>>> line so as to not be a 96 char line..
>>>
>>> Kim
>>>
>>> -------------------------------------------------------------------------
>>> Check out the new SourceForge.net Marketplace.
>>> It's the best place to buy or sell services for
>>> just about anything Open Source.
>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>>> _______________________________________________
>>> U-Boot-Users mailing list
>>> U-Boot-Users at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>>>
>>>
>>
>> MATRIX VISION GmbH, Talstra??e 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090
>> Gesch??ftsf??hrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
>>
MATRIX VISION GmbH, Talstra?e 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090
Gesch?ftsf?hrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
next prev parent reply other threads:[~2008-04-24 14:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 14:29 [U-Boot-Users] [PATCH] Add Vitesse 8601 support to TSEC driver Tor Krill
2008-03-28 21:33 ` André Schwarz
2008-03-31 6:33 ` Tor Krill
2008-03-31 14:04 ` Ben Warren
2008-03-31 14:01 ` Ben Warren
2008-03-31 18:18 ` Kim Phillips
2008-04-01 11:38 ` Andre Schwarz
2008-04-17 18:32 ` Andre Schwarz
2008-04-18 8:40 ` Tor Krill
2008-04-24 14:23 ` Andre Schwarz [this message]
2008-04-01 13:33 ` Andre Schwarz
2008-04-01 13:42 ` Andy Fleming
2008-04-01 14:08 ` Andre Schwarz
2008-04-01 14:25 ` Andy Fleming
2008-04-01 14:35 ` Andre Schwarz
2008-04-01 16:12 ` Kim Phillips
2008-04-02 8:01 ` André Schwarz
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=481097C8.1060607@matrix-vision.de \
--to=andre.schwarz@matrix-vision.de \
--cc=u-boot@lists.denx.de \
/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