Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp888427iob; Wed, 4 May 2022 10:00:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo51XSf0G4PjAD2lkjFt1ug9cT89/lDPejamajEAjFPEnrL2eTwy+nFHzzeJlSPjipDqqO X-Received: by 2002:aa7:d708:0:b0:427:b5ee:b8f2 with SMTP id t8-20020aa7d708000000b00427b5eeb8f2mr19265146edq.404.1651683611591; Wed, 04 May 2022 10:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651683611; cv=none; d=google.com; s=arc-20160816; b=0RgmEoPA2gMoabo8fMvN1/hJ+n4f4nH1UKW/Mn9oeonEhkKwP9C+yGgAXTA5yEdRCN Ucrkfi3of4CJF9Z8qpWB3X/1fGm4tjjheO5upk7WzfQcqRVkMdnCGbs+n7e9KjsPiGup hjU8JnYVeTs+2V9EIaHGXSvD5RjZeJFAnBv3sRob1bEHQJ64Mk4plZ/6dsUCJBzUtvqv IKL7HSZ4lzLwk5VxxMdJ7nSx7PEPAO8ICXruotQsxXcMmzQrr26meOXxLltJUfyjoluy DIfjraQzMygN948am2L/k11jWQfi97ARnwyEa6JufTaXK18C16mEnJzpgdM/EH/bloYJ 0Tqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:from:cc:to:reply-to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=pfo7l2+6NRg3JzR+9KrIDePEDrqA7zKF11o5LYtwEJg=; b=vHNq4InpGNtsaIHXwSfffWOL2rHB2/5Pm3ZvXO0nqBIO9UuVTUbrs8iaPogl98CTqT oCr7DGMyMyIT3e3vjMgtf6ow8xwRspqBipmgSQxkenmqTTL34Z9lQ5m6L+cRKDUxvY5s 2x0Et7I6udcsgoO0p4QtByb3TNMDNRXaLunMH6QgWjvjYF4yJSEoREnpvI1WXnUCBKm9 TgbiBwAa1tzkoiqRIsQQf1qu74er+sKk43AvnAejX4GraIRMxv70nWYlc0PfOrlLQP8L C/+ikWKF5HYZDS+12eT/ssBA4XYzosCPAaehVCsi1fAGPHpLvMl0j35QWcQwFYDsKyBO pA2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b=d3TNyVHa; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu11-20020a170906a14b00b006f460b50245si6432248ejb.682.2022.05.04.09.59.47; Wed, 04 May 2022 10:00:11 -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=fail header.i=@gmx.net header.s=badeba3b8450 header.b=d3TNyVHa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345647AbiEDHtF (ORCPT + 99 others); Wed, 4 May 2022 03:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345582AbiEDHsz (ORCPT ); Wed, 4 May 2022 03:48:55 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2754310F6; Wed, 4 May 2022 00:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1651650277; bh=pfo7l2+6NRg3JzR+9KrIDePEDrqA7zKF11o5LYtwEJg=; h=X-UI-Sender-Class:Date:In-Reply-To:References:Subject:Reply-to:To: CC:From; b=d3TNyVHaZZCMyyfKbsrQUNviX4v3RF5SfOoweE6vmaR2/JyBWFRWypYDyjp06Z1DB FuBE+0+Udaa3ARZCq5fBT3AykSejo8IhgMbgVSW2VZXyu3xEoIliwkzLa7TWBSMoM2 GCDzaQVtRipER38qIXCwauuhna5OWspUz/EXvDDY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from frank-s9 ([80.245.79.168]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRmfo-1nNQj902p8-00T9ld; Wed, 04 May 2022 09:44:37 +0200 Date: Wed, 04 May 2022 09:44:29 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <95aea078-3e85-79c3-79c0-430bd7c0fbae@linaro.org> References: <20220502153238.85090-1-linux@fw-web.de> <10770ff5-c9b1-7364-4276-05fa0c393d3b@linaro.org> <95aea078-3e85-79c3-79c0-430bd7c0fbae@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Aw: Re: Re: [RFC v1] dt-bindings: net: dsa: convert binding for mediatek switches Reply-to: frank-w@public-files.de To: Krzysztof Kozlowski CC: Greg Ungerer , =?ISO-8859-1?Q?Ren=E9_van_Dorst?= , Mauro Carvalho Chehab , Frank Wunderlich , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sean Wang , Landen Chao , DENG Qingfang , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org From: Frank Wunderlich Message-ID: <69290DD3-0179-49C2-8E7D-9F8DBDEBC96F@public-files.de> X-Provags-ID: V03:K1:Xi3146xQ+5Emm7jErYnUntzfAYprQLIZghBegsBA0oc7IJk6WZ7 EN1yKUXY8pzFBl73tvS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paGI/9e/NNyCbquv8Sk2aisnaAe4 ZDR76Yxs0Y8Z1quc8rQ6EnGzVeo5HJkw13gCK37XxHeAnOwuSZl3+ZD1z2jmGFnN1PFX/23a+ Es9UuweDvyE23bhOQc/5nbuT0+YnvsBTfNKuHQqkUOJdy3YVLjnpuGf++pTcmQaWmr32bLkTn hMELGm5Dl56aogpxH2xJlgEKll2vhPUIBQanJnZT3L+moBr6fz7fMGHLHqrBcKmdbsdtOQCAp 6GSaSEtX1hNx+g= X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 m 4=2E Mai 2022 08:51:41 MESZ schrieb Krzysztof Kozlowski : >On 03/05/2022 17:03, Frank Wunderlich wrote: >>=20 >> have not posted this version as it was failing in dtbs_check, this >was how i tried: >>=20 >> >https://github=2Ecom/frank-w/BPI-R2-4=2E14/blob/8f2033eb6fcae273580263c3f= 0b31f0d48821740/Documentation/devicetree/bindings/net/dsa/mediatek=2Eyaml#L= 177 > >You have mixed up indentation of the second if (and missing -)=2E The "compatible if" should be a child of the "if" above,because phy-mode p= roperty only exists for cpu-port=2E I can try with additional "-" (but i gu= ess this is only needed for allOf) Rob told me that i cannot check compatible in subnode and this check will = be always true=2E=2E=2Ejust like my experience=2E I can only make the compatible check at top-level and then need to define = substructure based on this (so define structure twice)=2E He suggested me a= dding this to description for now=2E Imho this can be added later if really needed=2E=2E=2Edid not found any ex= ample checking for compatible in a subnode=2E All were in top level=2E Afai= r these properties are handled by dsa-core/phylink and driver only compares= constants set there=2E >(=2E=2E=2E) > >>>> >>>> basicly this "ports"-property should be required too, right? >>> >>> Previous binding did not enforce it, I think, but it is reasonable >to >>> require ports=2E >>=20 >> basicly it is required in dsa=2Eyaml, so it will be redundant here >>=20 >> >https://elixir=2Ebootlin=2Ecom/linux/v5=2E18-rc5/source/Documentation/dev= icetree/bindings/net/dsa/dsa=2Eyaml#L55 >>=20 >> this defines it as pattern "^(ethernet-)?ports$" and should be >processed by dsa-core=2E so maybe changing it to same pattern instead of >moving up as normal property? > >Just keep what is already used in existing DTS=2E Currently only "ports" is used=2E=2E=2Eso i will change it to "normal" pro= perty=2E >>>> for 33 there seem no constant=2E=2Eall other references to pio node a= re >with numbers too and there seem no binding >>>> header defining the gpio pins (only functions in >include/dt-bindings/pinctrl/mt7623-pinfunc=2Eh) >>> >>> ok, then my comment >>=20 >> you mean adding a comment to the example that GPIO-flags/constants >should be used instead of magic numbers? > >I think something was cut from my reply=2E I wanted to say: >"ok, then my comment can be skipped" Ok >But I think your check was not correct=2E I looked at bpi-r2 DTS >(mt7623n) >and pio controller uses GPIO flags=2E I see only same as in the example https://elixir=2Ebootlin=2Ecom/linux/latest/source/arch/arm/boot/dts/mt762= 3n-bananapi-bpi-r2=2Edts#L196 >Best regards, >Krzysztof regards Frank