From patchwork Mon Oct 23 07:18:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13432448 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 2BCB5C001E0 for ; Mon, 23 Oct 2023 07:19:50 +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=877Oxj4+Y8Bl89VeYzVbMN2o9cVgdg0bR0NLbdFMlHU=; b=3nyIEHXx4+C+vb HSzaTWwO0WMuDgaPS3TKjQSh2F9bRookTLND0YPq4w4CzyjTfHXS9jAv+8EqYRRAQ30snqeRptDNF hAXwi7B/P1vs+Dvg7m1kHWMMHUK/aXSFQOBCYCL085sxr+Y5wzQiD/yS084aWSPcEZab56hiyXQma wPvG7BTVUNBTja5jlwDawK1K4dlSjOBFH/+kfeTO2yQSHnItpWNO3rbZbqq4CB++cEusFpBo0TPYt vcUyWPZbIbPnndXJACT6mxDQOD91DXCWT2Rh9Hfvjxs/MxphCOX9GU1tJ6Y1gOXTC3Y07azflvPs5 WwQaeiaMZWiDKR3iJyng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qupDh-006d5M-2B; Mon, 23 Oct 2023 07:19:25 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qupDS-006cyR-0z for linux-arm-kernel@lists.infradead.org; Mon, 23 Oct 2023 07:19:12 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-507c91582fdso4320712e87.2 for ; Mon, 23 Oct 2023 00:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698045549; x=1698650349; 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=D+/3Yi7bH7Hi+uUsTmtck0vYZ+i95ClqTO7Rae7/KWY=; b=Nvnv2IJUDGhfYtL/4zBA0QMAOaiWEiTDPD59JdtFju9P/eaLmsnskEDHURToYbTDRU hBE/PbvpGTdoPeLk+03XNWc2EFI+MkDIljF53NE5RdjEr+6SaIr1RmUXf7i5xTLE9u23 exaMJ1LclX97nLq4TWciPAM9fzAc6MQjg9lewVnZsoIAR3iVky7FqgB080apgltAWKrB sqg4034nxHlqEi0M2IR+5U24VJjE4A+8hJvQ7NMbI/tCauHwFRuUEqXBcEmzXihkqfZ/ ZYkykyGuq8rAEjKfxYTM90LGLE0UYNChqYUcrczX4PfqOtdZPMWdK3OBeyWV7mcMUvNt QfkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698045549; x=1698650349; 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=D+/3Yi7bH7Hi+uUsTmtck0vYZ+i95ClqTO7Rae7/KWY=; b=I3R64ld3V6dGpfY6GJCITZP/jG7RJeHJdLFJ2T99HiLLoRechus30ti+kfe7h6sjEr f2Lznw16PH5pbX8aaYvBIvH2v7rW8tO04GLh+ajRkBGuxrU54x7XoWHkmWSD9E247lST WlmtdCpD7xzNs0qkcuk6pG1EynrvBBuj3DKsqo1aYNmIPzfKKEeNozgLCj7A9C7IojUz Z3AvP9J5obAlPECZaigM7DmIDqVF5ZlgEoudpfeGGOwx5fllrmi9nx0dcXN6b6ZPgLGz najPWRDgU0G1uH1mF7h5yQyyl69k/5LjhiY7ORSsDkwwHd5UZwJgdYKviYbldej8Bc0d gNdA== X-Gm-Message-State: AOJu0YwX7JtrHlrw56xfLDzbgY7kQr6yrXDIxghbGp3Umyv4/JF2uCWQ Va6WMpXcunWqHTUVx6ZbSvQFlQ== X-Google-Smtp-Source: AGHT+IG5r+tT4MejIfpg3DlgLPXtjo3f9TOqwvkBhhFtIokEWdfdK6p9carAyQ3rI/AH8+g7bjeVXQ== X-Received: by 2002:ac2:5bcd:0:b0:500:b553:c09e with SMTP id u13-20020ac25bcd000000b00500b553c09emr5167474lfn.32.1698045548975; Mon, 23 Oct 2023 00:19:08 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id w15-20020a05651204cf00b00507a682c049sm1578727lfq.215.2023.10.23.00.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:19:08 -0700 (PDT) From: Linus Walleij Date: Mon, 23 Oct 2023 09:18:53 +0200 Subject: [PATCH net-next v5 2/7] dt-bindings: net: mvusb: Fix up DSA example MIME-Version: 1.0 Message-Id: <20231023-marvell-88e6152-wan-led-v5-2-0e82952015a7@linaro.org> References: <20231023-marvell-88e6152-wan-led-v5-0-0e82952015a7@linaro.org> In-Reply-To: <20231023-marvell-88e6152-wan-led-v5-0-0e82952015a7@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 , Vladimir Oltean X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231023_001910_345810_6A06FD1F X-CRM114-Status: GOOD ( 13.08 ) 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 Signed-off-by: Linus Walleij Reviewed-by: Rob Herring --- 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 */ };