From: Angelo Dureghello <angelo70@gmail.com>
To: Bruno Thomsen <bth@kamstrup.dk>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: Micrel KSZ8031 - phy link missing
Date: Fri, 10 Oct 2014 12:54:02 +0200 [thread overview]
Message-ID: <5437BACA.1000201@gmail.com> (raw)
In-Reply-To: <915054555B5659448ACF8A70E114824D0163C7A77B@Exchange2010.kamstrup.dk>
Dear Thomsen,
thanks for the prompt help,
well i am setting up that clock pin in my board.c, as
#define DA850_EVM_PHY_ID "davinci_mdio-0:00"
#define DA850_MII_MDIO_CLKEN_PIN GPIO_TO_PIN(2, 6)
ret = davinci_cfg_reg(DA850_GPIO2_6);
if (ret)
pr_warn("%s:GPIO(2,6) mux setup failed\n", __func__);
ret = gpio_request(DA850_MII_MDIO_CLKEN_PIN, "mdio_clk_en");
if (ret) {
pr_warn("Cannot open GPIO %d\n", DA850_MII_MDIO_CLKEN_PIN);
return ret;
}
/* Enable/Disable MII MDIO clock */
gpio_direction_output(DA850_MII_MDIO_CLKEN_PIN, rmii_en);
Probably it's me that i am doing something illegal, i explain:
I am moving from a 3.5.1 to a 3.17 kernel, but have a special board.c
startup file i cannot convert into DT easily.
So i am booting using old way (board.c).
Now, new kernels have "pinctrl" that probably jump over my gpio setting
later in the boot, is it possible ?
Thanks
Angelo
On 10/10/2014 12:31, Bruno Thomsen wrote:
> Hey
>
>> i still have the issue after patching kernel 3.17.
>> ...
>> I am using RMII in my custom board, don't know if it makes any difference.
> What RMII clock source do you use? MAC, PHY or external?
>
> If your MAC output the RMII clock you need to enable MICREL_PHY_50MHZ_CLK flag in phydev->dev_flags.
>
>
> Venlig hilsen / Best regards
>
> Kamstrup A/S <http://www.kamstrup.dk>
> Bruno Thomsen
> Development engineer
> Technology
>
> Kamstrup A/S
> Industrivej 28
> DK-8660 Skanderborg
> Tel: +45 89 93 10 00
> Fax: +45 89 93 10 01
> Dir: +45 89 93 13 94
> E-mail: bth@kamstrup.dk
> Web: www.kamstrup.dk
next prev parent reply other threads:[~2014-10-10 10:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 15:05 Micrel KSZ8031 - phy link missing Bruno Thomsen
2014-10-10 9:32 ` Angelo Dureghello
2014-10-10 10:31 ` Bruno Thomsen
2014-10-10 10:54 ` Angelo Dureghello [this message]
2014-10-10 11:32 ` Bruno Thomsen
2014-10-10 12:54 ` Angelo Dureghello
-- strict thread matches above, loose matches on Subject: below --
2014-10-08 18:28 Angelo Dureghello
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=5437BACA.1000201@gmail.com \
--to=angelo70@gmail.com \
--cc=bth@kamstrup.dk \
--cc=netdev@vger.kernel.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 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.