From patchwork Fri Apr 23 08:02:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 12219817 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 545C6C433ED for ; Fri, 23 Apr 2021 08:02:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2294A611C1 for ; Fri, 23 Apr 2021 08:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241259AbhDWIDL (ORCPT ); Fri, 23 Apr 2021 04:03:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241290AbhDWIDG (ORCPT ); Fri, 23 Apr 2021 04:03:06 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00106C06138C for ; Fri, 23 Apr 2021 01:02:29 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZqlZ-0007aj-CH; Fri, 23 Apr 2021 10:02:21 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lZqlX-0006ut-OE; Fri, 23 Apr 2021 10:02:19 +0200 From: Oleksij Rempel To: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , Vivien Didelot , Vladimir Oltean , "David S. Miller" , Jakub Kicinski Cc: Oleksij Rempel , kernel@pengutronix.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Michael Grzeschik Subject: [PATCH net-next v6 00/10] microchip: add support for ksz88x3 driver family Date: Fri, 23 Apr 2021 10:02:08 +0200 Message-Id: <20210423080218.26526-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org changes v6: - take over this patch set - rebase against latest netdev-next and fix regressions - disable VLAN support for KSZ8863. KSZ8863's VLAN is not compatible to the KSZ8795's. So disable it for now and mainline it separately. This series adds support for the ksz88x3 driver family to the dsa based ksz drivers. The driver is making use of the already available ksz8795 driver and moves it to an generic driver for the ksz8 based chips which have similar functions but an totaly different register layout. The mainlining discussion history of this branch: v1: https://lore.kernel.org/netdev/20191107110030.25199-1-m.grzeschik@pengutronix.de/ v2: https://lore.kernel.org/netdev/20191218200831.13796-1-m.grzeschik@pengutronix.de/ v3: https://lore.kernel.org/netdev/20200508154343.6074-1-m.grzeschik@pengutronix.de/ v4: https://lore.kernel.org/netdev/20200803054442.20089-1-m.grzeschik@pengutronix.de/ v5: https://lore.kernel.org/netdev/20201207125627.30843-1-m.grzeschik@pengutronix.de/ Andrew Lunn (1): net: phy: Add support for microchip SMI0 MDIO bus Michael Grzeschik (8): net: dsa: microchip: ksz8795: change drivers prefix to be generic net: dsa: microchip: ksz8795: move cpu_select_interface to extra function net: dsa: microchip: ksz8795: move register offsets and shifts to separate struct net: dsa: microchip: Add Microchip KSZ8863 SPI based driver support dt-bindings: net: dsa: document additional Microchip KSZ8863/8873 switch net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support dt-bindings: net: mdio-gpio: add compatible for microchip,mdio-smi0 net: tag: ksz: Add KSZ8863 tag code Oleksij Rempel (1): net: dsa: microchip: ksz8795: add support for ksz88xx chips .../bindings/net/dsa/microchip,ksz.yaml | 2 + .../devicetree/bindings/net/mdio-gpio.txt | 1 + drivers/net/dsa/microchip/Kconfig | 10 +- drivers/net/dsa/microchip/Makefile | 1 + drivers/net/dsa/microchip/ksz8.h | 69 ++ drivers/net/dsa/microchip/ksz8795.c | 853 ++++++++++++------ drivers/net/dsa/microchip/ksz8795_reg.h | 125 +-- drivers/net/dsa/microchip/ksz8795_spi.c | 46 +- drivers/net/dsa/microchip/ksz8863_smi.c | 206 +++++ drivers/net/dsa/microchip/ksz_common.h | 3 +- drivers/net/mdio/mdio-bitbang.c | 8 +- drivers/net/mdio/mdio-gpio.c | 8 + include/linux/mdio-bitbang.h | 3 + include/net/dsa.h | 2 + net/dsa/tag_ksz.c | 52 ++ 15 files changed, 1000 insertions(+), 389 deletions(-) create mode 100644 drivers/net/dsa/microchip/ksz8.h create mode 100644 drivers/net/dsa/microchip/ksz8863_smi.c