From: Mx21 <dillonhua@qq.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] cpsw not working with slave2 port defined only
Date: Tue, 26 May 2015 10:51:27 +0800 [thread overview]
Message-ID: <tencent_7F2938B3669C9606659B658F@qq.com> (raw)
In-Reply-To: <CAAfyv34Bi=6shMy39CXj0VnqMhV=byEmnTqsr0T_pkWgV7yXVg@mail.gmail.com>
hi marek:
please check your cpsw_data.slaves change it to 1
and you can set cpsw_data.active_slave = 0 before cpsw_register ,if cpsw_data.slaves is 2.
------------------ Original ------------------
From: "Belisko Marek";<marek.belisko@gmail.com>;
Date: Tue, May 26, 2015 03:30 AM
To: "U-Boot Mailing List"<u-boot@lists.denx.de>;
Subject: [U-Boot] cpsw not working with slave2 port defined only
Hi,
I have custom am33xx board with phy connected to slave2 port. I
copy'n'paste cpsw setup from /board/BuR/common/common.c but I'm using
only slave2 port (RMII mode) so my cpsw_slave_data looks like:
static struct cpsw_slave_data cpsw_slaves[] = {
{
.slave_reg_ofs = 0x308,
.sliver_reg_ofs = 0xdc0,
.phy_addr = 4,
},
};
with this configuration cpsw driver can detect link but it cannot
establish any communication (tested with dhcp command). When I add to
cpsw_slaves dummy slave1 port definition (with e.g. phy_addr = 0) it
start working.
mdio bus is working fine (tested with mdio list + mdio read). Pinmux
is good as it works with dummy slave1 config. Any ideas what I'm doing
wrong or why only slave2 port cannot be used? I grep whole source code
but all boards using cpsw use slave1 only or slave1/slave2
configurations. Many thanks.
BR,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
next prev parent reply other threads:[~2015-05-26 2:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-25 19:30 [U-Boot] cpsw not working with slave2 port defined only Belisko Marek
2015-05-26 2:51 ` Mx21 [this message]
2015-05-26 6:06 ` Belisko Marek
2015-05-26 12:29 ` Belisko Marek
2015-05-26 13:51 ` Mx21
2015-05-27 6:54 ` Belisko Marek
2015-06-01 9:10 ` Mugunthan V N
2015-06-02 6:20 ` Belisko Marek
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=tencent_7F2938B3669C9606659B658F@qq.com \
--to=dillonhua@qq.com \
--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