Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1650761ioo; Sun, 22 May 2022 23:02:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVp29aVUtCrAEOJfqDUES4u98aMv1CXhTTNVJzTzskzMXU/+JMOGqVjV7mpPnS4lPqejoC X-Received: by 2002:a17:903:2449:b0:162:36b:af81 with SMTP id l9-20020a170903244900b00162036baf81mr10713090pls.32.1653285759981; Sun, 22 May 2022 23:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653285759; cv=none; d=google.com; s=arc-20160816; b=Jtd2UKU/tOCkujlBtuoJHnWPEjtt4mhhgLq9ho3XbbDJThD+LZXMA/4ix0D99Lxecg wD4akuTEl+pKNqxdrDLfxn4Kl083N6asmJZKxu5clA1eeFmCyhe7c7Yxj3p+mtNGNGw6 2nsBgb/+rT9dSeRRDlaVu7AUUDxTrGLp/o4ldsmrjYI+Xq9b3XbrQcys3ik97RGZhhvl sCpSeh3+x95JJa4gC/o7v95MD+Muyde5EYebV42liWaRk55m9biaUaBF95qQjw765ClV f5sFiqj53CVky9oewkbu59exRjV9eifVRMoaWdCEo88xCiU9CoWESAWeGsYWIARt5obB 0uMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=MaQV0rcRl9yju3BQiEVjVqUfjR6zffQamWBXh+IHtho=; b=tjaW5aoojX+Kuy7530chi1ufuxTWpoLJ846td8FvVnkoCmtiOT9XdFZEYBv/gyLu0t 9Te8fDX8qZZ0+bbgB2+gcS2My83o3wFG/xAD/dJbe4uMKs7oAOsyHSphUNKbHIcFZBIc ndibo3hHoQ1Js7rKUi9e5CRyk0Zozhgw1vBMNaX+7MxoRo6EKanVYSN1SwoCIS2+PB/A 8t1lCFRx/O024gwzKkVRBnS8WPMRQbaA8qcniHgCdBddrr6SogR7rCekWZaN9j8zxAc2 FsH5S9PZ4j2z1Q282Eoe/2J4SrOvN07CUrvX+QtMofeNTF82KpXmkSd5DVZr8wTziNeO scUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=T1I9QydT; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r134-20020a632b8c000000b003c6b63ed4adsi9429696pgr.331.2022.05.22.23.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:02:39 -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=@bootlin.com header.s=gm1 header.b=T1I9QydT; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8246B83; Sun, 22 May 2022 22:55:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350062AbiETOMb (ORCPT + 99 others); Fri, 20 May 2022 10:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234377AbiETOM2 (ORCPT ); Fri, 20 May 2022 10:12:28 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E76381271A5; Fri, 20 May 2022 07:12:26 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 176FD100008; Fri, 20 May 2022 14:12:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1653055945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MaQV0rcRl9yju3BQiEVjVqUfjR6zffQamWBXh+IHtho=; b=T1I9QydTzzgBi3C/MLXC5ctI80aDQxh39c7tD4yw7kBo1kQgcR8zFJOs4rO5TmLCDkoVrl BeYlBXUXcDFOY/DSA6KnjZH/3v7aFq+O4ryT8AOU6kCFDk48+qKtIZh5vDNZCFbMydakf7 g8HFzQ9c9eQQ+xIdLcj6IHmOmObocR3OeHO+Nk59Y7H156wJjPefrwQsYypFHvB9uLohuG 49G0r5hUELpkt6P2LuJSGFxtUy3HtYn2Lg+KVEU2fiZkdIXfDlrDSQhJWJqjya1luTXEdv RWvYOkBrduLtm1JmPtHMgBCKTqEHb5EwqWlXPr69NjpHB/OdYbQV6+1DJv/txg== Date: Fri, 20 May 2022 16:12:22 +0200 From: Herve Codina To: Alexandre Belloni Cc: Krzysztof Kozlowski , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Nicolas Ferre , Claudiu Beznea , Michael Turquette , Stephen Boyd , Horatiu Vultur , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Thomas Petazzoni Subject: Re: [PATCH 2/3] dt-bindings: usb: atmel: Add Microchip LAN966x compatible string Message-ID: <20220520161222.71fc3a75@bootlin.com> In-Reply-To: References: <20220513105850.310375-1-herve.codina@bootlin.com> <20220513105850.310375-3-herve.codina@bootlin.com> <8f0d4127-7e66-cf50-21c9-99680f737e30@linaro.org> <20220520133426.3b4728ae@bootlin.com> <20220520142109.57b84da2@bootlin.com> <01b31a02-523e-10bf-3b46-5b830e456522@linaro.org> <20220520150243.625723fa@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Alexandre, On Fri, 20 May 2022 15:52:22 +0200 Alexandre Belloni wrote: > Hello, >=20 > On 20/05/2022 15:38:36+0200, Krzysztof Kozlowski wrote: > > On 20/05/2022 15:02, Herve Codina wrote: =20 > > > On Fri, 20 May 2022 14:50:24 +0200 > > > Krzysztof Kozlowski wrote: > > > =20 > > >> On 20/05/2022 14:21, Herve Codina wrote: =20 > > >>>>> I think it makes sense to keep 'microchip,lan966x-udc' for the USB > > >>>>> device controller (same controller on LAN9662 and LAN9668) and so > > >>>>> keeping the same rules as for other common parts. =20 > > >>>> > > >>>> Having wildcard was rather a mistake and we already started correc= ting > > >>>> it, so keeping the "mistake" neither gives you consistency, nor > > >>>> correctness... > > >>>> =20 > > >>> > > >>> I think that the "family" compatible should be present. > > >>> This one allows to define the common parts in the common > > >>> .dtsi file (lan966x.dtsi in our case). > > >>> > > >>> What do you think about: > > >>> - microchip,lan9662-udc > > >>> - microchip,lan9668-udc > > >>> - microchip,lan966-udc <-- Family > > >>> > > >>> lan966 is defined as the family compatible string since (1) in > > >>> bindings/arm/atmel-at91.yaml and in Documentation/arm/microchip.rst > > >>> =20 > > >> > > >> You can add some family compatible, if it makes sense. I don't get w= hy > > >> do you mention it - we did not discuss family names, but using > > >> wildcards... Just please do not add wildcards. =20 > > >=20 > > > Well, I mentioned it as I will only use the family compatible string > > > and not the SOC (lan9662 or lan9668) compatible string in lan966x.dts= i. > > > In this case, the family compatible string can be seen as a kind of > > > "wildcard". =20 > >=20 > > I understood as "the "family" compatible should be present" as you want > > to add it as a fallback. It would be okay (assuming devices indeed share > > family design). If you want to use it as the only one, then it is again > > not a recommended approach. Please use specific compatibles. > >=20 > > I mean, why do we have this discussion? What is the benefit for you to > > implement something not-recommended by Devicetree spec and style? > > =20 >=20 > Honestly, I would just go for microchip,lan9662-udc. There is no > difference between lan9662 and lan9668 apart from the number of switch > ports. >=20 Sounds good. I will do that. Thanks, Herv=C3=A9 --=20 Herv=C3=A9 Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com