Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4754053rdb; Tue, 12 Dec 2023 08:24:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFauKR+hebL4JLTEJ6bnQFvq3YWIylBf1NQiF2qfVIwj8KzwnDyWRJ9x/bo7ufr9dyEOj+z X-Received: by 2002:a17:902:ce8b:b0:1d0:c3e7:d2c with SMTP id f11-20020a170902ce8b00b001d0c3e70d2cmr3576637plg.62.1702398281457; Tue, 12 Dec 2023 08:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702398281; cv=none; d=google.com; s=arc-20160816; b=wAhrctYefxM38gJmyuES1U9YNBH5MuZhAmXXX2QqsxF/1IHLLA266V+toXZo4xVg24 ZN9iubTlzROVSqeQw0qyjm/F2RJ4H6AVPLzyTEspzPOLQQwW5lgh2PtDSm98o8Ou21cR F7txht1n6YSSguflzcPB/DkYSBcK65JvNbpSupXATArdXbmOlyMb8jfXQnf441+NK2Y1 NbWM7MUdhhioU0wQ5W1Ie6GSB/tnPoMP+w3u5LJeLj+dxsNkE93JzRiTzh3+ubWfPo+7 rdbaNaSU/hwU/ctRYBVbZP3von/pBXGDwS+biJqRJArugPgjebQtXaNN2obSod5qXcQy S4gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=g/qmrxJtHeNXYEvXVIdS41w4DAeA89m/RyD8a9WcU9Y=; fh=4XFqYhoFoDZCNTsAMuumPWj6CnGttoVw9HRFMl4668g=; b=MCWDe0Gv6V3P6/nnYbDj9p0qhOR5xp30kf0VdW9VqFcOPH3+BFtfIaCokBzrMsNQOI g4PbU6ulEN4g8hYGtOjBiMF1p9leFTcYu6ji8rcILX43sjAK9RPm6TDzrAguqauGon+Y DeMEHonP93G9Ub5ziMOrmiODafbv0aEsv1/sZj8hxQDSNMU2b5M2+5sf8uD/gqFhxJNN SnyM19SKpCD9lFJfFSqIwx4LBpAXwUo8mNaelNzHcCdnHdpKjYmn7qU1vk/ZyarkBYNm w71rFQqplURYBn2Idxz8Ax1AYvrB6EeIneUvXm7A3a20ST7ZGjueldJm59Dr05eGI77u aSHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QREA5gfn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y13-20020a63e24d000000b005c606792120si7837555pgj.107.2023.12.12.08.24.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 08:24:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QREA5gfn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 0476080AD974; Tue, 12 Dec 2023 08:24:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232326AbjLLQYX (ORCPT + 99 others); Tue, 12 Dec 2023 11:24:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbjLLQYX (ORCPT ); Tue, 12 Dec 2023 11:24:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F1469D for ; Tue, 12 Dec 2023 08:24:29 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2E91C433C8; Tue, 12 Dec 2023 16:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702398268; bh=ta9qDCjTjWyR69j+7I8MCMvgrq55mLcwFImJg/bIQqQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QREA5gfn0t5sFMgfMcbuSLToFiNaFbG2PP5+kap/TYoImqaFVXsuQZbwHsfEBj4G9 wd1pVutWwMd2x7Q73CID/VvF/hVszlWNzNOr1WFVtEwuBmMj9klBvcbmOoNDsDfq4e pTCgr1EIqC+xZ4Tuyr8ViEqaedZ0As6Jfi+jdL6Y07o9WcOxTSscexH0uK16lQSNYh ADyRNuh824v/9OvV7VkjXcjGu11lgEbIhgsJyy5twFGNYF04k4y9qfQJ2eDR4YkafI esdU5n+FCz3yVoITRk8NJZLj9lEfpvnEZeY6glFGugS27Aup+X2j25OJVf3FNJdcsO D9Dx76SbASWFA== Date: Tue, 12 Dec 2023 16:24:20 +0000 From: Conor Dooley To: Daniel Golle Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , Matthias Brugger , AngeloGioacchino Del Regno , Andrew Lunn , Heiner Kallweit , Russell King , Alexander Couzens , Qingfang Deng , SkyLake Huang , Philipp Zabel , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org Subject: Re: [RFC PATCH net-next v3 4/8] dt-bindings: net: pcs: add bindings for MediaTek USXGMII PCS Message-ID: <20231212-panhandle-pasty-243c3556ea51@spud> References: <510af8550385da947e2e2516629c4fbed7fc0f64.1702352117.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YruC2MCzDdXijj9+" Content-Disposition: inline In-Reply-To: <510af8550385da947e2e2516629c4fbed7fc0f64.1702352117.git.daniel@makrotopia.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 08:24:39 -0800 (PST) --YruC2MCzDdXijj9+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 12, 2023 at 03:47:31AM +0000, Daniel Golle wrote: > MediaTek's USXGMII can be found in the MT7988 SoC. We need to access > it in order to configure and monitor the Ethernet SerDes link in > USXGMII, 10GBase-R and 5GBase-R mode. By including a wrapped > legacy 1000Base-X/2500Base-X/Cisco SGMII LynxI PCS as well, those > interface modes are also available. >=20 > Signed-off-by: Daniel Golle > --- > .../bindings/net/pcs/mediatek,usxgmii.yaml | 60 +++++++++++++++++++ > 1 file changed, 60 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/pcs/mediatek,us= xgmii.yaml >=20 > diff --git a/Documentation/devicetree/bindings/net/pcs/mediatek,usxgmii.y= aml b/Documentation/devicetree/bindings/net/pcs/mediatek,usxgmii.yaml > new file mode 100644 > index 0000000000000..0cdaa3545edb0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/pcs/mediatek,usxgmii.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/pcs/mediatek,usxgmii.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek USXGMII PCS > + > +maintainers: > + - Daniel Golle > + > +description: > + The MediaTek USXGMII PCS provides physical link control and status > + for USXGMII, 10GBase-R and 5GBase-R links on the SerDes interfaces > + provided by the PEXTP PHY. > + In order to also support legacy 2500Base-X, 1000Base-X and Cisco > + SGMII an existing mediatek,*-sgmiisys LynxI PCS is wrapped to > + provide those interfaces modes on the same SerDes interfaces shared > + with the USXGMII PCS. > + > +properties: > + $nodename: > + pattern: "^pcs@[0-9a-f]+$" > + > + compatible: > + const: mediatek,mt7988-usxgmiisys > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: USXGMII top-level clock > + > + resets: > + items: > + - description: XFI reset For this two, why not just "maxItems: 1", since there are only one of each? > + > +required: > + - compatible > + - reg > + - clocks > + - resets > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #define MT7988_TOPRGU_XFI0_GRST 12 Why? You can just put the raw numbers here and avoid the issues with the bot being unable to test your series. > + soc { > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + usxgmiisys0: pcs@10080000 { > + compatible =3D "mediatek,mt7988-usxgmiisys"; > + reg =3D <0 0x10080000 0 0x1000>; > + clocks =3D <&topckgen CLK_TOP_USXGMII_SBUS_0_SEL>; > + resets =3D <&watchdog MT7988_TOPRGU_XFI0_GRST>; > + }; > + }; > --=20 > 2.43.0 --YruC2MCzDdXijj9+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXiJNAAKCRB4tDGHoIJi 0gh/AP9oyVQ1N3J5pkEjMly0tOqZP7FqsYaPHKpAmHAo3tjaRAEApbppZl/Wk2dK aaGNYg45wHQl3e7wiQc2iLV/iy3CkgU= =IpBA -----END PGP SIGNATURE----- --YruC2MCzDdXijj9+--