From patchwork Wed Oct 18 09:03:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13426713 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 5A54ACDB47E for ; Wed, 18 Oct 2023 09:04: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=37/HBf77gV9wRWjYzpcabCrDLrJDOuh3i4fEN5Fbk6Y=; b=YO5XTOF46c2oAL kHSNsP+8u5ED5Gw+u1tj9AMaGADepA2koZppfX4q2pSkAUTd+jRYY/dPnTfuZ1nArx+xXj8RciNit /SpwIIwgoBGWkpTLS8LayZxg7Ga3N0ucdT2feMf0L4myx2TnNHjwlu7oAJp8dL05tE4fMksqPvKvo ZjYWdxR2DiF1ZscdYqzuSYbP23hd+mrnJ3eL3LnzLqV4hkezEscdDdpULXDP8L6QH+scl5smJ2/Ls 1RGrcye8NvisreAWcZgGMvCO3uGXBpl45murRXPLhYqHrE/TpAQrYCIgFLEdiTKD++e2hEjkOosz8 F2HAej1l61GRYN6IaMeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qt2TB-00EDlz-1A; Wed, 18 Oct 2023 09:04:01 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qt2T4-00EDi7-18 for linux-arm-kernel@lists.infradead.org; Wed, 18 Oct 2023 09:03:55 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-507be298d2aso2373469e87.1 for ; Wed, 18 Oct 2023 02:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697619832; x=1698224632; 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=as+rTKVDVhWn5AZLFNEUP/sdaVHFDVJzFvCNtllU+6g=; b=Bm5q9YdnIlPFrkeGly9Pzivw8V6ifxQjG3dBh+FKz+PD+velR8xI554qk44R3GRWr3 fJS3Lu6CA7R33KOZngdzM18NobFXvpH3GBUBjm4fMpjoUrF0Sh5EyCQvxF8VK7ITMiMu rOyooAUz/KMgACnR7jRVxPG7TTFWCbt57bozmYyY8wjgP1HSJRVK/Vj6vuQQj6sOxfZ7 u1i3JqOJnnz/lmjnH+b+N6tT/C78DOWoM4E0HoYBGkDSezPW2L6ZkB0ICeddQoU0ZyIr D6jwjcyGB2uYKb2che9yp7V6XiccFnAWTB/VMW14VpKPS5w1T/o9atzFWhjcqLfeTibv zE0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697619832; x=1698224632; 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=as+rTKVDVhWn5AZLFNEUP/sdaVHFDVJzFvCNtllU+6g=; b=SYWOd/9o6UXAaahgPygpXDvl30ngHYZ7YRvlR0eiU3PPOjbwx8hxu7qs0gCddcypB8 Yty9cq6KsZaMUPdSqTOBMopDeC5dgyIsbxNm1zfdcEAUUxBVP2zPU5pxFnB6fcNn84lI h2P6fCE0GDqVVrlUr9UJLwql1Pgej+JV/sWxf/SGVl/2o+Ddfq0UAe0MQFpkZdjQAhSQ 0+YwOGgNalv30B2rc6dsZKBry/ywMcyfybAkUXcnh3+Sg1DSsKQoULhspMvDmFKtEi3K xjU0cleX9auiwWrPJqIX1puM1odT0lhTAXQmQja2e/DWOP0g4CqR9msAw4kcEdl3IeYi RuBw== X-Gm-Message-State: AOJu0Yyv1L/UNMyym+MVTQ9h755IpXngYyG051hVdg7hCdiUzhQOGyOi 9GCi5rDK+twc2SO/mxeAO82NCg== X-Google-Smtp-Source: AGHT+IFIaoucl+lkKRp5as13fMnNM40xIgQBWtdL1v4ouDauyAdgG8m9UtPuvcSRfjsxSL4BWjmD/A== X-Received: by 2002:a05:6512:3ca0:b0:500:b42f:1830 with SMTP id h32-20020a0565123ca000b00500b42f1830mr4173103lfv.63.1697619832414; Wed, 18 Oct 2023 02:03:52 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id w19-20020a05651234d300b005056fb1d6fbsm616595lfr.238.2023.10.18.02.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 02:03:52 -0700 (PDT) From: Linus Walleij Date: Wed, 18 Oct 2023 11:03:41 +0200 Subject: [PATCH net-next v4 2/7] dt-bindings: net: mvusb: Fix up DSA example MIME-Version: 1.0 Message-Id: <20231018-marvell-88e6152-wan-led-v4-2-3ee0c67383be@linaro.org> References: <20231018-marvell-88e6152-wan-led-v4-0-3ee0c67383be@linaro.org> In-Reply-To: <20231018-marvell-88e6152-wan-led-v4-0-3ee0c67383be@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 Cc: Christian Marangi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231018_020354_385573_B70C30EE X-CRM114-Status: GOOD ( 13.36 ) 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. Signed-off-by: Linus Walleij Reviewed-by: Andrew Lunn Reviewed-by: Vladimir Oltean --- 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 */ };