All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Daniele Orlandi <daniele@orlandi.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: DSA incompatible with TI CPSW device model in dual mac mode
Date: Sun, 20 Jan 2019 18:30:47 +0100	[thread overview]
Message-ID: <20190120173047.GA15048@lunn.ch> (raw)
In-Reply-To: <15e21356-0301-62c8-7d8f-0ea9680331f5@orlandi.com>

On Sat, Jan 19, 2019 at 12:09:39AM +0100, Daniele Orlandi wrote:
> 
> Hello,
> 
> I am trying to connect a Marvell switch (88E6172) to an AM3352 ethernet
> port.
> 
> In the DSA devicetree description the CPU port has to have an "ethernet"
> attribute with a reference to a device node. From which it derives the
> net_device with a call of of_find_net_device_by_node
> 
> The CPSW driver, however, has a single device node with multiple (two)
> net_devices associated.
> 
> Thus, if I reference the "mac" (ethernet@4a100000) node the first (eth0)
> port is matched.
> 
> There is no way to actually reference eth1.

Hi Daniele

Looking at Documentation/devicetree/bindings/net/cpsw.txt, your DSA
Ethernet phandle should point to cpsw_emac1: slave@1. I don't know if
this actually works, but i _think_ some people have used DSA with this
device.


	 Andrew

  reply	other threads:[~2019-01-20 17:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-18 23:09 DSA incompatible with TI CPSW device model in dual mac mode Daniele Orlandi
2019-01-20 17:30 ` Andrew Lunn [this message]
2019-01-21 14:57   ` Daniele Orlandi
2019-01-21 16:55     ` Andrew Lunn

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=20190120173047.GA15048@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=daniele@orlandi.com \
    --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.