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: 14359 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp9129wru; Wed, 2 Nov 2022 09:24:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5nqsD7FZQQJ7UiDDWq+RjCiGmjx8/uiaFwhy7QnxSnDHmghOuN6vOChvaLkTbmDcw1qLiB X-Received: by 2002:a65:5886:0:b0:439:8dd3:18d4 with SMTP id d6-20020a655886000000b004398dd318d4mr22118121pgu.430.1667406251110; Wed, 02 Nov 2022 09:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667406251; cv=none; d=google.com; s=arc-20160816; b=CsKRd/zgruV1PExBbUjmkcWdte6X0CLXPUk0smSduevs32Rs3A76qpxgPum/UDtKa9 Yi6gnvbZdwAxOzoMFl+EgQwHveAbwkplIJO2uBFPBM3u8QJ/RcfHdTiHUHO4xq7z8z6c PsAg8VR4X3GcHuVjQHR7XT+yPdsCgndoPsdjtS2IpAUabv1d6qu1mkEnmlmltyLogaMM 0Jg8PAjUegF0GEeXpeHjEPjFyCGBxbb0fEtrmWMlU/kotdQnR0inNhasNc3Kp766uDHJ dvCLzMaPSnSLVGazt3+IopPmpvDALyQvTDCk0yMFgIpaEhwt8XlaaCb+ckuOkkfAIaxF Q8CQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VUIqt5qgvlwR23A+HVBIo3LzIMemIRkCkHJ4mOyl2J8=; b=RYvrQCPGP+oHJKJL6BXc2emLkDqQYv4ZH6jUmF3JTEJ/J5KtmUca+tbVnnW/5UBlui diE8sheqLKokEPwok5MRqREDHxeHInt3paKnjnieogNtlIU6ozjgf0983jlpiQ9snGjw Hxss2wgAC+g+voN1g9PV8zJF7TyAx64YDkRtcIe+KXsSm6LxU+iMQOokjl7UeU+dLN6q Y60J/2EipNpnQMFEnZf+u5OYzoPKQec9wbHQaKoGjVowTz7+OUQyT35zGX0wEiGdvBOG H44O39D5E+pTqQE6HS9EkVQt4jR7Scw2KfX3ZbPLu3xvxmHPxALBsWa5mJ3zKu2UtILS BWNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FVlskIjr; 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 y63-20020a638a42000000b0042af7555d10si14571198pgd.862.2022.11.02.09.23.57; Wed, 02 Nov 2022 09:24:11 -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=FVlskIjr; 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 S231628AbiKBQWt (ORCPT + 99 others); Wed, 2 Nov 2022 12:22:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231424AbiKBQVk (ORCPT ); Wed, 2 Nov 2022 12:21:40 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2562631ED2 for ; Wed, 2 Nov 2022 09:15:23 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id x18so973758qki.4 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=at09R/w031oZGt74ZuGXzCKHBGXcwRaf5u+4A0pe0sPHgtE3nVVAWbiO8YJFczLrXW BSV6hzoft8UX/aApJoHEvEQwKuK3/ofcmlwygz+k0kq0hovUobpt7hE9KWst/BQX8hTz Fg897Q6rjDY2+D+Ed7/HYY6ycStc2hmUC5NArVzqulF2jv3ar/clATOU3/RfBxrgzcxn WRbts57/EtN8u/vcvnJnWmx3vQeEuKFuyTFQE1MOh+MSAA9y4RcE3G1rAJpOTyLvLB6/ bIrkdmCJ9P96w2fptuejkROx0Rb7FuDi1sPKZwu0J40yV1qVBFnfXRIH11E13/01HAju RJvQ== X-Gm-Message-State: ACrzQf32vgGcBxg99Lo16gG0cEVmXwC3zuDxwjjS6Wa0jbrrT82kQ1EB 6ze3J4K7dAIz3fb8BxoaMZa+OA== 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 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?1748402177452093532?= X-GMAIL-MSGID: =?utf-8?q?1748402177452093532?= '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: