From mboxrd@z Thu Jan 1 00:00:00 1970 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=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 2FA9CC433B4 for ; Wed, 21 Apr 2021 22:46:29 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 93B4A613C4 for ; Wed, 21 Apr 2021 22:46:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 93B4A613C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kn48lBvzC3oBNoKT4pXZOV2sg12bkzSelvQMmmxQrsM=; b=eesjf7jvX5ZQDOuvzxlpyUqK4 lAB9lEVS3xM+aO05bW/4HR2MK15BvRZJIFhvMpa8kMOZ/uVt24mI7bcoERU9SQHwRddpFQQePIndY C9BaNxoOT2BPsoRcp9tGwoMStDD+w9Wq8eM8MNT26OTFqLjlIiEmhgpLYH5JbM2Z2RXUxW5g5lJj8 zRQAC/o8NJYvXKYdcdNa7QcQnVTgdPd6oMUkAuPy6zKDkJvNln1OwD23ToQ2sx9e0wMlb5ue8me6l l9W9C0RdfLpRBBCC0YtAuUaadS5cV13YJIgndFPFTI6kLADk18h1coaNp3WSKCIeD1J00saQO941z rltuGcNNQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lZLa0-00FK0r-Un; Wed, 21 Apr 2021 22:44:21 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lZLZx-00FK0B-SZ for linux-arm-kernel@desiato.infradead.org; Wed, 21 Apr 2021 22:44:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ccwTC3neOX0xiorVPiV2PK1AQuSwP8rpi8GyFurEX0M=; b=I5OBiU/0yqTSBkNU8Kz5uOVbpJ OoF8N4OrAtA0HAxg2ZJKWtNOjYeMyao82J3a05qecs9bSPshkutoHjnZLB+ESoROA7lzojVHbMlbS pRqh9qifcMUn5H+7GotI+3J9WfV5MKhIFFV3KF57MJhDeP+AcZelZ+T3bktbGJqAAIGejTEsfScVo lk6xxvNMs6BL+4eksySzKZ8QAiglpdRCWXTkIXKqm6LiPj3dHXJiXo5bxUQrcFI6CUudX4UCi896y l5eFMZOKg/9TyoOHLeVgdCSmiR2ZKyzmXOJ5m6fv5ggIhUz/ukGqgQpXuINL/VMG1hNkz9zTNE8QV 6Dqx2bkg==; Received: from mail-oo1-f54.google.com ([209.85.161.54]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lZLZu-00DEuF-Pp for linux-arm-kernel@lists.infradead.org; Wed, 21 Apr 2021 22:44:16 +0000 Received: by mail-oo1-f54.google.com with SMTP id i9-20020a4ad0890000b02901efee2118aaso1984404oor.7 for ; Wed, 21 Apr 2021 15:44:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ccwTC3neOX0xiorVPiV2PK1AQuSwP8rpi8GyFurEX0M=; b=kyZoQdKX/aGUzVSHFt6QS6oBwWIS33kzQXeBj9ohyWUWZOL29r1pRCb85zJeclarRF MlGAX1D7UxV3qOOPEXUZfw6TM20ukxxmcFWvfFplEiPdId0BWtumHP/jDj7Q/ioIwEZF zd7zrXZYWtmhmWDVH4j3BHAapBLsik3hxpsoTCRUv0a5TLSkFkYOlRK/QPBa1GZJq5uN pr5RJzYZPq8sl9EIMfkSvqAnrMwXFWoWXqnnQsnRQIqc4e4Cz6XUSR2GPkmkVKInt2Sf gM19ohCoDhwIgaiwiff6O3gy/YlkDasAKV8eutUT660wgK9ur8aGPOp9Hx1YuSzlu+PF eoNg== X-Gm-Message-State: AOAM531QzlZk4zRLl3UJxXN96/7py7gz3BW/Yw8A+YI7dzlXd6YIbJLQ n1wZYjS9VeJDSGpm7V2/zA== X-Google-Smtp-Source: ABdhPJyptlu2eKJffP1adI8PWAHI0oQ2kI/lX0QBV5TF1DXpD7yX2ZK2FNDEB5Fpmo2dNXzjKCSsrg== X-Received: by 2002:a05:6820:381:: with SMTP id r1mr132243ooj.79.1619045053823; Wed, 21 Apr 2021 15:44:13 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id d12sm223231ook.1.2021.04.21.15.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 15:44:12 -0700 (PDT) Received: (nullmailer pid 1750431 invoked by uid 1000); Wed, 21 Apr 2021 22:44:11 -0000 Date: Wed, 21 Apr 2021 17:44:11 -0500 From: Rob Herring To: Steen Hegelund Cc: "David S. Miller" , Jakub Kicinski , Device Tree List , Andrew Lunn , Russell King , Microchip Linux Driver Support , Alexandre Belloni , Madalin Bucur , Mark Einon , Masahiro Yamada , Arnd Bergmann , Philipp Zabel , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lars Povlsen , Bjarni Jonasson Subject: Re: [PATCH net-next 01/10] dt-bindings: net: sparx5: Add sparx5-switch bindings Message-ID: <20210421224411.GA1746146@robh.at.kernel.org> References: <20210416131657.3151464-1-steen.hegelund@microchip.com> <20210416131657.3151464-2-steen.hegelund@microchip.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210416131657.3151464-2-steen.hegelund@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210421_154414_873118_F4D49E06 X-CRM114-Status: GOOD ( 25.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Apr 16, 2021 at 03:16:48PM +0200, Steen Hegelund wrote: > Document the Sparx5 switch device driver bindings > > Signed-off-by: Steen Hegelund > Signed-off-by: Lars Povlsen > Signed-off-by: Bjarni Jonasson > --- > .../bindings/net/microchip,sparx5-switch.yaml | 227 ++++++++++++++++++ > 1 file changed, 227 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml > > diff --git a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml > new file mode 100644 > index 000000000000..2eeb5230d8c8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml > @@ -0,0 +1,227 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/microchip,sparx5-switch.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip Sparx5 Ethernet switch controller > + > +maintainers: > + - Steen Hegelund > + - Lars Povlsen > + > +description: | > + The SparX-5 Enterprise Ethernet switch family provides a rich set of > + Enterprise switching features such as advanced TCAM-based VLAN and > + QoS processing enabling delivery of differentiated services, and > + security through TCAM-based frame processing using versatile content > + aware processor (VCAP). > + > + IPv4/IPv6 Layer 3 (L3) unicast and multicast routing is supported > + with up to 18K IPv4/9K IPv6 unicast LPM entries and up to 9K IPv4/3K > + IPv6 (S,G) multicast groups. > + > + L3 security features include source guard and reverse path > + forwarding (uRPF) tasks. Additional L3 features include VRF-Lite and > + IP tunnels (IP over GRE/IP). > + > + The SparX-5 switch family targets managed Layer 2 and Layer 3 > + equipment in SMB, SME, and Enterprise where high port count > + 1G/2.5G/5G/10G switching with 10G/25G aggregation links is required. > + > +properties: > + $nodename: > + pattern: "^switch@[0-9a-f]+$" > + > + compatible: > + const: microchip,sparx5-switch > + > + reg: > + minItems: 3 Drop, that's the default implied by 'items' length. Otherwise, Reviewed-by: Rob Herring > + items: > + - description: cpu target > + - description: devices target > + - description: general control block target > + > + reg-names: > + items: > + - const: cpu > + - const: devices > + - const: gcb > + > + interrupts: > + minItems: 1 > + items: > + - description: register based extraction > + - description: frame dma based extraction > + > + interrupt-names: > + minItems: 1 > + items: > + - const: xtr > + - const: fdma > + > + resets: > + items: > + - description: Reset controller used for switch core reset (soft reset) > + > + reset-names: > + items: > + - const: switch > + > + mac-address: true > + > + ethernet-ports: > + type: object > + patternProperties: > + "^port@[0-9a-f]+$": > + type: object > + > + properties: > + '#address-cells': > + const: 1 > + '#size-cells': > + const: 0 > + > + reg: > + description: Switch port number > + > + phys: > + maxItems: 1 > + description: > + phandle of a Ethernet SerDes PHY. This defines which SerDes > + instance will handle the Ethernet traffic. > + > + phy-mode: > + description: > + This specifies the interface used by the Ethernet SerDes towards > + the PHY or SFP. > + > + microchip,bandwidth: > + description: Specifies bandwidth in Mbit/s allocated to the port. > + $ref: "/schemas/types.yaml#/definitions/uint32" > + maximum: 25000 > + > + phy-handle: > + description: > + phandle of a Ethernet PHY. This is optional and if provided it > + points to the cuPHY used by the Ethernet SerDes. > + > + sfp: > + description: > + phandle of an SFP. This is optional and used when not specifying > + a cuPHY. It points to the SFP node that describes the SFP used by > + the Ethernet SerDes. > + > + managed: true > + > + microchip,sd-sgpio: > + description: > + Index of the ports Signal Detect SGPIO in the set of 384 SGPIOs > + This is optional, and only needed if the default used index is > + is not correct. > + $ref: "/schemas/types.yaml#/definitions/uint32" > + minimum: 0 > + maximum: 383 > + > + required: > + - reg > + - phys > + - phy-mode > + - microchip,bandwidth > + > + oneOf: > + - required: > + - phy-handle > + - required: > + - sfp > + - managed > + > +required: > + - compatible > + - reg > + - reg-names > + - interrupts > + - interrupt-names > + - resets > + - reset-names > + - ethernet-ports > + > +additionalProperties: false > + > +examples: > + - | > + #include > + switch: switch@600000000 { > + compatible = "microchip,sparx5-switch"; > + reg = <0 0x401000>, > + <0x10004000 0x7fc000>, > + <0x11010000 0xaf0000>; > + reg-names = "cpu", "devices", "gcb"; > + interrupts = ; > + interrupt-names = "xtr"; > + resets = <&reset 0>; > + reset-names = "switch"; > + ethernet-ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port0: port@0 { > + reg = <0>; > + microchip,bandwidth = <1000>; > + phys = <&serdes 13>; > + phy-handle = <&phy0>; > + phy-mode = "qsgmii"; > + }; > + /* ... */ > + /* Then the 25G interfaces */ > + port60: port@60 { > + reg = <60>; > + microchip,bandwidth = <25000>; > + phys = <&serdes 29>; > + phy-mode = "10gbase-r"; > + sfp = <&sfp_eth60>; > + managed = "in-band-status"; > + microchip,sd-sgpio = <365>; > + }; > + port61: port@61 { > + reg = <61>; > + microchip,bandwidth = <25000>; > + phys = <&serdes 30>; > + phy-mode = "10gbase-r"; > + sfp = <&sfp_eth61>; > + managed = "in-band-status"; > + microchip,sd-sgpio = <369>; > + }; > + port62: port@62 { > + reg = <62>; > + microchip,bandwidth = <25000>; > + phys = <&serdes 31>; > + phy-mode = "10gbase-r"; > + sfp = <&sfp_eth62>; > + managed = "in-band-status"; > + microchip,sd-sgpio = <373>; > + }; > + port63: port@63 { > + reg = <63>; > + microchip,bandwidth = <25000>; > + phys = <&serdes 32>; > + phy-mode = "10gbase-r"; > + sfp = <&sfp_eth63>; > + managed = "in-band-status"; > + microchip,sd-sgpio = <377>; > + }; > + /* Finally the Management interface */ > + port64: port@64 { > + reg = <64>; > + microchip,bandwidth = <1000>; > + phys = <&serdes 0>; > + phy-handle = <&phy64>; > + phy-mode = "sgmii"; > + mac-address = [ 00 00 00 01 02 03 ]; > + }; > + }; > + }; > + > +... > +# vim: set ts=2 sw=2 sts=2 tw=80 et cc=80 ft=yaml : > -- > 2.31.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel