From patchwork Mon Nov 27 15:43:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13469866 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18467C07CB1 for ; Mon, 27 Nov 2023 15:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2HnFwnyHyltERAVnFYRakN0SOm7PJtpgmUPl8QP9c1Q=; b=MZLAJQW6dRnDwG Sijps8IIshfUdkmGa86N5UUZLVNMEdSLN8sNODZxY08FXTJRea/ZiFzGceWcgpYIjqqinlTraE00R 03bjO2UXxASr3xsr6JNXZCrXgOmaYvxTR8fRS/IiUteLeHz7CZaZG2s2t7CBqafwjKXG1FJMqJ4k7 8eZZZ9pI5YptavbEvJvgFmnK1V5/u5uOf6Ht3RmA+MQvbq+KHeNIjCMInd3b5SvBrQowsmI38PLlA pCiWwXfJFn2hnWmoG2v4sMITM9h1uRgeOll+0SBKIQLC873FJuu8yDOgISG0zTYTJRKRWGWDNg8Fa 2cKDXKs50IEkg8CU4C/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7dlf-002qvU-2l; Mon, 27 Nov 2023 15:43:27 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7dlY-002qr5-1L for linux-arm-kernel@lists.infradead.org; Mon, 27 Nov 2023 15:43:21 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2c51682fddeso54321011fa.1 for ; Mon, 27 Nov 2023 07:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701099795; x=1701704595; darn=lists.infradead.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=scYkO+1bSaP+NPs2RBO4rn+MgXdi1bDLttP7VisjHYwXTnGJbM/m5H9Oc9Q263OAZJ 2LvGhgkMZBXV/eh1HrgJ/VvlJN4/yTzfsT4Eqm0epvKyxSv8SzvfNG8HWT/sGDkyj1y9 qr5MGqSoFsZ+zDgQrwgXiRljRecPt0v5rXpb8T+0zqL0iAXCRLU04jkkL9SjD9xA+3o4 GsH7D+/kRAlud/3mxNllwVoIqpNdIwiuPh3mB+uIPpYTCJbxnBwTFz3W/RhMVRowEQbA UQ3QEOR9XHn8Uw1ys99qPM4WN9eDT2PD1vmf21QFGnOhmmIELm6hZNRXL0aU12CuA/Y6 EyPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701099795; x=1701704595; 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=n2XvXssubI1gK5HcAcLY3oiLgCwgjEmealgdDH5JeABX4upMZUOsEeZU/ioKlH0OMw +1NTotPvfzVBs/S0ycZasW1WnQviT+AnD+ZRuSW1EKJbfAek50rmLYv79T+0i4hzUbIR qw1zlGw56HBUhrDRTSOMxLVjG2nnuABGS/PYE1SOb+Ig6dJtXPdqBoD+p+0TN5fShrTM C34wctABqDeCybqD4YJtr/0DAyBTmjvxnlsFQ1J4kmIQmfHxbuXOlVwB/ndfMgRGs8mm i+gk6xfn4qoi5fzdgvwcK0Rrd+kDKYl+WKn05K99LoMNqyjz2yeHHTW0Q2EFlOc4dzwn zpRA== X-Gm-Message-State: AOJu0Ywo7qVItiPzTm8yDsy2bIhmjNVrLoH+oVyV5fmIrYhrUti1rhY5 gyYMy7jVKYMKZ/dB29mCU3hTUg== X-Google-Smtp-Source: AGHT+IGJIh0iNCqcRaBEhXI0IvYR0jy6MsPgVEUCTzSshOjc0I/4XTIINDQMn8M1qJldBnQ1LgxgaQ== X-Received: by 2002:a05:6512:3e1c:b0:50a:7868:d3c3 with SMTP id i28-20020a0565123e1c00b0050a7868d3c3mr3315354lfv.16.1701099795086; Mon, 27 Nov 2023 07:43:15 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id v28-20020ac2559c000000b0050ab86037d8sm1505049lfg.205.2023.11.27.07.43.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:43:14 -0800 (PST) From: Linus Walleij Date: Mon, 27 Nov 2023 16:43:05 +0100 Subject: [PATCH net-next v9 2/5] dt-bindings: net: mvusb: Fix up DSA example MIME-Version: 1.0 Message-Id: <20231127-marvell-88e6152-wan-led-v9-2-272934e04681@linaro.org> References: <20231127-marvell-88e6152-wan-led-v9-0-272934e04681@linaro.org> In-Reply-To: <20231127-marvell-88e6152-wan-led-v9-0-272934e04681@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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231127_074320_457323_8E94D24C X-CRM114-Status: GOOD ( 13.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 */ };