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: 13454600 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 CDCAEC4167D for ; Mon, 13 Nov 2023 23:36:35 +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=1vVPHXcoPtwBaE b1JaQXH1oFRPuw32G8QxHhdZFV1U2kSAfY/RTne2xQWqQETjg0jSu2lxtr70eEzJM6h9Il2sKfX6K QbVHIqrPzdxxAhuqv17qk/JAoikMtRZMqwFYM8iPGjUht91zlndrc8F3awR0PzRceg3xVd3gHihQI 7DG4r4hdsRETj3P6sqtq2t+eIzWj/l5nr6OhCaXFaQqWB8ZXIC91IXiZWXZvgNQi+5H5woiIVEc4e 1w5uJ6QlLhy0WGfYhMIghXliVkigo1nLrk0/Fp6Eq/BhTq2RVEqRZ/UXub8TGydH1qzrn4lTKhE1v XQ82XsqVdjLckPlVM6Qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2gTR-00EtRn-0Z; Mon, 13 Nov 2023 23:36:09 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r2gTK-00EtNd-1B for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2023 23:36:03 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2c6efcef4eeso66132321fa.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=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=BYz3ViqNBIlk4gucmjYZgi2VC6BOMr4x/1TgJIBBao7DPIOCothTUd9Q7nMk0aC51a AhYNVs5qQbIBfMBLYYAsH3ydHF4vliLZK2yv1IK6LYrUEKsLG72whoHACgurriPPVRjm DyyJvTv6HpFy+6EzjexY5HJsvzIIRaOmc/fHLvBdjCHqhrix6peEBbvwJxh3aKFzu5Mw t7yo2XijhiXHvTzYjICiRngnNXg/lI9z5P9UJz1GQh9flbnTr46nSzXNNmriNfCaTbQq HcOkNPUQm7DzNZfC0hjdD9pedJ80cBZqFIg5KHM2YsYLo7LS/WTLZ6p0owOL9KwRrDVG DiVA== 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=Ee1eSacKouznSya46tp62ZsxuMGaWgWJRvZTqoyszyuHztehIuJGnI5XiD91AgmGRi WCluiztbRujzsKomlNyELKrHBMcC/8+q9xanlnNkSfVLrt1oC7x0olS3C04uTjL0L+t6 lSWmC8irGhMqWt3/fw/5Y7GNdUQnsikBjtjpi0FBt0N5QF90hTaT545fyieOrJXEausD f2sAAqHwCrhw8bCqAVZb6Hgq/WG+2um41hFKWGZJ0avYFcnxFXpE3AIeHeXV5P+DBM+b MNAh01hFk6I6Z0XImK+WtgfJgl6y9HnrBIfHvtbnCgm8ZAF/UttXephOaxf2DrdBk97g PqnA== X-Gm-Message-State: AOJu0YyYlxHQ1Woo+uLoicnnAO/HZC1J1wNRhCH5a5OMDkYVeDwzX8MY /ljrz+HwK6/PxHhHF0iam8b95g== X-Google-Smtp-Source: AGHT+IE6N7o4JJ2tj/eDgllrzti0scb8e37t/wSl6LTid0qJhAUkHyoCVWNBKRdo9x/Ix//9+Gy9cQ== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231113_153602_405953_8B22CD56 X-CRM114-Status: GOOD ( 13.10 ) 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 */ };