Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-09 Thread Andrew Lunn
> Hi Andrew, > good news first, it seems to be running ;-). Great. > > The interrupt GPIO pin was not correctly configured in the device tree. > > For now we have around 68 accesses per second, I think this is okay > because we even have indirect access, so the bus must be more busy. That sou

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-09 Thread Benjamin Beckmeyer
>> Hi Andrew, >> I got it working a little bit better. When I'm fast enough I can read >> the registers I want but it isn't a solution. > Why do you need to read registers? > > What you actually might be interested in is the debugfs patches in > Viviens github tree. > >> Here is an output of the tr

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-08 Thread Andrew Lunn
> Hi Andrew, > I got it working a little bit better. When I'm fast enough I can read > the registers I want but it isn't a solution. Why do you need to read registers? What you actually might be interested in is the debugfs patches in Viviens github tree. > Here is an output of the tracing even

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-08 Thread Benjamin Beckmeyer
> I think you are going to have to parse the register writes/reads to > figure out what switch registers it is accessing. That should > hopefully make it clearer why it is making so many accesses. Hi Andrew, I got it working a little bit better. When I'm fast enough I can read the registers I want

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-05 Thread Andrew Lunn
On Fri, Jul 05, 2019 at 02:41:43PM +0200, Benjamin Beckmeyer wrote: > >> &mdio0 { > >> interrupt-parent = <&gpio1>; > >> interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; > >> > >> switch0: switch0@2 { > >> compatible = "marvell,mv88e6190"; > >> reg = <2>

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-05 Thread Benjamin Beckmeyer
>> &mdio0 { >> interrupt-parent = <&gpio1>; >> interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; >> >> switch0: switch0@2 { >> compatible = "marvell,mv88e6190"; >> reg = <2>; >> pinctrl-0 = <&pinctrl_gpios>; >> reset-gpios

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-04 Thread Andrew Lunn
> &mdio0 { > interrupt-parent = <&gpio1>; > interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; > > switch0: switch0@2 { > compatible = "marvell,mv88e6190"; > reg = <2>; > pinctrl-0 = <&pinctrl_gpios>; > reset-gpios = <&gpio

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-04 Thread Benjamin Beckmeyer
> On Thu, Jul 04, 2019 at 10:54:47AM +0200, Benjamin Beckmeyer wrote: >> On 03.07.19 17:55, Andrew Lunn wrote: >>> On Wed, Jul 03, 2019 at 03:10:34PM +0200, Benjamin Beckmeyer wrote: Hey folks, I'm having a problem with a custom i.mx6ul board. When DSA is loaded I can't g

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-04 Thread Andrew Lunn
On Thu, Jul 04, 2019 at 10:54:47AM +0200, Benjamin Beckmeyer wrote: > > On 03.07.19 17:55, Andrew Lunn wrote: > > On Wed, Jul 03, 2019 at 03:10:34PM +0200, Benjamin Beckmeyer wrote: > >> Hey folks, > >> > >> I'm having a problem with a custom i.mx6ul board. When DSA is loaded I > >> can't > >> g

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-04 Thread Benjamin Beckmeyer
On 03.07.19 17:55, Andrew Lunn wrote: > On Wed, Jul 03, 2019 at 03:10:34PM +0200, Benjamin Beckmeyer wrote: >> Hey folks, >> >> I'm having a problem with a custom i.mx6ul board. When DSA is loaded I can't >> get access to the switch via MDIO, but the DSA is working properly. I set up >> a bridge

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-03 Thread Benjamin Beckmeyer
On 03.07.19 17:55, Andrew Lunn wrote: > On Wed, Jul 03, 2019 at 03:10:34PM +0200, Benjamin Beckmeyer wrote: >> Hey folks, >> >> I'm having a problem with a custom i.mx6ul board. When DSA is loaded I can't >> get access to the switch via MDIO, but the DSA is working properly. I set up >> a bridge

Re: i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-03 Thread Andrew Lunn
On Wed, Jul 03, 2019 at 03:10:34PM +0200, Benjamin Beckmeyer wrote: > Hey folks, > > I'm having a problem with a custom i.mx6ul board. When DSA is loaded I can't > get access to the switch via MDIO, but the DSA is working properly. I set up > a bridge for testing and the switch is in forwarding m

i.mx6ul with DSA in multi chip addressing mode - no MDIO access

2019-07-03 Thread Benjamin Beckmeyer
Hey folks, I'm having a problem with a custom i.mx6ul board. When DSA is loaded I can't get access to the switch via MDIO, but the DSA is working properly. I set up a bridge for testing and the switch is in forwarding mode and i can ping the board. But the MDIO access isn't working at address 2