Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp454922ioo; Sat, 21 May 2022 04:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdFwaLUeMSlENCoU3tUJaQoBWaV14LbS9Ct78tAHk++4zS8DeP5FMCFqmiy7ph2nmGrDgs X-Received: by 2002:a17:907:7b89:b0:6f4:9b92:c2ac with SMTP id ne9-20020a1709077b8900b006f49b92c2acmr11857392ejc.409.1653131827929; Sat, 21 May 2022 04:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653131827; cv=none; d=google.com; s=arc-20160816; b=kB5ie8AXwpvBGrhhgzgNNDlvhy+C7zr6l5CsAlnP04s7v39h8SLKVCK7Jd9KQhPooK yEy6LoI2eV/7BtXf8YUo7ab19rHyzVSld2YcQqE3uu0Jq54d8JhGlgm8tNEbRAthcDO1 PBAhZtyPC16jdbnLWJTn+iogaW4sjfmweHuq6QkiXKh1o6eLWMNdrd030bfZ66aMdSFQ 64+ZD/gLQ+ZEc8lXLR05Oyw7aSH4lXUcjcPsuLU1jd/pv8+QFPuw0XvDPdTy4wT6iQWy KuzcHCmFJeq4MaQ9FgvX7TpryIYrSmVMzQo0PxRBLeQSPT1TJy3jr2tYu/VTJd/hgGdD Xabw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QjR0cp2E5WyeJeKKWqWkDDhLDsPyWHtfSubP9NbP2ok=; b=OmjR9wmeAJ1XF0ahL11XDEc5lDIXpE2ssjnqDCHj4qSi8my/9eDvT/WgW6HG9tAXvM 9vVVTQyuISBnWWoOJLh0hXgXmd9wXPXuWzxakENKpR428z9NWTrbVrh7Yg95voBGV8ca 4Q2WNkp+e+3dc3NF+XwOD+E/pcXy0G8/Yone9TMW5Apumq1cfDlvj18hFtEDUCO6Shvs xIM3RoGwQwkPPjo8PcBk9aiklK+jctGP8EmaAaeFJu2NMvDgyig3eZ/3hZMtguY9cZea Mr3l3HciGVuRbBA3L4aWSKLMsOndAFwNTNSYNPDTk5tNRBcPXudT595SLLA8guZ7ko76 6TJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z7lXIzJi; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he19-20020a1709073d9300b006feab106665si4559043ejc.460.2022.05.21.04.16.41; Sat, 21 May 2022 04:17:07 -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=@linaro.org header.s=google header.b=z7lXIzJi; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348638AbiETLkf (ORCPT + 99 others); Fri, 20 May 2022 07:40:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348669AbiETLkS (ORCPT ); Fri, 20 May 2022 07:40:18 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 063D415BACF for ; Fri, 20 May 2022 04:40:17 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id bq30so13877653lfb.3 for ; Fri, 20 May 2022 04:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=QjR0cp2E5WyeJeKKWqWkDDhLDsPyWHtfSubP9NbP2ok=; b=z7lXIzJipVL1DFjw5V22zxLyciQIqvoAMmbg7hOziOU/QJtn/Nn4BjAJy9G7UPMOIf D7AWXzPpElU4KE2dkNShGr9iIvKaCppr/JYmr0r/qikXKmYBakV0eJnI1GKEF7g2kzX+ b0LItq6ahMXGbM0j2IVXIz3+apmqY58odUSjsuL5re7vuegzZtE+EQx6i54tzzbW5QFa z3j4kGhZc3PBLXDk8ksG8NfkqkMdoNGtZkSE7CQOegiIaPLpqVT7R8kSwooxKFS3mfMO etHmBxh7C7+TisQCkjLaUb9MvkdyI/LDulCohSLfDIdjvBUNSNCiAqhg76F+vVrNGgO8 5wTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=QjR0cp2E5WyeJeKKWqWkDDhLDsPyWHtfSubP9NbP2ok=; b=WozAbLz6OsgTv9rgqaAVu0KG58E7fK95RS7nGbtAvdSIWW3VFni7rCAJkJuDGWmi+I QVIhhS2cCwoBvzMUJslDK6hjG+Vmhb6mW9CM8x3u6WBte3cZW/aFGNRSAOm8r9M9Lu06 2KAHNwna/xrE4cTR5N44Yr7U57+t5IaOc5hQ2OoJFedvFbuITk256bYYYR7ifGPiQImq AKZtql7TmViSzUwg+HFoWMmleJggNEjz6kKxAtX9r6lQ8ucYxafHFzlpN2tTBPULOH3i GMpPR7VhVIrpZO4/3hP346+dV0JG+jg6fGqAHsUQf5L1wov2MA2CjChAAqdEgkgMuraj zjIg== X-Gm-Message-State: AOAM530H1NZG+cMFrqXbBQrviQT3voBxEomkTVjWprkdGsT1O3IlD/XZ 5vetru1nflUjMJLz2gLxzH2P2A== X-Received: by 2002:a05:6512:1287:b0:473:b904:b27c with SMTP id u7-20020a056512128700b00473b904b27cmr6729249lfs.361.1653046815359; Fri, 20 May 2022 04:40:15 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id q1-20020ac25fc1000000b0047255d210eesm630756lfg.29.2022.05.20.04.40.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 May 2022 04:40:14 -0700 (PDT) Message-ID: Date: Fri, 20 May 2022 13:40:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 2/3] dt-bindings: usb: atmel: Add Microchip LAN966x compatible string Content-Language: en-US To: Herve Codina Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Nicolas Ferre , Alexandre Belloni , 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 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> From: Krzysztof Kozlowski In-Reply-To: <20220520133426.3b4728ae@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 20/05/2022 13:34, Herve Codina wrote: > On Fri, 13 May 2022 14:57:55 +0200 > Krzysztof Kozlowski wrote: > >> On 13/05/2022 12:58, Herve Codina wrote: >>> The USB device controller available in the Microchip LAN966x SOC >>> is the same IP as the one present in the SAMA5D3 SOC. >>> >>> Add the LAN966x compatible string and set the SAMA5D3 compatible >>> string as a fallback for the LAN966x. >>> >>> Signed-off-by: Herve Codina >>> --- >>> Documentation/devicetree/bindings/usb/atmel-usb.txt | 3 +++ >>> 1 file changed, 3 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Documentation/devicetree/bindings/usb/atmel-usb.txt >>> index f512f0290728..a6fab7d63f37 100644 >>> --- a/Documentation/devicetree/bindings/usb/atmel-usb.txt >>> +++ b/Documentation/devicetree/bindings/usb/atmel-usb.txt >>> @@ -87,6 +87,9 @@ Required properties: >>> "atmel,at91sam9g45-udc" >>> "atmel,sama5d3-udc" >>> "microchip,sam9x60-udc" >>> + "microchip,lan996x-udc" >> >> No wildcards please, especially that it closely fits previous wildcard >> (lan996x includes lan9960 which looks a lot like sam9x60...) >> > > Well, first, I made a mistake. It should be lan966x instead of lan996x. > > This family is composed of the LAN9662 and the LAN9668 SOCs. > > Related to the wilcard, lan966x is used in several bindings for common > parts used by both SOCs: > - microchip,lan966x-gck > - microchip,lan966x-cpu-syscon > - microchip,lan966x-switch > - microchip,lan966x-miim > - microchip,lan966x-serdes > - microchip,lan966x-pinctrl And for new bindings I pointed that it is not preferred, so already few other started using specific compatible. > > 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. Having wildcard was rather a mistake and we already started correcting it, so keeping the "mistake" neither gives you consistency, nor correctness... Best regards, Krzysztof