Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3659707rdg; Wed, 18 Oct 2023 02:04:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFql2BhSnfe+79vEk8CnAWphMwgNw5Gerqtb4MfolLltBjtxBLZ3Zy3nf+rEut9ldhUK7hc X-Received: by 2002:a05:6830:2703:b0:6cc:cc08:2462 with SMTP id j3-20020a056830270300b006cccc082462mr5560932otu.7.1697619869426; Wed, 18 Oct 2023 02:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697619869; cv=none; d=google.com; s=arc-20160816; b=hVqoq3hZN18FCKZTtVdbYtUGSY/epEFsWiyNDis/Dr+ZwUa1vhf8sCaYeEsBzpIMzx sDOCRv+xQZJIFe8Y3557Uqms1darPc/KTm8iGRFgMvit0eeda+h4FZRxnuWNKD7y2AEE SHw0WyOTULSYqD3p6a7/molX+LWejwWEfsxNVLAiJ2ziSCT5TR3xgNAd5rfI50B90oAT f2XKhkqEEq2m32IdmVRdMpKBxEYxgi08dntQe9a6EXirK15rVFAYC9ENykYbC5mqZEDn 2mfAWiF4hNzRsZvzlGSXXDX3N+/259oDtawHHNhYSV6/3Nzr7uQjNKz2rr+CngfDZT0Y 2XUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=zaIruG/+oRLmIiPtyA4re6+dZhPVyRXTEXdAK4NZbCw=; fh=aTFnFe9atwfOYas2jpUC764SgvternTIWFn22IOx8z0=; b=oNrwHHep/AZFT109P3UVDkweV7OYcHgmY7yZHQ6YMFlNfxu3jxP0QsV2p9AVbk+rxE IDkyCtgxz6yRY6Oahu5EOAT1M2CxtIBRujqo9WT4PX3zc1YAfoyyE34DJLz4eMyI6sjE 5At5R7zaHkOMO5GKssxmV4ofwrN0oI9u0rT+qbp+qYzw9cbqPC/tN7o8mvk5C3fPFxEJ GP/o/TsnA0ygH1hMb1Wt17VHONgBBH1HgUQktCGhimdqONEef/PcuWR51MtScMnQUly2 88b9ZJBuytGebzTiJ9ND6uVY/pM8frRhq1EpyLFm+kGnv8VxQEhKXgmwS8G9RzynTxiy KLxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OoAfKx6A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id w9-20020a056a0014c900b0068fcf194dacsi3723397pfu.92.2023.10.18.02.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 02:04:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OoAfKx6A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 87ECA80FF028; Wed, 18 Oct 2023 02:04:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbjJRJEB (ORCPT + 99 others); Wed, 18 Oct 2023 05:04:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjJRJDz (ORCPT ); Wed, 18 Oct 2023 05:03:55 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10FAAFA for ; Wed, 18 Oct 2023 02:03:52 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507bd644a96so2246459e87.3 for ; Wed, 18 Oct 2023 02:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697619830; x=1698224630; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=zaIruG/+oRLmIiPtyA4re6+dZhPVyRXTEXdAK4NZbCw=; b=OoAfKx6A0Iu/niMUpEPUx3KGuTz5uQZWkFp2jBBEP/fSil7X7r327G3vAyDTooahjp EGgdU9a9cyDX9WJrbJ/rd6e9B0cfa60ku3RDTJODaj4bnkfwy6z5VjzxEeFaoDG01IJx CxQR4D1+cEVfzkybHhSH1OaG3mzXUO10h2ztnvg4K2ndaw1VUspL7Zdx/diYFVihC/VN nIP4FVS4R6l9AY80+0rXhwfYJISvhO5fTGdabBZGnJoPSiGFKGwjI0rLCQzu2RNWUU6t m7xbGxBeanjUGBlXVdNe0Ut5eQ75wa5mvRf6+LcVPtBrxqGCf10YgKF4qtCm9fM3wR1u E4+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697619830; x=1698224630; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zaIruG/+oRLmIiPtyA4re6+dZhPVyRXTEXdAK4NZbCw=; b=jaPdMEV4aS4KQW2lIaxUVyQ39bLguZ3eO8btbjNkUNHMS+uR5t6LvqVpYpRpMxTbhF cg7XfOoYUsotpf5xswqCIF4923GaLKkry5jB/TISYOEujRkS7EGGHYecpQBab+9uYSkG VvOxZQEfM141th135yjF5Pqst//aDE9LNOwaof2SDMMDUUZ3d00eHC8iBlrtPhkCvpjL cmjiVhrM8BGOAnJeAeEfP/U/qL6hrDOL3vKcMJxCExm94Ug98MjhTGV6ILV/Yekv0ZOz PbWBifPxPfIxkeHM+G7Nb5oD6eoqsDpxfA6L11J8Yy92IROWO7FY5UECnrypadCiH2jr +MGg== X-Gm-Message-State: AOJu0YymrNoOryXCoZlc+NoPA4g4tsLPhstezMVK4FpK5PIS2Y/VzSV5 dDvK+LgC1JdzAskbzJ+Vd0NOYA== X-Received: by 2002:ac2:5585:0:b0:507:9608:4a87 with SMTP id v5-20020ac25585000000b0050796084a87mr3480502lfg.56.1697619830254; Wed, 18 Oct 2023 02:03:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 02:03:49 -0700 (PDT) From: Linus Walleij Subject: [PATCH net-next v4 0/7] Create a binding for the Marvell MV88E6xxx DSA switches Date: Wed, 18 Oct 2023 11:03:39 +0200 Message-Id: <20231018-marvell-88e6152-wan-led-v4-0-3ee0c67383be@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGufL2UC/3XNTQ6CMBCG4auQrq3pH1BceQ/jorRTaIKtKaRiC He3wQ3GsHzzZZ5Z0AjRwYguxYIiJDe64HOIU4F0r3wH2JnciBHGKSESP1RMMAxYSqhoyfBLeTy Aya0Fb2trmDUoXz8jWDdv8g15mLCHeUL3vPRunEJ8by8T3favTvmhnigmmNSUtappZFnr6+C8i uEcYrehie0hcQyxDNVWKyLbSkrR/EF8D1XHEM8Ql9oI0Rjb0vIHWtf1A/ktN/5bAQAA 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 , Rob Herring X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 02:04:25 -0700 (PDT) The Marvell switches are lacking DT bindings. I need proper schema checking to add LED support to the Marvell switch. Just how it is, it can't go on like this. Some Device Tree fixes are included in the series, these remove the major and most annoying warnings fallout noise: some warnings remain, and these are of more serious nature, such as missing phy-mode. They can be applied individually, or to the networking tree with the rest of the patches. This series requires Rob Herrings series "dt-bindings: net: Child node schema cleanups" to be applied first. Signed-off-by: Linus Walleij --- Changes in v4: - Rebase the series on top of Rob's series "dt-bindings: net: Child node schema cleanups" (or the hex numbered ports will not work) - Fix up a whitespacing error corrupting v3... - Add a new patch making the generic DSA binding require ports or ethernet-ports in the switch node. - Drop any corrections of port@a in the patches. - Drop oneOf in the compatible enum for mv88e6xxx - Use ethernet-switch, ethernet-ports and ethernet-phy in the examples - Transclude the dsa.yaml#/$defs/ethernet-ports define for ports - Move the DTS and binding fixes first, before the actual bindings, so they apply without (too many) warnings as fallout. - Drop stray colon in text. - Drop example port in the mveusb binding. - Link to v3: https://lore.kernel.org/r/20231016-marvell-88e6152-wan-led-v3-0-38cd449dfb15@linaro.org Changes in v3: - Fix up a related mvusb example in a different binding that the scripts were complaining about. - Fix up the wording on internal vs external MDIO buses in the mv88e6xxx binding document. - Remove pointless label and put the right rev-mii into the MV88E6060 schema. - Link to v2: https://lore.kernel.org/r/20231014-marvell-88e6152-wan-led-v2-0-7fca08b68849@linaro.org Changes in v2: - Break out a separate Marvell MV88E6060 binding file. I stand corrected. - Drop the idea to rely on nodename mdio-external for the external MDIO bus, keep the compatible, drop patch for the driver. - Fix more Marvell DT mistakes. - Fix NXP DT mistakes in a separate patch. - Fix Marvell ARM64 mistakes in a separate patch. - Link to v1: https://lore.kernel.org/r/20231013-marvell-88e6152-wan-led-v1-0-0712ba99857c@linaro.org --- Linus Walleij (7): dt-bindings: net: dsa: Require ports or ethernet-ports dt-bindings: net: mvusb: Fix up DSA example ARM: dts: marvell: Fix some common switch mistakes ARM: dts: nxp: Fix some common switch mistakes ARM64: dts: marvell: Fix some common switch mistakes dt-bindings: marvell: Rewrite MV88E6xxx in schema dt-bindings: marvell: Add Marvell MV88E6060 DSA schema Documentation/devicetree/bindings/net/dsa/dsa.yaml | 6 + .../bindings/net/dsa/marvell,mv88e6060.yaml | 90 +++++++++ .../bindings/net/dsa/marvell,mv88e6xxx.yaml | 225 +++++++++++++++++++++ .../devicetree/bindings/net/dsa/marvell.txt | 109 ---------- .../devicetree/bindings/net/marvell,mvusb.yaml | 7 +- MAINTAINERS | 3 +- arch/arm/boot/dts/marvell/armada-370-rd.dts | 2 - .../dts/marvell/armada-381-netgear-gs110emx.dts | 2 - .../dts/marvell/armada-385-clearfog-gtr-l8.dts | 2 +- .../dts/marvell/armada-385-clearfog-gtr-s4.dts | 2 +- arch/arm/boot/dts/marvell/armada-385-linksys.dtsi | 2 - .../boot/dts/marvell/armada-385-turris-omnia.dts | 16 +- arch/arm/boot/dts/marvell/armada-388-clearfog.dts | 2 - .../boot/dts/marvell/armada-xp-linksys-mamba.dts | 2 - arch/arm/boot/dts/nxp/vf/vf610-zii-cfu1.dts | 2 +- arch/arm/boot/dts/nxp/vf/vf610-zii-scu4-aib.dts | 8 +- arch/arm/boot/dts/nxp/vf/vf610-zii-spb4.dts | 2 +- arch/arm/boot/dts/nxp/vf/vf610-zii-ssmb-dtu.dts | 4 +- arch/arm/boot/dts/nxp/vf/vf610-zii-ssmb-spu3.dts | 2 +- .../boot/dts/marvell/armada-3720-espressobin.dtsi | 4 +- .../boot/dts/marvell/armada-3720-gl-mv1000.dts | 4 +- .../boot/dts/marvell/armada-3720-turris-mox.dts | 12 +- .../boot/dts/marvell/armada-7040-mochabin.dts | 2 - .../dts/marvell/armada-8040-clearfog-gt-8k.dts | 2 +- arch/arm64/boot/dts/marvell/cn9130-crb.dtsi | 4 +- 25 files changed, 356 insertions(+), 160 deletions(-) --- base-commit: 1c9be5fea84e409542a186893d219bf7cff22f5a change-id: 20231008-marvell-88e6152-wan-led-88c43b7fd2fd Best regards, -- Linus Walleij