From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89CADC433E7 for ; Thu, 15 Oct 2020 13:53:30 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C47A02222B for ; Thu, 15 Oct 2020 13:53:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EE/2KY2X" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C47A02222B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baikalelectronics.ru Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8+Xj/+5zZkZxVyZCZOEV8rf+yRUbuagjiPi1QgBWj/k=; b=EE/2KY2X0wTxGFEBsiMis9ce8 f1nHP8B2lbnZ/eBxCcME21VtfM1sY4EHcNwXkAatnxYCBzWwffvoAZ7AM/uvprHsvYCvoMIaDtKZV himYrKKRa0wQZj7h3+rcFRyRe/fMFYRVzL7rX3Hj1LVSXCARQ+wIi1MQu/Ohc+v2j2pINJCgN6Q7g nTZWFQJ22ap6TM7V5keTKSVake7/LRekJDNw7GsMSyl6ATMxhROa4Pnwk4OXUVgSm55yqjrW6bCbI 4fEugIjbmRdaZnEf1sD7AS/QslHYfEGMYx8FCLNR69yJig6acvOeJhhw3l9eiU1K1JOWZ9qR7pgkW oSKZyi1qA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kT3hA-0008Iq-Rj; Thu, 15 Oct 2020 13:53:28 +0000 Received: from mail.baikalelectronics.com ([87.245.175.226] helo=mail.baikalelectronics.ru) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kT3h6-0008Hf-2z; Thu, 15 Oct 2020 13:53:25 +0000 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 3DD5B803202B; Thu, 15 Oct 2020 13:53:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vPS-zxjKdsJk; Thu, 15 Oct 2020 16:53:21 +0300 (MSK) Date: Thu, 15 Oct 2020 16:53:17 +0300 From: Serge Semin To: Felipe Balbi Subject: Re: [PATCH 20/20] arch: dts: Fix DWC USB3 DT nodes name Message-ID: <20201015135317.5jsrrqmwmdz4lnzm@mobilestation> References: <20201014101402.18271-1-Sergey.Semin@baikalelectronics.ru> <20201014101402.18271-21-Sergey.Semin@baikalelectronics.ru> <878sc8lx0e.fsf@kernel.org> <20201014143720.yny3jco5pkb7dr4b@mobilestation> <875z7blrqu.fsf@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <875z7blrqu.fsf@kernel.org> X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201015_095325_096487_F0E1DE34 X-CRM114-Status: GOOD ( 14.07 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , linux-usb@vger.kernel.org, Neil Armstrong , Tony Lindgren , Bjorn Andersson , Wei Xu , linux-samsung-soc@vger.kernel.org, Kevin Hilman , Gregory Clement , Krzysztof Kozlowski , Chen-Yu Tsai , Kukjin Kim , Andy Gross , linux-arm-msm@vger.kernel.org, linux-snps-arc@lists.infradead.org, Sebastian Hesselbarth , devicetree@vger.kernel.org, Jason Cooper , Mathias Nyman , linux-kernel@vger.kernel.org, Lad Prabhakar , Maxime Ripard , Alexey Malahov , Rob Herring , Santosh Shilimkar , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Roger Quadros , linux-mips@vger.kernel.org, Greg Kroah-Hartman , Yoshihiro Shimoda , linuxppc-dev@lists.ozlabs.org, Patrice Chotard , Serge Semin , Li Yang , Manu Gautam , =?utf-8?Q?Beno=C3=AEt?= Cousson , Shawn Guo , Pavel Parkhomenko Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On Thu, Oct 15, 2020 at 01:15:37PM +0300, Felipe Balbi wrote: > Serge Semin writes: > > > On Wed, Oct 14, 2020 at 05:09:37PM +0300, Felipe Balbi wrote: > >> > >> Hi Serge, > >> > >> Serge Semin writes: > >> > In accordance with the DWC USB3 bindings the corresponding node name is > >> > suppose to comply with Generic USB HCD DT schema, which requires the USB > >> > > > >> DWC3 is not a simple HDC, though. > > > > Yeah, strictly speaking it is equipped with a lot of vendor-specific stuff, > > which are tuned by the DWC USB3 driver in the kernel. But after that the > > controller is registered as xhci-hcd device so it's serviced by the xHCI driver, > > in Dual-role or host-only builds, that's correct. We can also have > peripheral-only builds (both SW or HW versions) which means xhci isn't > even in the picture. Hm, good point. In that case perhaps we'll need to apply the xHCI DT schema conditionally. Like this: - allOf: - - $ref: usb-xhci.yaml# + allOf: + - if: + properties: + dr_mode: + const: peripheral + then: + $ref: usb-hcd.yaml# + else: + $ref: usb-xhci.yaml# Note, we need to have the peripheral device being compatible with the usb-hcd.yaml schema to support the maximum-speed, dr_mode properties and to comply with the USB node naming constraint. -Sergey > > -- > balbi _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc