Re: DSA incompatible with TI CPSW device model in dual mac mode

2019-01-21 Thread Andrew Lunn
On Mon, Jan 21, 2019 at 03:57:32PM +0100, Daniele Orlandi wrote: > On 20/01/19 18:30, Andrew Lunn wrote: > > > >Looking at Documentation/devicetree/bindings/net/cpsw.txt, your DSA > >Ethernet phandle should point to cpsw_emac1: slave@1. > > Hi Andrew, > > Yes, that's what sounds logical, however

Re: DSA incompatible with TI CPSW device model in dual mac mode

2019-01-21 Thread Daniele Orlandi
On 20/01/19 18:30, Andrew Lunn wrote: Looking at Documentation/devicetree/bindings/net/cpsw.txt, your DSA Ethernet phandle should point to cpsw_emac1: slave@1. Hi Andrew, Yes, that's what sounds logical, however that node does not become the parent device net class nodes: root@r600:/sys/cl

Re: DSA incompatible with TI CPSW device model in dual mac mode

2019-01-20 Thread Andrew Lunn
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 i

DSA incompatible with TI CPSW device model in dual mac mode

2019-01-18 Thread Daniele Orlandi
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 CP