Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp993356rdb; Fri, 20 Oct 2023 05:47:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHd9Vj8MD592cy6C0HgbhaALU4jwCFVg6OuzIKyGLOcWxgcwRwUaDxDaeg+nA0rxT4mn0XX X-Received: by 2002:a9d:6d93:0:b0:6c6:3ea5:cdbf with SMTP id x19-20020a9d6d93000000b006c63ea5cdbfmr1708190otp.28.1697806076937; Fri, 20 Oct 2023 05:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697806076; cv=none; d=google.com; s=arc-20160816; b=yzsAcwTMiYrZk+nZBMT0n5yGZqWwo5JVXbMBI+4K9DMASkto1rtApreku55+16bygd PFx1I6sDrWHzGoP/MMJdy0z5V5q5LZf29+CbEd+X/2XNCYREnJADKN1DvXUcJu9gekn3 gMVpT+aHwKxnv2LKHRmaCGgPVh3uzw5/7hYudcAYdpar0CyRVjdjlnvRUR2rr8KWXpsm 6U9DMRf5wphwEd/k0/jjYBIYOKpdq2wpri8n4+Udy/vxr4NPdCfDfXO+eXSPhWvTbsRB IKRtVF1XB/PvZN46CyYIJNpu/i/CDIwJn4WdqtpWfa0XpArAAtx5VjOcCbWgTa6eMMBo 3SMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ZvdYlPzJSp2kN+nmfG91ahOiUfPO5XZNyoR+Dhgeu9M=; fh=l86n9jR/TJDlGFIrx/7PofhT5qdKzF9cB8DYLnoP2qA=; b=L4kfLQ0CDhYcS33v634cyc/99wSOkGD8el85h5phpitLvKHZHOKbnhBW7bIDV++bhs wfjdVrPO/fLj/rFwthvVOQZamskelKXpRuwI9l7E9tycx0odAyXSm8XuVE+4MpWTUE/F 8wXPBtK4V2D+xGIEK8U8lstWSgKj7MVVzV4Wog+JQ2OOocfwxNr5WB5WUAlZz434k9QF 3q4y4Xv/DN2qrYeysgLkF+dwFFEPqVVUWg9CPLfItanl7iT8mwYD22Z1js/fuAO4COVc 63Xcq2u2sdnUiB7AdnRxPhlCr9T1+seQWG8MxS6NgH/VgWALik6liPrxdrTjyaMluraj Eu3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jR0eL1lM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id ck22-20020a056a02091600b00573f885c4easi1812805pgb.753.2023.10.20.05.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 05:47:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jR0eL1lM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 3D64980765F0; Fri, 20 Oct 2023 05:47:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377393AbjJTMrh (ORCPT + 99 others); Fri, 20 Oct 2023 08:47:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377215AbjJTMrf (ORCPT ); Fri, 20 Oct 2023 08:47:35 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A3F0D49 for ; Fri, 20 Oct 2023 05:47:32 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5a7ac4c3666so8133557b3.3 for ; Fri, 20 Oct 2023 05:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697806051; x=1698410851; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZvdYlPzJSp2kN+nmfG91ahOiUfPO5XZNyoR+Dhgeu9M=; b=jR0eL1lMMaZ0kHSVRKKd21JiEGRu2fszISguxfLMww+gPhZF7tBPI1sNxkNdpx+Ems G+RAVF19PVYl0BulGIDZI5sLzOofWRWl6YmB4I5CiFGSkQWmDdo8OzDBag52kwsI2JDU jx0ndXlgKBfbh0WfJ59JCxWa5C5X2pKwTA6ttH7k+2J/dAX0+3CeIaDwJ5+kjggLTyBG LVzpc3GAy125NTnxAF2Tzfw5uQGasScogLqNvXVtlXPIgGZ/EFvF1NXcQA3cYBAac9R4 lFlNF0aOZuXGq4DxXotHZxHuGOacqd+tTXdxDxrtH1eOJvjvLhFIDVWTIIPw5IeW6jV2 jQVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697806051; x=1698410851; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZvdYlPzJSp2kN+nmfG91ahOiUfPO5XZNyoR+Dhgeu9M=; b=jWre4yGS4jIyiE6r2B2iLLoQoZAiyBY2/bPYZbCEASpDPHy/NDWEbkvWf5IWg1nyPw FN3eHzPidKCBZqInH+41uI8eiNoeKXFakF9UqzsswlDTUj7GEmfGa1iACfTgmU47u0Ux 8nNXCYeeUfuRmqaCDSXMUpqyn/rR7VXXaGA3KbCA+BRS4hLWYIUmTCvItiYpcleRN6mk e8mq+YBUT/riW0fR29yq+bWBjjOsGe9vUnF65w0l2pSuSfCnPM7wOWIg5Bie/6pY6O0P 9Q36IO/qawJGx8IJG24t1s+eFbtBR7gharTH0Kd07XSATbb+X3FGf6n4snQQNzCheAMC E0JQ== X-Gm-Message-State: AOJu0YzXZhA9GG+5Q+bq3h+cNQJxNcuQpUAHM9mz4xMrIS9JT8UXFjlD 4PIqPjihvyiiklz//xzmXmhMGG42RbXkxauf07YqjA== X-Received: by 2002:a0d:d98f:0:b0:5a1:d352:9fe1 with SMTP id b137-20020a0dd98f000000b005a1d3529fe1mr1885169ywe.42.1697806051397; Fri, 20 Oct 2023 05:47:31 -0700 (PDT) MIME-Version: 1.0 References: <20231018-marvell-88e6152-wan-led-v4-0-3ee0c67383be@linaro.org> <20231018-marvell-88e6152-wan-led-v4-6-3ee0c67383be@linaro.org> <20231019153552.nndysafvblrkl2zn@skbuf> In-Reply-To: <20231019153552.nndysafvblrkl2zn@skbuf> From: Linus Walleij Date: Fri, 20 Oct 2023 14:47:20 +0200 Message-ID: Subject: Re: [PATCH net-next v4 6/7] dt-bindings: marvell: Rewrite MV88E6xxx in schema To: Vladimir Oltean Cc: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christian Marangi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 pete.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 (pete.vger.email [0.0.0.0]); Fri, 20 Oct 2023 05:47:52 -0700 (PDT) On Thu, Oct 19, 2023 at 5:35=E2=80=AFPM Vladimir Oltean = wrote: > Yikes, both these examples are actually broken, As you can see from the patch, they are just carried over from Documentation/devicetree/bindings/net/dsa/marvell.txt +/- fixes to make them pass schema checks. > So either: > > - you delete the "mdio" node and the ethernet-phys under it, or > - you add all ethernet-phys under the mdio node, and put phy-handles > from ports to each of them, and phy-modes of "internal" > > What you have now is exactly what won't work, i.e. an OF-based > slave_mii_bus with a non-OF-based phy_connect(). Yeah when I run check_dtbs I get a few (not many) warnings like this on aarch64 and armv7_multi: arch/arm/boot/dts/nxp/imx/imx6q-b450v3.dtb: switch@0: ports:port@4: 'phy-mode' is a required property from schema $id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6xxx.yaml# Isn't there some in-kernel DTS file with a *good* example of how a Marvell mv88e6xxx switch is supposed to look I can just copy instead? We shouldn't conjure synthetic examples. > I don't want to see DT examples that are structurally broken, sorry, > because then we wonder why users are confused. These examples are already in the kernel. Migrating them from marvell.txt to marvell,mv88e6xxx.yaml doesn't make the situation worse, it's not like people magically start trusting the examples more because they are in YAML than in .txt. But sure let's try to put in better examples! > Personally, I would opt for adding the more modern explicit phy-handle > and phy-mode everywhere. I'm game. Point out the DTS file and I will take that. > Also, you seem to have duplicated some work also done by Ar=C4=B1n=C3=A7 = but not > finalized (the mv88e6xxx schema conversion, on which you were also > copied). Let me add Marek here too, to make sure he's aware of 2 > previous attempts and doesn't start working on a 3rd one :) Haha I forgot :D > One other thing I see as a deal breaker for this schema conversion is > that $nodename for Marvell needs to allow basically anything (invalidatin= g > the constraint from ethernet-switch.yaml), because we can't change node > names in the case of some boards, otherwise we risk breaking them > (see MOX). If the schema starts emitting warnings for those node names, > then it's inevitable that some pixie in the future will eventually break > them by "fixing" the node name. I already did a bit of hippo-in-china-porcelain store in the patches in this series mostly renaming things like "switch0@0" to "switch@0" (yeah that's all). Is this part of the problem or something else? I run the binding checks across all aarch64 and armv7_multi platforms on this patch set without any major issues. Yours, Linus Walleij