Marvell switch mv88e6341 with fsl-sdk-v2.0

cancel
Showing results for 
Search instead for 
Did you mean: 

Marvell switch mv88e6341 with fsl-sdk-v2.0

2,083 Views
AshishYadav
Contributor I

How to make Marvell switch mv88e6341 work with kernel 4.1.8 (fsl-sdk-v2.0)  for QorIQ LS1021A ?#

AFAIK, there is no driver for mv88e6341 in kernel 4.1.8 (fsl-sdk-v2.0).

So we need to backport it ( any hint in this area) .

Thanks 

Tags (2)
0 Kudos
2 Replies

475 Views
AshishYadav
Contributor I

Hi yipingwang‌,

Thanks for sharing info.

I am looking mv88e6341  support at Kernel 4.1.8 Version(fsl-sdk-v2.0).

Have a great day,

Thanks

Ashish 

0 Kudos

475 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Ashish Yadav,

Please refer to the attached MV88E6XXX PHY device driver provided in drivers/net/dsa/mv88e6xxx/  in Linux Kernel 4.17, it already includes mv88e6341 PHY driver support.

Please refer to the following in drivers/net/dsa/mv88e6xxx/chip.c.

        [MV88E6341] = {
                .prod_num = MV88E6XXX_PORT_SWITCH_ID_PROD_6341,
                .family = MV88E6XXX_FAMILY_6341,
                .name = "Marvell 88E6341",
                .num_databases = 4096,
                .num_internal_phys = 5,
                .num_ports = 6,
                .num_gpio = 11,
                .max_vid = 4095,
                .port_base_addr = 0x10,
                .phy_base_addr = 0x10,
                .global1_addr = 0x1b,
                .global2_addr = 0x1c,
                .age_time_coeff = 3750,
                .atu_move_port_mask = 0x1f,
                .g1_irqs = 9,
                .g2_irqs = 10,
                .pvt = true,
                .multi_chip = true,
                .tag_protocol = DSA_TAG_PROTO_EDSA,
                .ptp_support = true,
                .ops = &mv88e6341_ops,
        },

The following defined drivers/net/dsa/mv88e6xxx/port.h.

#define MV88E6XXX_PORT_SWITCH_ID_PROD_6341      0x3410


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos