[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190220090651.0e00f284@windsurf>
Date: Wed, 20 Feb 2019 09:06:51 +0100
From: Thomas Petazzoni <thomas.petazzoni@...tlin.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: Paul Kocialkowski <paul.kocialkowski@...tlin.com>,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>, netdev@...r.kernel.org,
Mylène Josserand <mylene.josserand@...tlin.com>
Subject: Re: Handling an Extra Signal at PHY Reset
On Tue, 19 Feb 2019 14:36:29 +0100
Andrew Lunn <andrew@...n.ch> wrote:
> This seems like an odd design. I've normally seen weak pull up/down
> resistors, not a switch, so i'm wondering why it is designed like
> this.
The key point here is that this "CONFIG" pin of the PHY is used during
reset to configure the PHY, but then once the reset sequence is
finished, this pin is used for PTP. From the datasheet, section 2.28.1
"PTP Control":
"""
To support the PTP Time Stamping function, the device has four pins
that are global to the entire PHY:
- PTP clock input pin (The CONFIG pin is used for this purpose.)
- PTP Event Request input pin (The LED[1] pin is used for this purpose)
- PTP Event Request input pin (The LED[1] pin is used for this purpose)
- Interrupt Pin (The LED[2] pin is used for this purpose)
"""
A bit further down in the datasheet:
"After configuration is completed and the external clock source is
enabled, the CONFIG pin is used as the external 125 Mhz reference clock
input"
So that's why our design as a switch: it allows the CONFIG pin to be
used for configuration during the reset sequence, and then as the pin
for the PTP clock input.
Does that clarify why the CONFIG pin is not simply connected to some
static pull-up/pull-down ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists