Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4562349rwe; Tue, 30 Aug 2022 12:24:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR4sdThPHs3n9Ssni4kTjHYxKPGKljKtWXD83GMJPzuxSm/vV4L8rZzyEUX1CjcHO2aNCT/t X-Received: by 2002:a17:90b:1b10:b0:1fb:7baa:ce1c with SMTP id nu16-20020a17090b1b1000b001fb7baace1cmr24704874pjb.131.1661887444891; Tue, 30 Aug 2022 12:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661887444; cv=none; d=google.com; s=arc-20160816; b=kuJmzEcuook7RaQW+AhpYToV5Q+JkZcGJzJmPnPiQG9SSk2SrMzKro1LGDWCwVdzDq 9D8uPQcj/LtuoH9PggpuTgARr8AObLhUW28XYQ+7DBCqMExgSE2P9vyAYehfX5an5l4K cktMii0IcIHKJqP+9d5+dkUTSMfVAArP47CqWDNe9p/4sfuQaIm1uI+gfe6smXj5fIar pnxYtyY5kRz5qwdNhi72Da0+96fgo9q76WuqDv5U5NHhjG/Hd+eY1kbOqCDmh8PjrNKO tFXKaNWRM+h9XDatP12wE6SX6lxK4NAykX8CXVj3SVE9l2/MThw0VZVzzyUqnA+Ef0nF rO+Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=RP9MukXjGqIyLr5AlW9DcIAeUcb51pnZKdqEvgTxjz4=; b=lGLo0ROaJEOdTAGjJQIV/ZJ69CNd+khoBp1j7IXgd0hTB2beMSpWG/Igm5xgWqUw1f H7bA1ygc+rvOEQ+myJp8RABdihRA+QbEg6VN/H2766OlQh/xe7+JPb6wCz7DcSSb/RKm ovDsvoirTGDlLMVfLxvpWmdfMZv4VWK5jakQChazlxx4XK8IsPi8H1yxN23n7OBGQBwJ YIBKRHcA9lPJJ8MpkQVSTHjQ4HMZZPzbtR4yUKaaJLpv12D2hWDoQP028jo+KpM61x+V U+E15LZz96jLCY84ChKgQ6aVh/4U0LuwnZRv95YG3f9+v7Xn/2hDkLeWeoqJhT3FYG+5 VtLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=bcButg8O; 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 bm21-20020a656e95000000b0041a4a97d588si2833484pgb.588.2022.08.30.12.23.53; Tue, 30 Aug 2022 12:24:04 -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=bcButg8O; 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 S230472AbiH3TSq (ORCPT + 99 others); Tue, 30 Aug 2022 15:18:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbiH3TSh (ORCPT ); Tue, 30 Aug 2022 15:18:37 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 552A367C87; Tue, 30 Aug 2022 12:18:35 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 54FF1C0007; Tue, 30 Aug 2022 19:18:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1661887113; 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: in-reply-to:in-reply-to:references:references; bh=RP9MukXjGqIyLr5AlW9DcIAeUcb51pnZKdqEvgTxjz4=; b=bcButg8Oj1dC+1XpgnZvKko1SSZKrj7zqULopY2oEcYUUNFp6EOkSfkYWn2Zi1wGUSkpCv IiPln8/8eFmxA25/J8B9v1H8WLwbNpiASNLx5TvkmGHpIzE/HjeyaIHHpo35lbKGH3Czjk QOEYLVXREHUDyUHgYwF394ioScoxyBcFM65x4jV+RlGfD8doDkcG665wkxE1Mi2buSATZk qtcHp4K+QkiKoAHvg+esCwB1+EreMJG38OtrpHPlEhaUHEI+ZBIO/pWpuQFvAwt19BKOBl aFiV5PZ/LCYCBU8IXTh76A2DaJxLTOgwUCZDeEIqKr+h2JYc261i+zPV/OtZ0A== Date: Tue, 30 Aug 2022 21:18:28 +0200 From: Maxime Chevallier To: Krzysztof Kozlowski Cc: davem@davemloft.net, Rob Herring , 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: Re: [PATCH net-next v2 5/5] dt-bindings: net: altera: tse: add an optional pcs register range Message-ID: <20220830211828.35971761@pc-10.home> In-Reply-To: References: <20220830095549.120625-1-maxime.chevallier@bootlin.com> <20220830095549.120625-6-maxime.chevallier@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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 On Tue, 30 Aug 2022 20:14:52 +0300 Krzysztof Kozlowski wrote: > On 30/08/2022 12:55, Maxime Chevallier wrote: > > 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 > > --- > > V1->V2 : > > - Fixed example > > > > .../devicetree/bindings/net/altr,tse.yaml | 29 > > ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/net/altr,tse.yaml > > b/Documentation/devicetree/bindings/net/altr,tse.yaml index > > 1676e13b8c64..4b314861a831 100644 --- > > a/Documentation/devicetree/bindings/net/altr,tse.yaml +++ > > b/Documentation/devicetree/bindings/net/altr,tse.yaml @@ -39,6 > > +39,7 @@ allOf: properties: > > reg: > > minItems: 6 > > + maxItems: 7 > > reg-names: > > minItems: 6 > > items: > > @@ -48,6 +49,7 @@ allOf: > > - const: rx_resp > > - const: tx_csr > > - const: tx_desc > > + - const: pcs > > > > properties: > > compatible: > > @@ -58,7 +60,7 @@ properties: > > > > reg: > > minItems: 4 > > - maxItems: 6 > > + maxItems: 7 > > > > reg-names: > > minItems: 4 > > @@ -69,6 +71,7 @@ properties: > > - const: rx_resp > > - const: tx_csr > > - const: tx_desc > > + - const: pcs > > - const: s1 > > > > So now 8 items? I'll also remove that. My understanding was that on top of the allOf:if/then, I was supposed to re-list all possible values. I got that wrong, so that's not needed at all. > > > interrupts: > > @@ -122,6 +125,30 @@ 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>; > > + max-frame-size = <1500>; > > + local-mac-address = [ 00 0C ED 00 00 02 ]; > > 00 00 00 00 00 00 > (easier to spot that it is invalid) Ack, thanks ! Best regards, Maxime > > Best regards, > Krzysztof