Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91BD2C636CC for ; Tue, 7 Feb 2023 18:01:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232357AbjBGSBO (ORCPT ); Tue, 7 Feb 2023 13:01:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbjBGSBM (ORCPT ); Tue, 7 Feb 2023 13:01:12 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16793272A; Tue, 7 Feb 2023 10:01:10 -0800 (PST) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pPSH8-0003tU-00; Tue, 07 Feb 2023 19:01:02 +0100 Date: Tue, 7 Feb 2023 18:00:59 +0000 From: Daniel Golle To: Krzysztof Kozlowski Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , Heiner Kallweit , Lorenzo Bianconi , Mark Lee , John Crispin , Felix Fietkau , AngeloGioacchino Del Regno , Matthias Brugger , DENG Qingfang , Landen Chao , Sean Wang , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , Jianhui Zhao , =?iso-8859-1?Q?Bj=F8rn?= Mork Subject: Re: [PATCH v2 03/11] dt-bindings: arm: mediatek: add 'mediatek,pn_swap' property Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On Tue, Feb 07, 2023 at 06:38:23PM +0100, Krzysztof Kozlowski wrote: > On 07/02/2023 15:19, Daniel Golle wrote: > > Add documentation for the newly introduced 'mediatek,pn_swap' property > > to mediatek,sgmiisys.txt. > > > > Please use scripts/get_maintainers.pl to get a list of necessary people > and lists to CC. It might happen, that command when run on an older > kernel, gives you outdated entries. Therefore please be sure you base > your patches on recent Linux kernel. > > > Signed-off-by: Daniel Golle > > --- > > .../devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt > > index d2c24c277514..b38dd0fde21d 100644 > > --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt > > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt > > @@ -14,6 +14,10 @@ Required Properties: > > - "mediatek,mt7986-sgmiisys_1", "syscon" > > - #clock-cells: Must be 1 > > > > +Optional Properties: > > + > > +- mediatek,pn_swap: Invert polarity of the SGMII data lanes. > > No: > 1. No new properties for TXT bindings, So I'll have to convert the bindings to YAML, right? > 2. Underscore is not allowed. Ack, will change the name of the property. > 3. Does not look like property of this node. This is a clock controller > or system controller, not SGMII/phy etc. The register range referred to by this node *does* represent also an SGMII phy. These sgmiisys nodes also carry the 'syscon' compatible, and are referenced in the node of the Ethernet core, and then used by drivers/net/ethernet/mediatek/mtk_sgmii.c using syscon_node_to_regmap. (This is the current situation already, and not related to the patchset now adding only a new property to support hardware which needs that) So: Should I introduce a new binding for the same compatible strings related to the SGMII PHY features? Or is it fine in this case to add this property to the existing binding? Thank you in advance for your advise! Daniel