Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp2062886rwj; Sun, 30 Oct 2022 10:35:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5oCRlVoav6UAlrhmqwMNPNNEk+Z9JdYqT/pwNZoGulM8x/8KnkAPVawG/rX3DlRrUTCCdt X-Received: by 2002:a17:907:72c7:b0:791:9ba2:4978 with SMTP id du7-20020a17090772c700b007919ba24978mr8715657ejc.217.1667151348856; Sun, 30 Oct 2022 10:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667151348; cv=none; d=google.com; s=arc-20160816; b=JPQBvIIJt5bdLWD1SygJ4JX69vNOHAKc8jCPt/eytgyO/mMvjGxGTIHAe7ikAiJgu9 zF/QwB5irXz0HaBwWyh9z800G1imVMlriRpzcT8T/mhGjludbJxLX5SupUYdCMAXjjk8 SFs0xDrHv4d/ne/VdhXrRwO2zMhSNsFyKE6R5xI6et7IVEgk4v2NBfsyrJpJK6ECNrg2 Eu+bHEpdbfxw+Yvi9n0wKOhyxUccetTn+GrY8cfo/NTB8lNDKDCH3/g1hlXpneGybvPx 09qe2MYNuqwmvwnbyFYz4UAfURSOL6YouNJfzwIkgmLR86GehqspZlnqVxeZ/EyzRbmI zzIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=h33hinfvibPjmSRZphPBsYrJpmD3O8FV67k4wlOdiI4=; b=Jo5tXfVntnsRbPT51yWKM+s12X3aHxAsTd33GZ2Mig3D78WHOj6NsAyupeauCKmqcQ vyWTtMrSRi0YC6gKFzu+2l4T9DqiNGPCsoDm8abbFUNh6j4yG9KdJg4kLfhLPe8ssIbs t17Bl+xfy2fcMoeWB7VLbjtUdpviTMhWTT/Jqu6u174OHgVac4LE3oC5r1YqFyOQYbS5 JzEdU22yN0wdffH9L85YCA2LalHr6Fmy/ZkQueYqn8biY7SRAjNbqnNzkEM5B2F27Qfl tuoacp46oBY/4YmczqAC1MVyCLvJWpGjCvI70IkAu4SkZUmxr681xkKh/q6RHh7Bg6cJ AqQA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t4-20020a056402524400b0045dbfc32399si6237683edd.552.2022.10.30.10.35.23; Sun, 30 Oct 2022 10:35:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229782AbiJ3RGD (ORCPT + 99 others); Sun, 30 Oct 2022 13:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiJ3RGB (ORCPT ); Sun, 30 Oct 2022 13:06:01 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C950F1E6 for ; Sun, 30 Oct 2022 10:06:00 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opBju-0002tX-Qd; Sun, 30 Oct 2022 18:04:50 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1opBjm-0000cU-6B; Sun, 30 Oct 2022 18:04:42 +0100 Date: Sun, 30 Oct 2022 18:04:42 +0100 From: Oleksij Rempel To: Krzysztof Kozlowski Cc: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Sergey Shtylyov , Manivannan Sadhasivam , Srinivas Kandagatla , Jonathan Marek , Martin Botka , Taniya Das , Christian Marangi , Stephan Gerhold , Shawn Guo , Vinod Koul , krishna Lanka , Iskren Chernev , Del Regno , Robert Foss , Jeffrey Hugo , Govind Singh , Loic Poulain , Vladimir Zapolskiy , Dmitry Baryshkov , Oleksij Rempel , Horatiu Vultur , Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH] dt-bindings: net: constrain number of 'reg' in ethernet ports Message-ID: <20221030170442.GA7508@pengutronix.de> References: <20221028140326.43470-1-krzysztof.kozlowski@linaro.org> <20221028140326.43470-2-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221028140326.43470-2-krzysztof.kozlowski@linaro.org> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Fri, Oct 28, 2022 at 10:03:25AM -0400, Krzysztof Kozlowski wrote: > 'reg' without any constraints allows multiple items which is not the > intention for Ethernet controller's port number. > > Signed-off-by: Krzysztof Kozlowski For asix,ax88178.yaml and microchip,lan95xx.yaml Reviewed-by: Oleksij Rempel > > --- > > Please give it a time for Rob's bot to process this. > --- > Documentation/devicetree/bindings/net/asix,ax88178.yaml | 4 +++- > Documentation/devicetree/bindings/net/microchip,lan95xx.yaml | 4 +++- > .../devicetree/bindings/net/microchip,lan966x-switch.yaml | 4 ++-- > .../devicetree/bindings/net/microchip,sparx5-switch.yaml | 3 ++- > .../devicetree/bindings/net/mscc,vsc7514-switch.yaml | 3 ++- > .../bindings/net/renesas,r8a779f0-ether-switch.yaml | 4 ++-- > 6 files changed, 14 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/asix,ax88178.yaml b/Documentation/devicetree/bindings/net/asix,ax88178.yaml > index 1af52358de4c..a81dbc4792f6 100644 > --- a/Documentation/devicetree/bindings/net/asix,ax88178.yaml > +++ b/Documentation/devicetree/bindings/net/asix,ax88178.yaml > @@ -27,7 +27,9 @@ properties: > - usbb95,772b # ASIX AX88772B > - usbb95,7e2b # ASIX AX88772B > > - reg: true > + reg: > + maxItems: 1 > + > local-mac-address: true > mac-address: true > > diff --git a/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml b/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml > index cf91fecd8909..3715c5f8f0e0 100644 > --- a/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml > +++ b/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml > @@ -39,7 +39,9 @@ properties: > - usb424,9e08 # SMSC LAN89530 USB Ethernet Device > - usb424,ec00 # SMSC9512/9514 USB Hub & Ethernet Device > > - reg: true > + reg: > + maxItems: 1 > + > local-mac-address: true > mac-address: true > > diff --git a/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml b/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml > index dc116f14750e..583d70c51be6 100644 > --- a/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml > +++ b/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml > @@ -83,8 +83,8 @@ properties: > const: 0 > > reg: > - description: > - Switch port number > + items: > + - description: Switch port number > > phys: > description: > diff --git a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml > index 57ffeb8fc876..ccb912561446 100644 > --- a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml > +++ b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml > @@ -89,7 +89,8 @@ properties: > > properties: > reg: > - description: Switch port number > + items: > + - description: Switch port number > > phys: > maxItems: 1 > diff --git a/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml b/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml > index ee0a504bdb24..1cf82955d75e 100644 > --- a/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml > +++ b/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml > @@ -109,7 +109,8 @@ properties: > > properties: > reg: > - description: Switch port number > + items: > + - description: Switch port number > > phy-handle: true > > diff --git a/Documentation/devicetree/bindings/net/renesas,r8a779f0-ether-switch.yaml b/Documentation/devicetree/bindings/net/renesas,r8a779f0-ether-switch.yaml > index 581fff8902f4..0eba66a29c6c 100644 > --- a/Documentation/devicetree/bindings/net/renesas,r8a779f0-ether-switch.yaml > +++ b/Documentation/devicetree/bindings/net/renesas,r8a779f0-ether-switch.yaml > @@ -106,8 +106,8 @@ properties: > > properties: > reg: > - description: > - Port number of ETHA (TSNA). > + items: > + - description: Port number of ETHA (TSNA). > > phys: > maxItems: 1 > -- > 2.34.1 > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |