From patchwork Mon Nov 13 23:35:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 164677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1541585vqg; Mon, 13 Nov 2023 15:38:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhN0LU9Vk4r9pjN0zHfxR/ZhBu6YdABqbMWR2/elFM5JBnvJ+ubbkylZY0y7owUKImC1RU X-Received: by 2002:a05:6808:229e:b0:3ae:e79d:7984 with SMTP id bo30-20020a056808229e00b003aee79d7984mr11570154oib.55.1699918682043; Mon, 13 Nov 2023 15:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699918682; cv=none; d=google.com; s=arc-20160816; b=NsrLGHwayRTSN0E6DcHQ7jZYe4ZpBRVUUZAAsh6JG3rF0uQQZi9j3wP9eGlZcDip9P kuxzO9KtnL73lXuTNWJRRm5jTjjdi4/ktGJtlem0sdjNpkfR3P2s5+1ROzh6JBU8t5up HheI8zLKhqUt/hKPQy8/M181Y630YIuR2bf8MEHDNuYKYM3iTO4e3hnOkNHG1LuaOcwB 5ObL5vipGYLVZYgncL1Ed63a0Px8gYwDxpmA3/zeMHHYaTcrNUCCxLzPlMcMc8ob4V3f YwAi2am/gHhVZB/5vmF0mv7dOa+sZtC+ruLSbpih+ZekkQvCHP5ZjXeODfPvxpUm/GVd FU7A== 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=h0VwY6TaHpxI3borUCq3aH1TpiyNiMcQ1rckV7olnsw=; fh=lB86lsERw+a2BbrSLTtY80M84lr3Outt0uXPA2McRGg=; b=lwvRITpBWxGKOAzpq/i0cZOswY/6j1uDy1dEWSA/9vyMF/2gIyXCfDo7yowazcaOwR zXGfJDn7On2R9qZn9k2ImUABRme+oHIhBvzrAyT7R8qA8rRRX7xzWpIE8zE57cfAlX// FxY36IQcdVjCcNW608QxYXW8ZDeGQVusdkWIam1b9kHBCkAa08RNXfykzMYeCibjDe3/ tHb2pTtmvf3Zpc0cZAp6S1l8uCQna1f1tofVzImeWHI4qDAzUSSYRrfNvNLHRMg6TZ63 6seTYnjbv/o6b5RS1XGK9dACUjOLLKtWI2i2mytQbk5atTsQ/AS5YWrqAXQ6Gdvdn2xp Qjpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U9ImV95l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bx22-20020a056a02051600b005b92b8e70f1si7635729pgb.27.2023.11.13.15.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 15:38:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U9ImV95l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 814938092239; Mon, 13 Nov 2023 15:36:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231923AbjKMXgK (ORCPT + 30 others); Mon, 13 Nov 2023 18:36:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbjKMXgF (ORCPT ); Mon, 13 Nov 2023 18:36:05 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C24A099 for ; Mon, 13 Nov 2023 15:36:01 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c6efcef4eeso66132301fa.1 for ; Mon, 13 Nov 2023 15:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699918560; x=1700523360; 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=h0VwY6TaHpxI3borUCq3aH1TpiyNiMcQ1rckV7olnsw=; b=U9ImV95lJRVZr6lVFdXEKaSXFGkCDZ218h6yhSrox3gLbV0bWUOruvU4RwaAxTd+k0 348VFN6XDluKPw+FPSzxfmUkVZ5SDbFHVq6TnhPrzL2rvDgqC3Yk8uIMmSGJt4yY+ZjS qFHH2kqgiB2icbDWNWzNCWAHKyazXcA3Ov0AZqOqJTr7EpiF9GIdd0W9JgyakUkLtVpk akWgv8kY7FxI6P39GgRxxtxAUGcEykLIZopolppVm2hbd828Vt6xey58qIymt+9r2BCo aEJhgXUsuMpy3Z7TSM186tZS2TzxblsK46m2NPWH2o8esTbfy/H4P9pvQ6Lk4gCfJl41 wg6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699918560; x=1700523360; 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=h0VwY6TaHpxI3borUCq3aH1TpiyNiMcQ1rckV7olnsw=; b=V6bQakLJPSu7huGNi2Ur1FmubYf+tz1Y5PL2W0IGvvkziT9hu/jbDv/Srzg4QEPU1K ciCX7BHgnp3yWASSds6GvU/Lhkyj8tWNiDan8tWhWWfMmRFD1Gx4qmwtSk7k9qPem0zh uyO7oW/PR0jQZWiIE4KKJMuzHDfqoMfZCQJ2Y17uTssBd8zkopsJGIxQ++r2PAV8Jzw4 kjqEoTxzsx2c2YpZmTEfMLWjS3JAr2y+zJ+LhqH8ZJIuxyepV5L9ZBQaspM3CckTKqWa 1Ex1DHCaKGnknT8scBmODmZXnscSxk3PCc8ufdw6vdAkSuLK4SkaVDrrJXFOW8F6tnpN CKsw== X-Gm-Message-State: AOJu0YzWFWxct6g+1yvKAHvAIZF1ClWO4LJDyKiyVioGY7YGDXuUg1/p Oo6LVXEjGIVXgOx71yZNcUtvWw== X-Received: by 2002:a05:651c:120a:b0:2c8:3b99:7f09 with SMTP id i10-20020a05651c120a00b002c83b997f09mr471644lja.0.1699918560053; Mon, 13 Nov 2023 15:36:00 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 17-20020a2e0611000000b002b70a8478ddsm1202859ljg.44.2023.11.13.15.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 15:35:59 -0800 (PST) From: Linus Walleij Date: Tue, 14 Nov 2023 00:35:57 +0100 Subject: [PATCH net-next v8 2/9] dt-bindings: net: mvusb: Fix up DSA example MIME-Version: 1.0 Message-Id: <20231114-marvell-88e6152-wan-led-v8-2-50688741691b@linaro.org> References: <20231114-marvell-88e6152-wan-led-v8-0-50688741691b@linaro.org> In-Reply-To: <20231114-marvell-88e6152-wan-led-v8-0-50688741691b@linaro.org> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: Christian Marangi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Linus Walleij , Vladimir Oltean , Rob Herring , Florian Fainelli X-Mailer: b4 0.12.4 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 13 Nov 2023 15:36:26 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782493931567756127 X-GMAIL-MSGID: 1782493931567756127 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 Reviewed-by: Vladimir Oltean Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/net/marvell,mvusb.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 */ };