Message ID | 20231024-marvell-88e6152-wan-led-v7-2-2869347697d1@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1936907vqx; Tue, 24 Oct 2023 06:21:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGc7H4TtQ7poQ77Ge6xvm2YPmPW6MmD04yt6VxGdnDwPXIr2IpPSURFyjH6W0WeA1VWWC6x X-Received: by 2002:a92:c009:0:b0:34f:fdbd:244a with SMTP id q9-20020a92c009000000b0034ffdbd244amr11825216ild.32.1698153671363; Tue, 24 Oct 2023 06:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698153671; cv=none; d=google.com; s=arc-20160816; b=F7HJ55fS57CYQotSU9W9fJuA56wlWE4sf3vuTMCh+DEfbAJc9W98wKFKhyo8rnn60y KDSQzNphX9Y1jZl4PIhDJNP67qQZ3CNfHHuuGPzLcKmQsK71cIkDGIgdvZq844XcJRcD fh+CkBVNeVhibZcsk/4NFIsOkK3A7r1xESHF0c7fm/8xwWC3eNqvPD9LyJQuhaECig5b Mg5FFKIPxfCYHxul/o3sTiTPOJgEc94TkwtnOQMgV5TKw4ULlBUg1UxlGIn3akbc+Mfm iUN2e8sSmQVBUUJ/IC2uSN35WhtPhRX2zEEAuBqS2Z8MUE5jx/AJDyaS9nSFCXPGBtoz oXbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Q8dS0fiX8s3oTQdiSNWl2/6C6tud53gSSackCKtgSFY=; fh=2+V6Ps3JdvX/yAVqaiftiVHUj1hQH1I9FRVFoPN224g=; b=LlSTlEIbFJ5Li8htV/Rk39OjuaCz1G7pEjC5jOlNeXuNvGZj59Mshu7ZQVTUkvKdPM 6FjDkvvu6yAPnwKdE+61eV8OeF+8Xc0NdN4NN21PntSvtZzyNwlqV1XoMxEhFVNfcBuq CU6h6AbwUFTpmBXgamDq01oQMRnLhlYuoWVEHQ49awhc03odd+bYMKPAMbZhFSU/4w35 vUHr7j3K+SuqkfdPMyC0TxIz1iW8vGEpEpM7YV2FCIeUaVuPj0mIsEM3Pd5kz84+FaKq wjgAyZz5pB7jrqL3myNqo1Y0Sdewv1YwKsS4ShJiTMzCCc3NIMhAprNXw/4QquqBkWvm bJSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fgmuT7+7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id r36-20020a635d24000000b00563d74b6347si8536880pgb.863.2023.10.24.06.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 06:21:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fgmuT7+7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 272BA80AF81C; Tue, 24 Oct 2023 06:21:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234406AbjJXNUn (ORCPT <rfc822;a1648639935@gmail.com> + 26 others); Tue, 24 Oct 2023 09:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234418AbjJXNUk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Oct 2023 09:20:40 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFAEFE8 for <linux-kernel@vger.kernel.org>; Tue, 24 Oct 2023 06:20:34 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-507b96095abso6656742e87.3 for <linux-kernel@vger.kernel.org>; Tue, 24 Oct 2023 06:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698153633; x=1698758433; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Q8dS0fiX8s3oTQdiSNWl2/6C6tud53gSSackCKtgSFY=; b=fgmuT7+7UTFWpHnkgEtCIHBht6rKqPuBKoAoHh173UC53GMZIa0G1kHHC+y3YasIaY IdzRe5zqZ1Tzzxdvf9Mnmw4BeLO4eA/9Gm3JYFX8k+3gX4wYrB1JqcITHMYPbgcYrywN 7kFieQYXcBXlot5wMsOsOE2P5YHuWHUQIvI8nKizxCDepPug715miP6rAbG8OiJX6x0A VeQ0uMzCZJnf8/X8ZEjxUg2MiYdSy7KjhV0UK1BHwxxg59Z+NIyXnUvyum5DtaTUyGlW lWQlpjEvE6yR6UFSWoocx/XZwbZ48iTDARuIaGl9KauBQIjCNNiIspECPio7Yu7a6JIK Kh/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698153633; x=1698758433; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q8dS0fiX8s3oTQdiSNWl2/6C6tud53gSSackCKtgSFY=; b=ouRSxXpz8j9RhfyMF6HCMxdvSYUAmzJT80udRrvDbZAdnOl4PRn+RP/gPIuotXclJA bbw6/uq4YpIhpRnZe7JJfwibHhuzKRDobCr3Qm0PvB/gSK8a9uyMh3WF27D+/8dmNQZx EVTGbocoRSemxc8kftI57Moa8TU0ZhwkR+7dn+qragYB1Kbz6IlIFFkFeGpz403yg1Js ZewilTB5X7X2RFRf/dlKs/Vlv1FS2kSJbOuEtIVTnpbs3Cm1dYn4TPN9qUAVMmXLhh+9 A3ImjV1CW14gHT0QE4pwWknImnxezkiUqFsY44BvRNcPmIHN34XOM37ULECd+/UWVda2 wSpg== X-Gm-Message-State: AOJu0YzWUgJVDMiomtZJhkJqNwI266Bdckv53+gOnurFoXdLcghPRTV4 ISK2l36HGdZ1BEK2goqKbPBLuw== X-Received: by 2002:a05:6512:4016:b0:508:1178:efa4 with SMTP id br22-20020a056512401600b005081178efa4mr188638lfb.55.1698153632957; Tue, 24 Oct 2023 06:20:32 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id d5-20020a193845000000b00507ab956ab9sm2147365lfj.147.2023.10.24.06.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 06:20:32 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Date: Tue, 24 Oct 2023 15:20:28 +0200 Subject: [PATCH net-next v7 2/7] dt-bindings: net: mvusb: Fix up DSA example MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231024-marvell-88e6152-wan-led-v7-2-2869347697d1@linaro.org> References: <20231024-marvell-88e6152-wan-led-v7-0-2869347697d1@linaro.org> In-Reply-To: <20231024-marvell-88e6152-wan-led-v7-0-2869347697d1@linaro.org> To: Andrew Lunn <andrew@lunn.ch>, Gregory Clement <gregory.clement@bootlin.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Russell King <linux@armlinux.org.uk>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org> Cc: Christian Marangi <ansuelsmth@gmail.com>, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>, Vladimir Oltean <vladimir.oltean@nxp.com>, Rob Herring <robh@kernel.org> X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 24 Oct 2023 06:21:03 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780643184228710432 X-GMAIL-MSGID: 1780643184228710432 |
Series |
Create a binding for the Marvell MV88E6xxx DSA switches
|
|
Commit Message
Linus Walleij
Oct. 24, 2023, 1:20 p.m. UTC
When adding a proper schema for the Marvell mx88e6xxx switch, the scripts start complaining about this embedded example: dtschema/dtc warnings/errors: net/marvell,mvusb.example.dtb: switch@0: ports: '#address-cells' is a required property from schema $id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6xxx.yaml# net/marvell,mvusb.example.dtb: switch@0: ports: '#size-cells' is a required property from schema $id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6xxx.yaml# Fix this up by extending the example with those properties in the ports node. While we are at it, rename "ports" to "ethernet-ports" and rename "switch" to "ethernet-switch" as this is recommended practice. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- Documentation/devicetree/bindings/net/marvell,mvusb.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Comments
On 10/24/23 06:20, Linus Walleij wrote: > When adding a proper schema for the Marvell mx88e6xxx switch, > the scripts start complaining about this embedded example: > > dtschema/dtc warnings/errors: > net/marvell,mvusb.example.dtb: switch@0: ports: '#address-cells' > is a required property > from schema $id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6xxx.yaml# > net/marvell,mvusb.example.dtb: switch@0: ports: '#size-cells' > is a required property > from schema $id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6xxx.yaml# > > Fix this up by extending the example with those properties in > the ports node. > > While we are at it, rename "ports" to "ethernet-ports" and rename > "switch" to "ethernet-switch" as this is recommended practice. > > Reviewed-by: Andrew Lunn <andrew@lunn.ch> > Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> > Reviewed-by: Rob Herring <robh@kernel.org> > Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
diff --git a/Documentation/devicetree/bindings/net/marvell,mvusb.yaml b/Documentation/devicetree/bindings/net/marvell,mvusb.yaml index 3a3325168048..ab838c1ffeed 100644 --- a/Documentation/devicetree/bindings/net/marvell,mvusb.yaml +++ b/Documentation/devicetree/bindings/net/marvell,mvusb.yaml @@ -50,11 +50,14 @@ examples: #address-cells = <1>; #size-cells = <0>; - switch@0 { + ethernet-switch@0 { compatible = "marvell,mv88e6190"; reg = <0x0>; - ports { + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + /* Port definitions */ };