From patchwork Tue Oct 24 09:24:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13434118 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 7157EC25B47 for ; Tue, 24 Oct 2023 09:25:49 +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=BeZLcwzOa2PVskftBPAs3VDkBUQ/n8B+dvs7oyt2VUQ=; b=LqmP/hfPxLCbur ih9koHNSpx5Na1eeoYJ0NM70SXsPqLNAYm5BWDorakXDayV4qWEp4dvpn5jVjJJbnprffjRChNkHB yI/cGDMHei36+zmFMXkmqGQ9bxapjWysAzP+ErO9DvhwiZ2hX9jvob9M/tf64LhmzCAfpbmU4G4mE 3KLfM0PsRFChqvv/FBR/YoioPTxnze0y8N6FPdaihigzNkrByadfCnxd11N0CHitQCZiVZdSkOYxc RO2n+7RfHLJvkzzrA2i8K3QVfzp94FrFJMAsNsOVCrz68uijl9XyefcIljJ1zA/Kd6M/VYlsgpulF q99GWYlORwnc4GYtsntg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvDf6-009Igu-0s; Tue, 24 Oct 2023 09:25:20 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvDf1-009If5-39 for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2023 09:25:19 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-507be298d2aso6182731e87.1 for ; Tue, 24 Oct 2023 02:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698139514; x=1698744314; 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=Q8dS0fiX8s3oTQdiSNWl2/6C6tud53gSSackCKtgSFY=; b=WN5pt4HsbRvihggyVht9rdHFDKZiJnIuYSzqpe7b7lk8nNRhrU1L/AdQu4vzAJMMNc NqzX11qGwGpuRtZng7Jm/Fi7haruVMPEYiOk0wQtbaNi9j7EBCvt3ubgCOuOKAZYt+IE 6jEkWODlLomeuPQbwF4hwVBfUylSFdszDw22C0lvb4LvwgdF3GiUqA7fG+f8oDXpAYwj z99uP2r9CIzKqDXY4uqOyobNbITFhqMukGqw/5mFed7oHcWdDQSaS+WeTcdXLIYq86+1 33Qj817irb1e5CECDz9ys2N758+ELx2pA7EAmccrl3OX2TmNL37idbpDkBLu1A0JjENW CcGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698139514; x=1698744314; 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=EvlsYiMh+i19tYAFTfWJ2boGR3ULheiawN9py2+BEQ4mlJ7Qc86N6fQEyw6Yia9K1M z+f1tmnXend14COg8ozn6wukEIZKsKd1gBSChvTln1pJUKNNOjoJeW+t2AEg344LHEfb NZ09hGwc4Gu376M7HI4Nh/qyi42L3DuCBkgU+kFuKOWpzS//thLPfu7CYaqB3WMvLDDS q3HWk+0CjqLDLhZgElx354VhnRcbhrQfhMC5QLxL5QANOwNJ0QgDwy2BvoZxPTH/2cf6 820V2oPLf3t0qhNbRtSfkMv2rVDm8HsHQ0o5ZGNVwrQVjbOfiuiieogPhoZlCcV7545v IqxQ== X-Gm-Message-State: AOJu0YyFK3d6WcmxCwF5SbjQwc7BULBMyMtRHptf/RUDVsV6w8le9xu7 yyDplKYU2KKgHZnNh32kgLBuHA== X-Google-Smtp-Source: AGHT+IEeJSXr1YgZmYIFPp6jS9ts3MwkUn+pOnlBFGKhRqBAjxdCMfGISVkgTdJczoseajqP98zwsA== X-Received: by 2002:a19:8c46:0:b0:507:a087:622a with SMTP id i6-20020a198c46000000b00507a087622amr7387307lfj.60.1698139513947; Tue, 24 Oct 2023 02:25:13 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id c12-20020ac25f6c000000b004fbc82dd1a5sm2060246lfc.13.2023.10.24.02.25.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:25:13 -0700 (PDT) From: Linus Walleij Date: Tue, 24 Oct 2023 11:24:54 +0200 Subject: [PATCH net-next v6 2/7] dt-bindings: net: mvusb: Fix up DSA example MIME-Version: 1.0 Message-Id: <20231024-marvell-88e6152-wan-led-v6-2-993ab0949344@linaro.org> References: <20231024-marvell-88e6152-wan-led-v6-0-993ab0949344@linaro.org> In-Reply-To: <20231024-marvell-88e6152-wan-led-v6-0-993ab0949344@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 X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231024_022516_012954_8A0BEA16 X-CRM114-Status: GOOD ( 13.30 ) 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 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 */ };