Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1551191rwb; Sun, 2 Oct 2022 03:28:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5EBChuRCUAorMG/guAICw5NiverrI4XZxrNSO+pXcLqTgKKSvndVhxWe+nLh97z01HwZhh X-Received: by 2002:a17:90b:3b47:b0:202:d9d4:23f7 with SMTP id ot7-20020a17090b3b4700b00202d9d423f7mr6939612pjb.56.1664706508347; Sun, 02 Oct 2022 03:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664706508; cv=none; d=google.com; s=arc-20160816; b=rPQyzIfTHVwhJxiWbaJGfDVdyx9b76NBvM6lFfbNhYeOEKl5wT1rHmwrWuO5ZeV2ab hRiTn32QfTib+jME3hRDmxqFMjqLdw//UxzMp5CSzEUQ1ahcY6C8HXK/BMb7BN2YqmAW OrSA8YB5ZuqyrtFqkyTe2bOA+AKG4IcGGAKQ+Qj4ySRZV56eRHNQze15G4vP5TlygO3+ vJBpdjq8TgqswNh4hRaPJI53ylt/V5Apg6To/Wi6hutGrFGlrbm8uqjdoOdTgoNF7+if GuvzFOJJseXIU4EL/SpVBEGBTp1TLf+QypQ82qLte2dMlog4PStlMAWfx25XUTNfAmCu YqBw== 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=X9nF7yfV332xI2pclyCSreQbpAxeeHXwZnrfbaI8MKA=; b=qxnor0yDFFN0sn7cb+LIflR+ThlJdGwWWWyUdzMj5+272aHP8/+5z390x3gdHkR6Tb Iff8WZ4EELodFeYL5j4R/71s4r01JNL8bSYNTo9GC4cAdvpMbZVb8BEjnw22oK7dppWn OdGCZQU47r9Q1B/K1Idnbqm6EIBNqsBcjjdjEiXFs8HO2m+2CHXpQxXk8klN4ekRIXfF Wi3HJoV8kjeJkgML2cMiufe0vWuLoAJZMWk2wBVrSIKFrw80sxyAWNJ0wCoq1n52aJH9 Cx8EGptpv0zt1eH8m7PLYFgGYbQedphHfHHkRTVaExQ/8vXZiPBze35Sgwrh7Fe6qMQU Bt1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=CffKSKbi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c22-20020a63d516000000b0043c9fcccb2fsi5733013pgg.688.2022.10.02.03.28.17; Sun, 02 Oct 2022 03:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=CffKSKbi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229592AbiJBKXk (ORCPT + 99 others); Sun, 2 Oct 2022 06:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbiJBKXi (ORCPT ); Sun, 2 Oct 2022 06:23:38 -0400 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A544303C1 for ; Sun, 2 Oct 2022 03:23:36 -0700 (PDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1324e7a1284so1514619fac.10 for ; Sun, 02 Oct 2022 03:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=X9nF7yfV332xI2pclyCSreQbpAxeeHXwZnrfbaI8MKA=; b=CffKSKbiZV8Y+eJMNntuSra4NLtLhLgasKGRaI/suxM+1HUHx1DPQ+91FdSVxePeH+ 8M559dVec128pCO3ynZfQ2Sv4HJ8p3LwM5wS9C1TD0D+H8f1kFAVEzwM/H9Qneunr+8B tzBJ+NOpPUXGHpYx8Q2FJXBZ9HJJQkbjJo/Ldiv+ib42dpzpoD0Hj3W8ZihkjQJjCFuF xozSr13E0lHj5dZC4AN9ITTwhGDp2n41oYwHsR1aVC2WhCRNxpuNRvKgADPSOFQ45f+N mq3dULZ/bKcH/39edv2d83c9LB0/Yc7F4PgI77d/LTMgSGdXNV8yp6N02NTiIoZ9gpNu KECQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=X9nF7yfV332xI2pclyCSreQbpAxeeHXwZnrfbaI8MKA=; b=pIgJhFE8kQezefqYDOXePap3Q7T2bKmYPhBW4jblvWX+1hKJxPfTcjPFynqX5taQjH pYnBjLy5xS6qE0aKHOYONvGk81183ANb/OtCIgZfzrI4QMHS7kd2s2dX0dAcb/2jBPOf G8ZLtdhA3cExF0+hd6mV9wj5Td+ttowlYEqqLVs/M1PH/Dk8ocx2RjZoZz+BxLOlMaOu KI6PAeZiwzcSIF/W2yK+0RRa8kxIhzGvyZCOUawpBqt+cxUJ3pBZjgHC7RjNtmmxVOlg QJsuRTghqMYccYFJshmnCLHML+1iTCv43poFdVxvaXddZpmd02ONjRccWEV0AaF/gzkm dZUQ== X-Gm-Message-State: ACrzQf3vWtZvTAEEITivx18FVj3YfFHDajrCd8+wzk3B4zaqF6TTP5Lc hsW6V6Y1nHw5Q6tfHhQJPLWlFL5aSYuBQuPQWtJ9bg== X-Received: by 2002:a05:6870:790:b0:131:b107:5eea with SMTP id en16-20020a056870079000b00131b1075eeamr2957302oab.66.1664706215604; Sun, 02 Oct 2022 03:23:35 -0700 (PDT) MIME-Version: 1.0 References: <20221001155353.10211-1-mig@semihalf.com> <3b234066-268d-8da9-caa6-ca4d693dc0d0@linaro.org> In-Reply-To: <3b234066-268d-8da9-caa6-ca4d693dc0d0@linaro.org> From: Marcin Wojtas Date: Sun, 2 Oct 2022 12:23:27 +0200 Message-ID: Subject: Re: [PATCH v2] dt-bindings: net: marvell,pp2: convert to json-schema To: Krzysztof Kozlowski Cc: =?UTF-8?Q?Micha=C5=82_Grzelak?= , davem@davemloft.net, devicetree@vger.kernel.org, edumazet@google.com, krzysztof.kozlowski+dt@linaro.org, kuba@kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk, netdev@vger.kernel.org, pabeni@redhat.com, robh+dt@kernel.org, upstream@semihalf.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org niedz., 2 pa=C5=BA 2022 o 10:00 Krzysztof Kozlowski napisa=C5=82(a): > > On 01/10/2022 17:53, Micha=C5=82 Grzelak wrote: > > Hi Krzysztof, > > > > Thanks for your comments and time spent on reviewing my patch. > > All of those improvements will be included in next version. > > Also, I would like to know your opinion about one. > > > >>> + > >>> + marvell,system-controller: > >>> + $ref: /schemas/types.yaml#/definitions/phandle > >>> + description: a phandle to the system controller. > >>> + > >>> +patternProperties: > >>> + '^eth[0-9a-f]*(@.*)?$': > >> > >> The name should be "(ethernet-)?port", unless anything depends on > >> particular naming? > > > > What do you think about pattern "^(ethernet-)?eth[0-9a-f]+(@.*)?$"? > > It resembles pattern found in net/ethernet-phy.yaml like > > properties:$nodename:pattern:"^ethernet-phy(@[a-f0-9]+)?$", while > > still passing `dt_binding_check' and `dtbs_check'. It should also > > comply with your comment. > > Node names like ethernet-eth do not make much sense because they contain > redundant ethernet or eth. AFAIK, all other bindings like that call > these ethernet-ports (or sometimes shorter - ports). Unless this device > is different than all others? > IMO "^(ethernet-)?port@[0-9]+$" for the subnodes' names could be fine (as long as we don't have to modify the existing .dtsi files) - there is no dependency in the driver code on that. Best regards, Marcin