From: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>
To: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>,
Tero Kristo <t-kristo-l0cyMroinI0@public.gmane.org>,
Lokesh Vutla <lokeshvutla-l0cyMroinI0@public.gmane.org>,
"Anna, Suman" <s-anna-l0cyMroinI0@public.gmane.org>,
"Andrew F. Davis" <afd-l0cyMroinI0@public.gmane.org>,
Mugunthan V N <mugunthanvnm-l0cyMroinI0@public.gmane.org>,
"Nori, Sekhar" <nsekhar-l0cyMroinI0@public.gmane.org>,
linux-omap <linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: AM335x ICE board Linux support
Date: Tue, 26 Apr 2016 11:40:34 +0300 [thread overview]
Message-ID: <571F2982.2080702@ti.com> (raw)
In-Reply-To: <571E069A.20700-l0cyMroinI0@public.gmane.org>
+Rob
On 25/04/16 14:59, Roger Quadros wrote:
> Hi,
>
> We are working on getting Linux on AM335X Industrial Communication Engine board (ICE) [1].
>
> This board has 2 Ethernet ports and each of them can be used either in RMII mode connected to
> the CPSW Ethernet MAC *or* in MII mode connected to the PRU Ethernet MAC.
>
> The decision about the Ethernet port's mode is made by the user by setting a jumper near the
> Ethernet port before power up. This is a boot time configurable setting and doesn't need to
> change at runtime.
>
> So 4 configurations are possible:
> ETH0 ETH1
> ---- ----
> RMII RMII
> RMII MII
> MII RMII (probably redundant and not needed)
> MII MII
>
> Based on the port configuration, software (u-boot or Linux) needs to set the right pinmux,
> set a GPIOs (that controls external Mux), configure an external clock generator
> and enable the right device driver for the respective Ethernet port.
>
> Clock generator needs to be configured because different clock rates are required
> for RMII vs MII mode.
>
> Now question is how all this can be done on u-boot + Linux?
>
> I already have a working solution where I create different DT blobs for the 3 configurations
> and have u-boot detect the mode and load the correct DT blob and also configure the clock.
>
> You can see how the kernel patches look like here [2]
>
> Is this approach acceptable? If not is there any better way to do this? Thanks.
>
> cheers,
> -roger
>
> [1] AM3359 ICE board
> http://www.ti.com/tool/tmdsice3359
> http://processors.wiki.ti.com/index.php/AM335x_Industrial_Communication_Engine_%28ICE%29_EVM_HW_User_Guide
There are 2 ICE board version. v1 and v2. The above wiki link is wrong.
We are dealing with the v2 board below
http://processors.wiki.ti.com/index.php/AM335x_Industrial_Communication_Engine_EVM_Rev2_1_HW_User_Guide
>
> [2] Device tree patches
> https://github.com/rogerq/linux/commit/9a9cf6a15f779fddf91dba2370627aabf19aeff5
> https://github.com/rogerq/linux/commit/c87e8fa5b14f156a91883fd506e9dd8f7ccf95cf
> https://github.com/rogerq/linux/commit/d9cdd25e8c3878292d7f4180af8d3ac42b9645c4
>
>
cheers,
-roger
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-04-26 8:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-25 11:59 AM335x ICE board Linux support Roger Quadros
[not found] ` <571E069A.20700-l0cyMroinI0@public.gmane.org>
2016-04-26 8:40 ` Roger Quadros [this message]
[not found] ` <571F2982.2080702-l0cyMroinI0@public.gmane.org>
2016-04-26 15:10 ` Tony Lindgren
[not found] ` <20160426151046.GQ5995-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-04-29 10:08 ` Roger Quadros
[not found] ` <572332B2.6010203-l0cyMroinI0@public.gmane.org>
2016-04-29 15:31 ` Tony Lindgren
[not found] ` <20160429153158.GJ5995-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-05-02 8:23 ` Roger Quadros
[not found] ` <57270E8E.2040704-l0cyMroinI0@public.gmane.org>
2016-05-05 17:06 ` Tony Lindgren
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=571F2982.2080702@ti.com \
--to=rogerq-l0cymroini0@public.gmane.org \
--cc=afd-l0cyMroinI0@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lokeshvutla-l0cyMroinI0@public.gmane.org \
--cc=mugunthanvnm-l0cyMroinI0@public.gmane.org \
--cc=nm-l0cyMroinI0@public.gmane.org \
--cc=nsekhar-l0cyMroinI0@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=s-anna-l0cyMroinI0@public.gmane.org \
--cc=t-kristo-l0cyMroinI0@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).