Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4514434rwe; Tue, 30 Aug 2022 11:28:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR5qttKtRrc/yif0x6qAmyugL2X5xJ/cQzHWFynz/1GofWbqJNda68cr0ewhrB0ZRfbJOIXu X-Received: by 2002:a17:902:710e:b0:170:8d34:9447 with SMTP id a14-20020a170902710e00b001708d349447mr22326459pll.126.1661884111019; Tue, 30 Aug 2022 11:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661884111; cv=none; d=google.com; s=arc-20160816; b=U5p0er6kqyFjKt6O0I2E+vb17HOffarPuZCSd6lpXtEG5q0s/vHr9Ym4Ygq6X5MtgF di95BGW/1uExr7OtGc5Y7iGMDrNa3oc1dtXwBuNkyEYoNeXqrEiiVanGsNkeZ5z/erKA qbAhOq4ScGeAnvD2FGJdn4VnnP6YwPikTRMvDZiAhk616teUdX3QdGwcnkgVdLJ6hOcg YdQhCGWjY7dlxxa78D/0apifAodjWsw+LyCnZu1SgpP/CpHrPkFd84KLq4Zy/59UkLTZ b/odXsG7X2265GtNlaxBJ2gDGRnR7LY6pY0v7DeHvkK0CURN7BHQLu8XAC15A0Jlobw3 qJ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wqM8poQSBkP5+AJNOGOym7LP5PEFsyVQuT3qGSt/MeQ=; b=weF4bTIR7p6+vHkkKsmnaknqQM5gZZrwlHp+EzguU8blsU3twkiACiXdKYOK78VKcR cgw+QXcnXvKRhmaXez5vnQaL1sUFmZLmF3/7HFVzW0BuGzicsPW3VyEQry3V4ecK08+6 sOVmT+ZlfbPUkzfnL31r1Md0jIMpsBVeISYWYzX9Pu9Je5tzoD4f3f4g2UfJ9o2HQoZU EbE5jDvMwqT7fMqDMeACcLLf+h3LNnCozGtybepDGfHCnAI5v6hgSsTEjUuQFoz4FBBd S1DO7J3Zxk0Y2RoO2ZRDHFeXhwgEftb0dmtbA8+nWAm7xgqpTuq3zgIRormBTxZiu9Et ifrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t8SfeBC0; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a17090301ce00b00172f1c0ff49si13752097plh.28.2022.08.30.11.28.19; Tue, 30 Aug 2022 11:28:30 -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=@linaro.org header.s=google header.b=t8SfeBC0; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229570AbiH3RPC (ORCPT + 99 others); Tue, 30 Aug 2022 13:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbiH3RO6 (ORCPT ); Tue, 30 Aug 2022 13:14:58 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F5431582A for ; Tue, 30 Aug 2022 10:14:56 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id z6so16425811lfu.9 for ; Tue, 30 Aug 2022 10:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=wqM8poQSBkP5+AJNOGOym7LP5PEFsyVQuT3qGSt/MeQ=; b=t8SfeBC0CMrKUskuld6g6k95a+OrKLt1l4p4i4wYP5WfVoRA9m4tYKjPyeefFS2Sth W1k3LmTakdmvBcyR4Of4koYIRweWQg1g2QJ4DIBUy63ug74x8XdiZhKyg5c8s9mnL3w2 OMf8+BGfeuk97J9Kb/7Bciy1t29Izl5eUd7Qfwrs+K2XPZlN3lCL1uoP3U+yPLarKhbI j3hiitXgHkTlYj/jZcEyCynSBMBxjlotKnR9RFOh5Z8i37jEyurjLHMi7qvxxj4/VDl9 rN1+tbMgUjAexZWmGr9d34icgOVS3D99IvFNGEc29Q7A7JRku2sQ4VSnOgO7GnRMm0bX UwqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=wqM8poQSBkP5+AJNOGOym7LP5PEFsyVQuT3qGSt/MeQ=; b=AxSFqoqLgQvLlagrrTXoJazcPVwehVZZl4hL6c6pT1MjFOuVKwvqXc8crLK0FlQYe2 a1R7X0ONgEY/GNPQwVR/vgCot8YH3nfzHeTshw8nZQaMPW8Mo1KuMzzLeDhWPyO8j1ns uxF+pP9AcYLYISakf/m5VQJqWoAX0EPs1iZsmNbRI1X9E3C72tcs2gjgP0lgkISmcrVX ix34M7Lnb/ZtUrjrqAAsoU5MGqCAxnFTjK9EEp52JTKHfM8ghbpArSFvfTTEEV/RBxGD S5QthS7U5YqRhKcVHz7TyeNsNtHHAGwTA0xYblvzQibxa28NOM5L4JpakpW2mpFU66j5 N5ww== X-Gm-Message-State: ACgBeo2kNctkaXU8oVEwls7KGrFNrmjYQVbMFjp+neaFe233aSffUkP7 2BLJftp3rVnwGTLqwGEEvobLBQ== X-Received: by 2002:a05:6512:159b:b0:492:c1c0:5aab with SMTP id bp27-20020a056512159b00b00492c1c05aabmr7875077lfb.523.1661879694642; Tue, 30 Aug 2022 10:14:54 -0700 (PDT) Received: from [192.168.28.124] (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id c17-20020a05651200d100b00492ea54beeasm384652lfp.306.2022.08.30.10.14.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 10:14:53 -0700 (PDT) Message-ID: Date: Tue, 30 Aug 2022 20:14:52 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH net-next v2 5/5] dt-bindings: net: altera: tse: add an optional pcs register range Content-Language: en-US To: Maxime Chevallier , davem@davemloft.net, Rob Herring Cc: 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 References: <20220830095549.120625-1-maxime.chevallier@bootlin.com> <20220830095549.120625-6-maxime.chevallier@bootlin.com> From: Krzysztof Kozlowski In-Reply-To: <20220830095549.120625-6-maxime.chevallier@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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? > 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) Best regards, Krzysztof