Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp403191rwe; Fri, 26 Aug 2022 07:10:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR5l37YafMTefM8iltgsfWDFILnQU1lRAcKMH0omJCzZeYBBPBQKRR4Ko2M8IT37c3IBlelU X-Received: by 2002:a17:907:d07:b0:72e:ec79:ad0f with SMTP id gn7-20020a1709070d0700b0072eec79ad0fmr5690072ejc.296.1661523032339; Fri, 26 Aug 2022 07:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661523032; cv=none; d=google.com; s=arc-20160816; b=PuUQu0ZPMMEyHTbvreLvcDGtA76eqizmQlO17XFlQNJRG95jwqFqzbjyoMcP6YIcvz 66DXvKpjcacoIEkOMcpqZ3tpDcGcjDAafqj3FNpANlqvGppipJTi3V1UjOJCoxpvc3tf 72rH/0CE8l85IaGOf1bpcgVX3I36SGXzphQQW8nKH5vraN2DamguV/zW1DRCkiMNz40J LeYmqu98NbIUHBGEQO26AYjoMfpeduwQzoN8DiFmJ0J/T4u4cQORbJHvn8+XKHFi23Ky vLHhco2PzlIIFYIzNgWOc3dRAcVTUbqSa78jWIS2JjrB3CI0fGNAwLGY5TtnCxgtcQeY otsQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=f0n7NDlZ2x9VzdQiJVmYZllt4f0/gdngUBcBYKLIb78=; b=M3lRs9v+Y3sD8SqmnzvlIqge+uXhr+mZ/0pMAA7Bx8yeQx69rgHedTRvb0XLu3bSI/ aTwQc4DGaCQty2VxpLrSa0Wqhis2/rdHDtU7hg2Hv2WyIOXuDlW84YgWDAd2tbQ1xq/w 97YDKw75PabwKJgHpgxw/WbozeixbCK5u9cacUKqb3SKm4NV1FuOQ/dskcP7Rf4V4dnd nP6BEQVWVa4iLdxnNqC+ZlARttyMS54VADf3xk92Ahy5GFbnNhLPhEHH/cpmL3TQQfs5 MlXFieQutySf4T6/5I3gVgy2n/MJGPF2k4i+5ubayDSQQrtXeLemIHbpBJmrJVcNGE01 swXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=N1lWP89K; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a50c445000000b00445bd4d6989si1397568edf.473.2022.08.26.07.09.53; Fri, 26 Aug 2022 07:10:32 -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=N1lWP89K; 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 S1344424AbiHZNzo (ORCPT + 99 others); Fri, 26 Aug 2022 09:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344389AbiHZNzN (ORCPT ); Fri, 26 Aug 2022 09:55:13 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CA2F4AD55; Fri, 26 Aug 2022 06:55:08 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id DF9AF240009; Fri, 26 Aug 2022 13:55:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1661522106; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f0n7NDlZ2x9VzdQiJVmYZllt4f0/gdngUBcBYKLIb78=; b=N1lWP89KO4Wy/SS5jPW0Q62BS1zHctafmqh5matVeboaDAVEmVQPCreJWUIqD07qax0c7i BtiCq5loF74KAFQJVdfsqvk/lP805ksWNA7uNTcrYdPGJyR1BFoSqKmtFv/8iB1XngxnK7 8KJUKJ/ZB+/h+AAPf/Vyxt5St9BjWWUf4StfpFjNDIjLWoOy5c8R40fnaGoOd+jAkRosBh k4Lc2NjZq5Z1Gy3/QtGPnOdza4/oDNyI7bjptLNgCecGFD4ku+rvjrBM+265LwesXlRg4m Bk0BNeaPmKVH9P+HECcZTjdHQJrvuzrHieVMOPkJuD9CugHzlopNPp0+gk5SJQ== From: Maxime Chevallier To: davem@davemloft.net, Rob Herring Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH net-next 5/5] dt-bindings: net: altera: tse: add an optional pcs register range Date: Fri, 26 Aug 2022 15:54:51 +0200 Message-Id: <20220826135451.526756-6-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220826135451.526756-1-maxime.chevallier@bootlin.com> References: <20220826135451.526756-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Some implementations of the TSE have their PCS as an external bloc, exposed at its own register range. Document this, and add a new example showing a case using the pcs and the new phylink conversion to connect an sfp port to a TSE mac. Signed-off-by: Maxime Chevallier --- .../devicetree/bindings/net/altr,tse.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/net/altr,tse.yaml b/Documentation/devicetree/bindings/net/altr,tse.yaml index 24e081cd1aa9..921011fc93f9 100644 --- a/Documentation/devicetree/bindings/net/altr,tse.yaml +++ b/Documentation/devicetree/bindings/net/altr,tse.yaml @@ -40,8 +40,10 @@ allOf: properties: reg: minItems: 6 + maxItems: 7 reg-names: minItems: 6 + maxItems: 7 items: - const: control_port - const: rx_csr @@ -49,6 +51,7 @@ allOf: - const: rx_resp - const: tx_csr - const: tx_desc + - const: pcs properties: compatible: @@ -99,6 +102,31 @@ required: unevaluatedProperties: false examples: + - | + tse_sub_0: ethernet@c0100000 { + compatible = "altr,tse-msgdma-1.0"; + reg = <0xc0100000 0x00000400>, + <0xc0101000 0x00000020>, + <0xc0102000 0x00000020>, + <0xc0103000 0x00000008>, + <0xc0104000 0x00000020>, + <0xc0105000 0x00000020>, + <0xc0106000 0x00000100>; + reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc", "pcs"; + interrupt-parent = <&intc>; + interrupts = <0 44 4>,<0 45 4>; + interrupt-names = "rx_irq","tx_irq"; + rx-fifo-depth = <2048>; + tx-fifo-depth = <2048>; + address-bits = <48>; + max-frame-size = <1500>; + local-mac-address = [ 00 0C ED 00 00 02 ]; + altr,has-supplementary-unicast; + altr,has-hash-multicast-filter; + sfp = <&sfp0>; + phy-mode = "sgmii"; + managed = "in-band-status"; + }; - | tse_sub_1_eth_tse_0: ethernet@1,00001000 { compatible = "altr,tse-msgdma-1.0"; -- 2.37.2