From patchwork Wed May 17 20:34:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alexis_Lothor=C3=A9?= X-Patchwork-Id: 9491 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp42448vqo; Wed, 17 May 2023 13:45:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7j0H1tv0V7JC1FM+uO2m0XoMsg3Pwgc5Qw5VpbR0hhw6hqAEXquicPySvtfMlu+X4I1mud X-Received: by 2002:a17:90a:3988:b0:253:44e7:9454 with SMTP id z8-20020a17090a398800b0025344e79454mr894962pjb.17.1684356357863; Wed, 17 May 2023 13:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684356357; cv=none; d=google.com; s=arc-20160816; b=g/dXhLoJwfcMZJaYeulaqj7c6JhwUIARDDWbqdAvLMQgpUXRHjHG+POMmUm2Ar61Hy aNrMK2TSJwu7tTUvEm6iAllGKL3Dxf8I1MGhGefrqRjZyui811N1iIeXvaR4zU8qcNzc ifTEJaTx8ie+ui8UCU8nzy+xhP3+4EjzjwO2DLlmXw+coxcquMmOk+Nwa4Uq2+YHB9dE HlZErHnn/Mj+M9QgogXYTzQ+xGJa2BSqI5paFwwt6tu3voeJigULiQG7i7wwZ2n6RKL+ pgDnL8bJ8mCGStj2+jNf2Bd/AYe8sbu55DK2hCArFd+VAuwDgK2414yl/MNA45jez5ZU sI1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SSGXfEp8iM8O02ghChWjaJmvwfOrma9CfJ6bauKgZKs=; b=G+0nNOV4hlvN4P/lTvhb1c8PonD6CZociU4C06h61uDdrGPghh2BX8U+6lW3dJFPfc /uNYjZzpCpquOAW2OYBsecR5KQ/PMwn++OWYEHEoXThYzPCt4/jnMzfYWcB230N528Bd caxUwVjY5mGcfQIlCCdfM2BxFtzAWUnd01wCzQ7R3rT+xZlZXZK2fBR6ffZDtyIg5Bb9 B0+9aglKsDrYyjv12PPrwJ3+/U5RMZLhjm7xj6jwy34NqQcPI5xo5oGlHsq08LGTdWJe fhqAD7lHwRD1c1aunEUilw1fsw2F5ABK0BsmpEJDgI0B9D5DDf/nstoqAcmYmdU7pF+i ogBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kkT74lxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j192-20020a638bc9000000b0052c844f06c1si22594630pge.460.2023.05.17.13.45.44; Wed, 17 May 2023 13:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kkT74lxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbjEQUf4 (ORCPT + 99 others); Wed, 17 May 2023 16:35:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjEQUfz (ORCPT ); Wed, 17 May 2023 16:35:55 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 757B530DE; Wed, 17 May 2023 13:35:52 -0700 (PDT) Received: (Authenticated sender: alexis.lothore@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 6A96440003; Wed, 17 May 2023 20:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1684355750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SSGXfEp8iM8O02ghChWjaJmvwfOrma9CfJ6bauKgZKs=; b=kkT74lxcnodSczi7YzH5G6aHSnG2xAbswZOFssIa8AKHqbPHU+ZRPXRpIIblqFqOMFo0tU NvwhIpOc+FCJfzzLv5ESKvZvLQ5XP6QRJSwnNAw4LTYHfSjAMtg6FZL35oaKPrMdgDOvpg TmAHZEXxsd6bKHPsXQkWFPrXMA+r3hVGtV99PHifhxq/eYsCGLZSjhA44Ft7KILiVE5Tnm s9S1o3eAN4yM5rJRqsUB6UEUWRoUgt9jEAE9wT1hS2h+wYr+0ft25iHIX0+qc7JTf/XBEl 7zYYUll7a/OkTdU8A6ei+wFcobWsutxF7YllsaTNkh2AoFM9AmIk6gjBaN7+6A== From: alexis.lothore@bootlin.com To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, paul.arola@telus.com, scott.roberts@telus.com, =?utf-8?q?Alexis_Lothor?= =?utf-8?q?=C3=A9?= Subject: [PATCH net-next 0/2] net: dsa: mv88e6xxx: add 88E6361 support Date: Wed, 17 May 2023 22:34:28 +0200 Message-Id: <20230517203430.448705-1-alexis.lothore@bootlin.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766175652512610989?= X-GMAIL-MSGID: =?utf-8?q?1766175652512610989?= From: Alexis Lothoré This series brings initial support for Marvell 88E6361 switch. MV88E6361 is a 8 ports switch with 5 integrated Gigabit PHYs and 3 2.5Gigabit SerDes interfaces. It is in fact a new variant in the 88E639X/88E6193X/88E6191X family with a subset of existing features (e.g. reduced ports count, lower maximal speed for MII interfaces). Since said family is already well supported in mv88e6xxx driver, adding initial support for this new switch mostly consists in finding the ID exposed in its identification register, and then add a proper description in switch description tables in mv88e6xxx driver. This initial support has been tested with two samples of a custom board with the following hardware configuration: - a main CPU connected to MV88E6361 using port 0 as CPU port - port 9 wired to a SFP cage - port 10 wired to a G.Hn transceiver The following setup was used: PC <-ethernet-> (copper SFP) - Board 1 - (G.hn) <-phone line(RJ11)-> (G.hn) Board 2 The unit 1 has been configured to bridge SFP port and G.hn port together, which allowed to successfully ping Board 2 from PC. Alexis Lothoré (2): dt-bindings: net: dsa: marvell: add MV88E6361 switch to compatibility list net: dsa: mv88e6xxx: enable support for 88E6361 switch .../devicetree/bindings/net/dsa/marvell.txt | 2 +- drivers/net/dsa/mv88e6xxx/chip.c | 25 +++++++++++++++++++ drivers/net/dsa/mv88e6xxx/chip.h | 3 ++- drivers/net/dsa/mv88e6xxx/port.h | 1 + 4 files changed, 29 insertions(+), 2 deletions(-)