From patchwork Tue Oct 24 09:24:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13434121 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 B8FACC25B48 for ; Tue, 24 Oct 2023 09:25: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=9qxiKRUaQWFClspAdK0xHZHXYkYsVEj3mmz3LrFavb4=; b=HCdIcse4Gv/8XP wkOKwcENhn8lNsDxfoIQkaSj46CEiCRdaHhG8UrPI9x4yUI0fR0mLC+a8YdgWIYm52VS0Gyk57mzv 0JaTZ4B0+Fc0UhM57OSuKEleB6x37iL5AFYRbsY/bc9A7VX1tXNOIu21vLsCGvNKEDcL4fgc6yQi9 kTddd8rfkUrg5CU1djBF1fpenBbbMU10hQ1vNA2BMSqLFjbn4B2SyFMTVd0eX69W1d/HaHEneioCF PFaczFFLF239BXZH5KXsH+jC1+8xWMzC6diI51SbAIbfEboxvIqwqkvUGJy7AypZk0nw5EsloSNRB imSsPI8akmlomDn0iZLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvDfF-009ImW-1O; Tue, 24 Oct 2023 09:25:29 +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 1qvDf8-009IhW-25 for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2023 09:25:24 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50802148be9so1370165e87.2 for ; Tue, 24 Oct 2023 02:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698139521; x=1698744321; 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=gq8DR5RNSIB2KF67rLQezzE4XvH4EK3ZE14X17dxVQY=; b=qNW3Y/kTwFOVMgKdHLPUjZx0lZOw80p8uboah7+LpUvHwFfetmb/kq5dwUbTw64Ghk tCM9ekbiUgh2XIcqBAfiNU5mpWGwAzJt5nuDbGAXNfO664VxfhRxA9sVEKXxTBMr096Q aECOW3Jg9J8SBEGJmobFoVIXTw1Idt65xAu22LAXgvvsbK82xBwsDoYAMXcdK99N5jqH nhyLv7udC1Sj7Zeq6u2EFQuD/es2Nr+dFwFI62L0S6/mFbxcjGf72C7ps15J1tmcPcOv rQjXxQHKTHycd7azk6ESy3DFqs9VEULD2wzWRS+Ry4VyVZVyqkMr28VRaegz258EXfKJ I9ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698139521; x=1698744321; 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=gq8DR5RNSIB2KF67rLQezzE4XvH4EK3ZE14X17dxVQY=; b=XF0ZO1SKgXIpkJMUIldyHTGqO89UlSZV5dcHF9LkXfXI5oFQOG8iN1F85+1NUfhea+ bMPPG5uVPFG7T+ha9mKEa0uxOZfZuiUNFRmIGZh7ov8RIlyfjEs15pREY9XFfPdf9sl7 lsTefV67umj+wA3RQjizBivipaYz9wzltZKMam+RNYc/SLzol2GbQc9tzT8rggzlPvfK j9FuRsduOqGamSm/Db55gMDDcYt8j+kceAAafLhP4fuGjfwYRhneMT1D6Jsj5JnUgvnq Tzhz9uKcDw6ZrrJOg5z0f79wEJGBhGeuMruFrGkBB3/vNodC24tW/d0tBVCFHJVTCYi0 JXVw== X-Gm-Message-State: AOJu0YyOirMGizi+5HQQBDMaaIdMmYWrqq497i0TZsV5GfS46i7NDVJL 3u4CDprEt4/aXYdHjOYhgtsWVQ== X-Google-Smtp-Source: AGHT+IEIhC6s4qaYOcpgX69fgLjVbeZMZtyqNsr+z/kssL6+1spHtfLuGDSIOIpJm16Vb9DA7ug1/g== X-Received: by 2002:a05:6512:3e0d:b0:4ff:b830:4b6b with SMTP id i13-20020a0565123e0d00b004ffb8304b6bmr10696309lfv.14.1698139521131; Tue, 24 Oct 2023 02:25:21 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:25:20 -0700 (PDT) From: Linus Walleij Date: Tue, 24 Oct 2023 11:24:59 +0200 Subject: [PATCH net-next v6 7/7] dt-bindings: marvell: Add Marvell MV88E6060 DSA schema MIME-Version: 1.0 Message-Id: <20231024-marvell-88e6152-wan-led-v6-7-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 X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231024_022522_685500_B1C859EC X-CRM114-Status: GOOD ( 19.37 ) 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 The Marvell MV88E6060 is one of the oldest DSA switches from Marvell, and it has DT bindings used in the wild. Let's define them properly. It is different enough from the rest of the MV88E6xxx switches that it deserves its own binding. Reviewed-by: Andrew Lunn Reviewed-by: Vladimir Oltean Signed-off-by: Linus Walleij Reviewed-by: Rob Herring --- .../bindings/net/dsa/marvell,mv88e6060.yaml | 88 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 89 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6060.yaml b/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6060.yaml new file mode 100644 index 000000000000..4f1adf00431a --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6060.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6060.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MV88E6060 DSA switch + +maintainers: + - Andrew Lunn + +description: + The Marvell MV88E6060 switch has been produced and sold by Marvell + since at least 2008. The switch has one pin ADDR4 that controls the + MDIO address of the switch to be 0x10 or 0x00, and on the MDIO bus + connected to the switch, the PHYs inside the switch appear as + independent devices on address 0x00-0x04 or 0x10-0x14, so in difference + from many other DSA switches this switch does not have an internal + MDIO bus for the PHY devices. + +properties: + compatible: + const: marvell,mv88e6060 + description: + The MV88E6060 is the oldest Marvell DSA switch product, and + as such a bit limited in features compared to later hardware. + + reg: + maxItems: 1 + + reset-gpios: + description: + GPIO to be used to reset the whole device + maxItems: 1 + +allOf: + - $ref: dsa.yaml#/$defs/ethernet-ports + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-switch@16 { + compatible = "marvell,mv88e6060"; + reg = <16>; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-port@0 { + reg = <0>; + label = "lan1"; + }; + ethernet-port@1 { + reg = <1>; + label = "lan2"; + }; + ethernet-port@2 { + reg = <2>; + label = "lan3"; + }; + ethernet-port@3 { + reg = <3>; + label = "lan4"; + }; + ethernet-port@5 { + reg = <5>; + phy-mode = "rev-mii"; + ethernet = <ðc>; + fixed-link { + speed = <100>; + full-duplex; + }; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 1b4475254d27..4c933a2a56ad 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12625,6 +12625,7 @@ MARVELL 88E6XXX ETHERNET SWITCH FABRIC DRIVER M: Andrew Lunn L: netdev@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/net/dsa/marvell,mv88e6060.yaml F: Documentation/devicetree/bindings/net/dsa/marvell,mv88e6xxx.yaml F: Documentation/networking/devlink/mv88e6xxx.rst F: drivers/net/dsa/mv88e6xxx/