Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp3646872lfb; Mon, 9 May 2022 00:43:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm60W4qUkaKYGZtFFj11eGUmdiu7yaSTqMUeRKeEbKRVF8cAXYQhgOt69tHRo/MBByO40T X-Received: by 2002:a17:903:1252:b0:154:ca85:59a0 with SMTP id u18-20020a170903125200b00154ca8559a0mr15208112plh.169.1652082228710; Mon, 09 May 2022 00:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652082228; cv=none; d=google.com; s=arc-20160816; b=LXGkHpmF4S5PayFEH8ITqYLfhB0bWNB2KmnMSbzNUsUhZvlrE7D5Ug12/38yKSTr4Z B+fKc9TOly8Bp10TPAIwomKnxAyhwX09Eey2wwq9F/gMT+vpnS3dEU/Gmpq2gQ1ogpcr jJY+beRo5/+1x6M16LVLEK4WAwoxZH9wcPe2dNLEWbnG4GE36xXluZmcZdtLAmbm+m8d sJiL7YJK2xTAkX0qYa7n52ahCS6x0DL4UODeIVeWLNcpjsAJ/3NlHwREMoeAwLOLG3kF su8pM/97QX2Q+TlszhMaLhr4UQeQnBZpk6hv5Wzs7mqpuYRizTBwHEzLoCZGmXOYRA0f VTzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=F5GAlQbKgvAJgPbXacqAFns/QrFKGRX4TTaYKt4/SqA=; b=Yo8gNLNg9996xawNnaPt1A3j/DnXPyr/ZtbyMOdsDJIUJvRyywG5HCE/IoMME4JQuo +13WnrNTUlbJBh0LNtluyPFOzbraKxZwZsuvMzc++P0sxhU+biw153dln+v8kJvMk/LG 8jSFFe+DYbCizU1i79mSpmxAwO93PHCf/CfkQ7sdxBs2oEXq0d+qWxl3hYD+QGJNhy68 o8jOluVlS+ECLdU9ayfr+b4cf/cincIN3ZKDgF9I91sShEe6SGDGqRQh1by4j5MZmoVx GgVvhNY5j0RYwAe82IIE7y9GyS46Jvl6UA+gDBhCCNTfiafDVWYbjFUjMPjDRyEywU00 wAnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=btduVey3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 23-20020a630017000000b003816043f01fsi11304453pga.532.2022.05.09.00.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 00:43:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=btduVey3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0A43187061; Mon, 9 May 2022 00:37:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386355AbiEFGup (ORCPT + 99 others); Fri, 6 May 2022 02:50:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242966AbiEFGun (ORCPT ); Fri, 6 May 2022 02:50:43 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACEC966AD6; Thu, 5 May 2022 23:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1651819574; bh=KV3jeJ6Fj2L1SkAtCxVFmXK3uPzJKbcEAuSL/tlV1ik=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=btduVey3BlQmUfg6YOX6cYnoSH8Hy0RgnumNFTiL6wRjeNRBbHmR1J3h2Ypn/fMpW o7PY4Ot033Vr7WMjbpBSiQUav8WHmhIeF4BsucbIONsMYVngZcql81vmEyBirEfA73 wWbYktjABSWwJxKWD5btvKlkTx8CLtk8We4+o24w= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [80.245.76.19] ([80.245.76.19]) by web-mail.gmx.net (3c-app-gmx-bs21.server.lan [172.19.170.73]) (via HTTP); Fri, 6 May 2022 08:46:14 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Krzysztof Kozlowski Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, 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, Greg Ungerer , =?UTF-8?Q?Ren=C3=A9_van_Dorst?= , Mauro Carvalho Chehab Subject: Aw: Re: [RFC v2] dt-bindings: net: dsa: convert binding for mediatek switches Content-Type: text/plain; charset=UTF-8 Date: Fri, 6 May 2022 08:46:14 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <6d45f060-85e6-f3ff-ef00-6c68a2ada7a1@linaro.org> References: <20220505150008.126627-1-linux@fw-web.de> <6d45f060-85e6-f3ff-ef00-6c68a2ada7a1@linaro.org> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:pW8IoZwJ4+eQLrpLprlj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j/ bw0yLUP7vx+tH2Qa39vTr1pVrBnr1RKq4iEN8NecE0/4uWzMbWFQax5LdIWLqVeCIwNgTjeBu n3OFKmr X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi > Gesendet: Donnerstag, 05=2E Mai 2022 um 22:29 Uhr > Von: "Krzysztof Kozlowski" > An: "Frank Wunderlich" , linux-mediatek@lists=2Einfra= dead=2Eorg > Cc: "Frank Wunderlich" , "Andrew Lunn" , "Vivien Didelot" , "Florian Fai= nelli" , "Vladimir Oltean" ,= "David S=2E Miller" , "Jakub Kicinski" , "Paolo Abeni" , "Rob Herring" , "Krzysztof Kozlowski" , "Ma= tthias Brugger" , "Sean Wang" , "Landen Chao" , "DENG Qingfang" = , netdev@vger=2Ekernel=2Eorg, devicetree@vger=2Ekernel= =2Eorg, linux-kernel@vger=2Ekernel=2Eorg, linux-arm-kernel@lists=2Einfradea= d=2Eorg, "Greg Ungerer" , "Ren=C3=A9 van Dorst" , "Mauro Carvalho Chehab" > Betreff: Re: [RFC v2] dt-bindings: net: dsa: convert binding for mediate= k switches > > On 05/05/2022 17:00, Frank Wunderlich wrote: > > From: Frank Wunderlich > >=20 > > Convert txt binding to yaml binding for Mediatek switches=2E > >=20 > > Signed-off-by: Frank Wunderlich >=20 > Thank you for your patch=2E There is something to discuss/improve=2E >=20 > > + const: 1 > > + > > + "#size-cells": > > + const: 0 > > + > > + core-supply: > > + description: | >=20 > Drop | everywhere where it is not needed (so in all places, AFAICT) is it necessary for multiline-descriptions or is indentation enough? =20 > > + Phandle to the regulator node necessary for the core power=2E > > + > > + "#gpio-cells": > > + description: | > > + Must be 2 if gpio-controller is defined=2E >=20 > Skip description, it's obvious from the GPIO controller schema=2E ok > > + const: 2 > > + > > + gpio-controller: > > + type: boolean > > + description: | > > + if defined, MT7530's LED controller will run on GPIO mode=2E > > + > > + "#interrupt-cells": > > + const: 1 > > + > > + interrupt-controller: > > + type: boolean > > + > > + interrupts: > > + maxItems: 1 > > + > > + io-supply: > > + description: | > > + Phandle to the regulator node necessary for the I/O power=2E > > + See Documentation/devicetree/bindings/regulator/mt6323-regulato= r=2Etxt > > + for details for the regulator setup on these boards=2E > > + > > + mediatek,mcm: > > + type: boolean > > + description: | > > + if defined, indicates that either MT7530 is the part on multi-c= hip > > + module belong to MT7623A has or the remotely standalone chip as= the > > + function MT7623N reference board provided for=2E > > + > > + reset-gpios: > > + description: | > > + Should be a gpio specifier for a reset line=2E >=20 > Skip description=2E ok=20 > > + maxItems: 1 > > + > > + reset-names: > > + description: | > > + Should be set to "mcm"=2E >=20 > Skip description=2E ok > > + const: mcm > > + > > + resets: > > + description: | > > + Phandle pointing to the system reset controller with line index= for > > + the ethsys=2E > > + maxItems: 1 > > + > > +required: > > + - compatible > > + - reg > > + > > +allOf: > > + - $ref: "dsa=2Eyaml#" > > + - if: > > + required: > > + - mediatek,mcm > > + then: > > + required: > > + - resets > > + - reset-names > > + else: > > + required: > > + - reset-gpios > > + > > + - if: > > + required: > > + - interrupt-controller > > + then: > > + required: > > + - interrupts > > + > > + - if: > > + properties: > > + compatible: > > + items: > > + - const: mediatek,mt7530 > > + then: > > + required: > > + - core-supply > > + - io-supply > > + > > + > > +patternProperties: >=20 > patternProperties go before allOf, just after regular properties=2E after required, right? > > + "^(ethernet-)?ports$": > > + type: object >=20 > Also on this level: > unevaluatedProperties: false this is imho a bit redundant because in dsa=2Eyaml (which is included now = after patternProperties) it is already set on both levels=2E Adding it here will fail in examples because of size/address-cells which a= re already defined in dsa=2Eyaml=2E=2E=2E so i need to define them here again=2E > > + > > + patternProperties: > > + "^(ethernet-)?port@[0-9]+$": > > + type: object > > + description: Ethernet switch ports > > + > > + properties: > > + reg: > > + description: | > > + Port address described must be 6 for CPU port and from = 0 to 5 for user ports=2E >=20 > This looks like not wrapped @80 character=2E i fix this > > + > > + unevaluatedProperties: false > > + > > + allOf: > > + - $ref: dsa-port=2Eyaml# > > + - if: > > + properties: > > + label: > > + items: > > + - const: cpu > > + then: > > + required: > > + - reg > > + - phy-mode > > + > > +unevaluatedProperties: false >=20 > Best regards, > Krzysztof regards Frank