From patchwork Wed Nov 2 16:15:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13028549 X-Patchwork-Delegate: kuba@kernel.org 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 1CD8AC4332F for ; Wed, 2 Nov 2022 16:22:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231335AbiKBQWl (ORCPT ); Wed, 2 Nov 2022 12:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231628AbiKBQVl (ORCPT ); Wed, 2 Nov 2022 12:21:41 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D7B131DEB for ; Wed, 2 Nov 2022 09:15:22 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id x18so973716qki.4 for ; Wed, 02 Nov 2022 09:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TcjKNQcJeWbJaypxypHYP0ACBt1JoRrh+USGvZK/Q14=; b=xfSDJkT8XGT4e4GmeeaWc7Of/KTqwBrPhbnq7ACAM4TlvQNTQJsdiSNILilbdC9oi1 4apQNI33jLHcYYwe99FL9Wx5eAJf/7oSWRd8SmaRT8SFH8zxy7v4we6aJIoKGz0fnFOe OrUwdUA67tGtERKnwLddI3MA/v7va2GvgpqnCkCGig0pVnS5L5MrwurHdpnvTBZLyNqZ Jk3olgal7bz8PFP/3mY5xjJdgd6VJZwBhvBEO6tNerrMx/zk51AAR8KfzI0gjrQYa6py +5n27E4jzNuUu+Tsn1AftYIRdzqxTLKAyMtBCvF1x4hs0SNSCYGhZe5UigdMMY8vZ8Fn AfXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TcjKNQcJeWbJaypxypHYP0ACBt1JoRrh+USGvZK/Q14=; b=5EUP4UX0tKXm2NIu7hKGxd8UDjvbpCQnz9L90Js6URIeANvYD7fnIUItMDna3GEBcR MDXVWJ2oXL1H+o/FAjYyy5i9H/OFMWghxsM+4MpBVK6dF2ZydAlRI/qxipSmwOMSIB+0 IS74YniXwuznJBJeRagafARMD1edT5YGcoXsS+GAhrdG5mOcrS5YQP06RnMU1EfksHXU OlhYYTA7XkU2NNfSxzTvB9O4bpy5Tg0ySz/6QsymPyVCy/QNSho4FyKwW81BbtkR4gOs ua5O6RkJkpKF3oKi6+8rfjrHxiJWRVv8gmhVip4Qs3KObQqZ0FfwaeYkZRP3zkcncsKF G6SA== X-Gm-Message-State: ACrzQf2XNxKxuo5DXeAuUk95fawQbeSIOooxECTeDsLVePnX49OGYSaZ zfLhwEG2huQtVylopqo+92Be6w== X-Google-Smtp-Source: AMsMyM5lWjCc8VmTbYzcwiRCiZAoSwDqOaJTGXmM56j9zo8d4VSkWFPN8mpVRC2ZGVTbmL8MSh5mYQ== X-Received: by 2002:a05:620a:294f:b0:6ee:b598:2625 with SMTP id n15-20020a05620a294f00b006eeb5982625mr18462493qkp.415.1667405715315; Wed, 02 Nov 2022 09:15:15 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id h12-20020ac8548c000000b003a4ec43f2b5sm6831571qtq.72.2022.11.02.09.15.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 09:15:14 -0700 (PDT) From: Krzysztof Kozlowski To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , Oleksij Rempel , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Oleksij Rempel Subject: [PATCH v3 1/2] dt-bindings: net: constrain number of 'reg' in ethernet ports Date: Wed, 2 Nov 2022 12:15:11 -0400 Message-Id: <20221102161512.53399-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 'reg' without any constraints allows multiple items which is not the intention for Ethernet controller's port number. Constrain the 'reg' on AX88178 and LAN95xx USB Ethernet Controllers. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Oleksij Rempel Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli --- Changes since v2: 1. Drop changes to switches. 2. Add Rb tag. Changes since v1: 1. Drop change to non-accepted renesas,r8a779f0-ether-switch. --- Documentation/devicetree/bindings/net/asix,ax88178.yaml | 4 +++- Documentation/devicetree/bindings/net/microchip,lan95xx.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 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 From patchwork Wed Nov 2 16:15:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13028550 X-Patchwork-Delegate: kuba@kernel.org 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 84B26C4167E for ; Wed, 2 Nov 2022 16:22:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbiKBQWm (ORCPT ); Wed, 2 Nov 2022 12:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231641AbiKBQVm (ORCPT ); Wed, 2 Nov 2022 12:21:42 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1997231ED1 for ; Wed, 2 Nov 2022 09:15:23 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id z1so6188753qkl.9 for ; Wed, 02 Nov 2022 09:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VUIqt5qgvlwR23A+HVBIo3LzIMemIRkCkHJ4mOyl2J8=; b=FVlskIjr+sENRJWrtAh2zV8qqLujiM4y+aUUEzUPCKxu10SAzprl2BTMKUDXeAXmsa pTBQN5MOerOiiIU+/htxqxDfmOZdm0HsTjVqJeLWIzCHgLCgTULqjUwDQPsR5htfSfdP TXsdihcdQ4ldzdjkA1xRdlp3ulMwrXCBglBz7GIv2AVmd1wXV0NYSDXS1cSgYWiNwNIb zvR0/0VXuq7jK27wEB8R66hrMMyHG0uMp2KYin1AcEQ6AQNy+qmjYISDrFb4QUyq+6X7 ZQRZqE58xVizemJiCDA4J54F6ApQY2/EFAQTLeVD1EadMIcZ0UheXRPHvdlSIupGH7p/ 9XGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VUIqt5qgvlwR23A+HVBIo3LzIMemIRkCkHJ4mOyl2J8=; b=eMKkaqd9BSFsC0LTBnFLB7NoUyokseCDnT3hjGlR8FnjdywzpBpBFml+1RUJ+zWGDx r2jM9UA7sZxu2jsMKGbzgL5BXjVuI3v4vRcKEMNsIkzLzNW0kugnSA1Oxrpn3pnuKjKQ pzUYCsHfp+JhBjXZpHEKcY4eYN5Hg2MtCVcesHFAKQtIIUiYqd4UXOBvtq9uNuS3owi4 nM5GTvqZ6QSm5FiqcuMnUKl4e91UI8teZdn3Xa2rk990OJhm2AewbVhhwKTXFlcRy6EM FWdIh6OFGgjhacaDOlwvcCXvpPNok5hSU8GUqDdOUsxD5vB8gjUzedwa+HNt/WFK5ZN3 8cUQ== X-Gm-Message-State: ACrzQf3p8UliaQ+FsZqQTa2ZCp98qwNcc2DzXWC1gq/bRa2epKF/M51A gkwjNz+Yk01FDHzFGHubaFgogg== X-Google-Smtp-Source: AMsMyM41FmWXlA5k6IlmlP57QHOAFPhcgS/Hs4YLXIX7ot05fxx9yV2omsjHYy2A++h3HUiXZE8iBg== X-Received: by 2002:a37:8847:0:b0:6fa:4e9a:7fbc with SMTP id k68-20020a378847000000b006fa4e9a7fbcmr5790560qkd.576.1667405716686; Wed, 02 Nov 2022 09:15:16 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id h12-20020ac8548c000000b003a4ec43f2b5sm6831571qtq.72.2022.11.02.09.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 09:15:16 -0700 (PDT) From: Krzysztof Kozlowski To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , Oleksij Rempel , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 2/2] dt-bindings: net: dsa-port: constrain number of 'reg' in ports Date: Wed, 2 Nov 2022 12:15:12 -0400 Message-Id: <20221102161512.53399-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221102161512.53399-1-krzysztof.kozlowski@linaro.org> References: <20221102161512.53399-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 'reg' without any constraints allows multiple items which is not the intention in DSA port schema (as physical port is expected to have only one address). Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli --- Changes since v2: 1. New patch --- Documentation/devicetree/bindings/net/dsa/dsa-port.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml index 10ad7e71097b..9abb8eba5fad 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml @@ -19,7 +19,8 @@ allOf: properties: reg: - description: Port number + items: + - description: Port number label: description: