Message ID | 20221025135243.4038706-1-camel.guo@axis.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1022968wru; Tue, 25 Oct 2022 07:00:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM44z65wG3epwcAA6y7hi9EQM0Y85osmTrkbLcU8xrQlr8Vg4qZ7IpIlE7/0EbWFwZfL/0/v X-Received: by 2002:a05:6a00:10cf:b0:563:34ce:4138 with SMTP id d15-20020a056a0010cf00b0056334ce4138mr39705394pfu.6.1666706446550; Tue, 25 Oct 2022 07:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666706446; cv=none; d=google.com; s=arc-20160816; b=mBvR3CZaJa4wgBkBdgPDuWxRBQDWNXinhGSLarZWnmCC5JYB+CTcYJ9BhMFLFqs5bm sWu9NDzKw5G51x2sCndrOVJE+z2rK4dyECG879Zdi9mPMuafXuxe+BHQN0ZT6UQKP5oJ quoV7XdxCPjk8DxlBCFIWQPjScVfdnDwNIPET/UMUpouIcvq8VtVuCR01Oz73UMRRH0v KL9mmO2PAGjp7UeMQqJCh+fUYOq8SqewWH+KiyQWeRi9sqFy+DHKv3NCQv9H4Z9PE8yj wyL4lE361JpLbMMdCi8ijfNXFrf1ml4oK7dIxoHHWFNW+afiPH0usJ7JOjN8lRYo8+Qa UiUA== 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=p7U8I67mF6NDNUZeQCb+UeXPQC/C0xbRNq5j4mfvbug=; b=B7GEb0IgQMuu9b+MF9gWi39aiv3iEgcg0bBotLAQeJDafazJIh2iOwfv606dLrLlFK owH+YSXGUzCpcx8tpgQubOvrg0UIdu9r6XZCrhpkA5lYCWD7TSRu5SKAsXJAHmssCw34 3NxKCHzib1Ren+yYY9I8s3DVzMDv3rmsX70YrnLwZd4rO1YmfgBwRTWCnP2id/2fdNrc vjyv9Y/Y1GivpugLRT5XI1xA9kOVa1Nh5YblTWDVQGsFCCGj9hCTg+hxQzu6p01/2UIn H7MQjvWVuwBG9jCWPJ/5ZH5ut7mIdEG0qDTSnwDcTBJctoSTH37g/uhXPoV5PICGr0CI fSdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=eSrO08Gz; 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=NONE sp=NONE dis=NONE) header.from=axis.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a654ccb000000b00461bf5f86fdsi2970254pgt.403.2022.10.25.07.00.14; Tue, 25 Oct 2022 07:00:46 -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 (test mode) header.i=@axis.com header.s=axis-central1 header.b=eSrO08Gz; 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=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232073AbiJYNw5 (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Tue, 25 Oct 2022 09:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231415AbiJYNwz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Oct 2022 09:52:55 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB9E810EA37; Tue, 25 Oct 2022 06:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1666705974; x=1698241974; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=p7U8I67mF6NDNUZeQCb+UeXPQC/C0xbRNq5j4mfvbug=; b=eSrO08GzoDE2pOgY4we/boRR05sdFJkAthUmJ0DNw4flBJAvMJ6JYP2z aDanOBKFhxuEKgsGtfTtlOG0nrnnVgYYARpLN9Cy/2cGKi+kufvNiCD3+ cwcQlIBa+ESC5dz2OiA9kP88sABSjqhfib+vFTD4rBpCncN768jVl1gbC B+8N5DEB6JzPdl0kkK5urTBWmzg1VBp2zaSeuwJXh1LPK+Cvv1kq4DPLg r2Ew4DiQa6EH1++L+sK30X7qTS1xPKGF3gyzRBjmdPaoI32rMK2Y7fYtl y+BgblGgMenxBO4ZFDlONx/W4+WcGx4Ek/qzClBWgRsWPji3QXXD3FwTk w==; From: Camel Guo <camel.guo@axis.com> To: Andrew Lunn <andrew@lunn.ch>, Camel Guo <camel.guo@axis.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Florian Fainelli <f.fainelli@gmail.com>, Jakub Kicinski <kuba@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Russell King <linux@armlinux.org.uk>, Vivien Didelot <vivien.didelot@gmail.com>, Vladimir Oltean <olteanv@gmail.com> CC: <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>, Rob Herring <robh@kernel.org>, <kernel@axis.com> Subject: [RFC net-next 0/2] DSA driver draft for MaxLinear's gsw1xx series switch Date: Tue, 25 Oct 2022 15:52:39 +0200 Message-ID: <20221025135243.4038706-1-camel.guo@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,TO_EQ_FM_DIRECT_MX,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747668378844484912?= X-GMAIL-MSGID: =?utf-8?q?1747668378844484912?= |
Series |
DSA driver draft for MaxLinear's gsw1xx series switch
|
|
Message
Camel Guo
Oct. 25, 2022, 1:52 p.m. UTC
Hi netdev, Recently I had been working on implementing DSA driver for MaxLinear GSW145 switch. Here is my initial draft. Before proceeding futher, I am hoping to get comments and cooperation as early/many as possible. On my hand, I have an arm64 board with one GSW145 chip being connected via MDIO management interface. According to the public datasheet of GSW145, the chip itself on my board is in self-start (PS_NOWAIT=1b), managed switch (PS_OP_MD=11) mode. On this board, only two slave ethernet ports (port0, port1) of this chip are enabled. As its datasheet says, this chip supports MDIO, SPI, UART management interfaces in many operation modes (self-start/non-self-start, managed/standalone). Unfortunately it is impossible for me to run this draft on all of these combinations. It will be very helpful if anyone can help to run it on different hardware setups and send the feedback back to me. I also noticed that lantiq_gswip.c looks similar as gsw145. I have no access to the datasheet of the chip this file supports. Maybe they can be merged together. Best Regards Camel Guo Camel Guo (2): dt-bindings: net: dsa: add bindings for GSW Series switches net: dsa: Add driver for Maxlinear GSW1XX switch .../devicetree/bindings/net/dsa/mxl,gsw.yaml | 140 +++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 9 + drivers/net/dsa/Kconfig | 16 + drivers/net/dsa/Makefile | 2 + drivers/net/dsa/gsw1xx.h | 27 + drivers/net/dsa/gsw1xx_core.c | 823 ++++++++++++++++++ drivers/net/dsa/gsw1xx_mdio.c | 128 +++ 8 files changed, 1147 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dsa/mxl,gsw.yaml create mode 100644 drivers/net/dsa/gsw1xx.h create mode 100644 drivers/net/dsa/gsw1xx_core.c create mode 100644 drivers/net/dsa/gsw1xx_mdio.c base-commit: 6143eca3578f486e4d58fe6fb5e96a5699c86fbc