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: 14360 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp9182wru; Wed, 2 Nov 2022 09:24:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM428ZphJ/eTacHjXgdiyyEvTbn9JWMsKGC7ZIDrhRTv/dnSznJv3rIHxb1EOmcuVPz5oc4n X-Received: by 2002:a17:906:fe45:b0:791:9624:9e9f with SMTP id wz5-20020a170906fe4500b0079196249e9fmr24983751ejb.86.1667406259521; Wed, 02 Nov 2022 09:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667406259; cv=none; d=google.com; s=arc-20160816; b=gSvRsTeQgU/P5GSuCJQ4XTP3oxPrX56Huky573OXlE+Wv27mSR8e9eJt8UR5OWcRBy v1esuLPspB9juMCWFM/S7p0xY2eMg9SfW4DIEAbSl7EaDvaa+biXP9GgF06hJnrSo/Re EU6vQwJk4HSSaHnenFLsFICc2eCYLWiQy0lDT8U73Zb1wlMpi+oONcpODxOc8syqROK2 6aOnEibZpz+gcIJdjufn7MoNGI6kiDGLQsDOQiDxw2xgbcEsVT1bUursP74QR4wXKBmx EYrIl0jlsbj63ql4TVezyCcdsUnz8oeDCdAD4T8PGXOhE7MdhU681xL8rh6uzD+HtJCW bXtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TcjKNQcJeWbJaypxypHYP0ACBt1JoRrh+USGvZK/Q14=; b=FHo1tPxJpYmcwTBYPhk9f2qOm/f/8Q/kWPHwH7rN0KvcA8EyAgZYpZrWnJAVO2NqIM 3ZQ5thkmvECfQDsyIvu8Zzvzqhj9Vr8WJAcPPJSkqVTirnXlRn+OiqzuOFRzqtKTPNs5 xl5HI8fWYS4JNgYL5g/+yb/C9bBozZBp0QhFwVQkuXre0EjbwsAC75TKIKR/3n1mIpmE 03953WYL0tAhH5L4n84HCoArurIas7yqtthpwLbeP3OIDkDnNDtIU1uPT4tG7BbBLCeQ qC89zL70CGGRSHAndjoeivy8jQJErq7y32swVX936uLZ2djNVG4aA69h0ckDHH9ZJ5XD L5wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xfSDJkT8; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw14-20020a1709066a0e00b0078da3cd3073si17838349ejc.628.2022.11.02.09.23.54; Wed, 02 Nov 2022 09:24:19 -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=xfSDJkT8; 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 S231564AbiKBQWo (ORCPT + 99 others); Wed, 2 Nov 2022 12:22:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231625AbiKBQVj (ORCPT ); Wed, 2 Nov 2022 12:21:39 -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 D411431EC9 for ; Wed, 2 Nov 2022 09:15:21 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id l9so12031285qkk.11 for ; Wed, 02 Nov 2022 09:15:21 -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=oRPHHQoAjYqJslVaQIQR1vZ0M2yWRCleTGwCZk+Nz3OyCnv0yk8wzc5tu83hXLP5Vd EmgOXPDynwiKuwdC4sLg68VBhHJ4BEtBYIXKka8x0XNxjHzfa7y325yKQVkvxwWOf8e1 4xQkQNTS0+gmEG83ck7BZsssrMNvcFC1wURjc9iuBFn7CA1X4gPBdOrx4YaUV+xYTSbv v3jRWSXlewx9VICSe941Oqh51caz3h8p2Xcwy97ftH7ivAl97V4E/t/9sVxV+/R8OBUZ HH7ovyXq+/N2hrAuCyqnfPrAtnvoE3LOJfBYcJEIq4gyhttQwimz70h3rIZlB6ak80XL br4A== X-Gm-Message-State: ACrzQf1UBBwb6KW0z9D/uN294+ex/o8Ojui1XWI2UJ0qGCglxOuUYrTX AZi4kerNhnCmMmShEc4n5U0CNw== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747940595473417649?= X-GMAIL-MSGID: =?utf-8?q?1748402186087658880?= '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