Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp401008pxu; Thu, 15 Oct 2020 06:55:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj9cwcQqcXxUfS7RMBjV1b1pbbC99gberKlfitkFprkfaLgChh3ieLd5Xj2KfvsWC3q5dt X-Received: by 2002:a50:ee19:: with SMTP id g25mr4713638eds.160.1602770140611; Thu, 15 Oct 2020 06:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602770140; cv=none; d=google.com; s=arc-20160816; b=hqIx07x+BHXXwdsexgyOXBj2XvR498SpG+Alt5uRAitZYwPO78Ia1t1C8q1kzI1mPI etBJHACJLTr6mUJwpfmzHp69FwmMjujTJ4+KHs5lgYacwyzhNMe4h8XJ98Dr0xyqtmZZ hPRCUc1Qc2sMbxA3Rz+4VKSMIFwWsU6eMNpKcLPv7MvnwFHPLUjAQFnm+nyoP29QInfZ NJANF4vbVs5dpLGubuus4CAQO8ltn7B8KBJI4bbUTabQbpJZk7rRxjgBgmOax1daFWhT jY6b3aQy1u8VwrYLopCYg7izaCoOxHzoI0faiVs3HCqPrOVUKVmzWP1RvUdSswCApP7Z Zw8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IOOOCAYWtp7A+Uw9+slB3t6UjvR8vttfj4eXD9tN6rY=; b=t/fqFPU2rRLqmHKnRy5V+Z7rHYMeySXpYkLfvjoJD4UCc07B370haeHQmr3JfTtLtY yI8w3LTqLkkz60jOuELVobaNzkd6DZpB9M+Q8qWJ7xV9z1eFxsWZ9x9ih/ooKVNR0v1B cJPE4Vh/BHEHxdifAs5E3WNC29TBqwTVSSUeqAQ4xS73IV4R4izrSLZRq17hzIobKH0v QDyXtm73vwbJAyGg5vFSJ/4CPzF7rfK4c07yfRI75hVaMfh5jAUq6YCB/RRnHfEbitrK aBagnS6NhozWEOKTHxDUHdFDfsl2eRONnM438skfBIlCA7/tkhBMLM2LqWAfH1ElCimT 24pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si2059355edt.584.2020.10.15.06.55.11; Thu, 15 Oct 2020 06:55:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388038AbgJONxb (ORCPT + 99 others); Thu, 15 Oct 2020 09:53:31 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:55510 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730211AbgJONx2 (ORCPT ); Thu, 15 Oct 2020 09:53:28 -0400 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 CC: Serge Semin , Mathias Nyman , Greg Kroah-Hartman , Rob Herring , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Kukjin Kim , Krzysztof Kozlowski , Santosh Shilimkar , Shawn Guo , Li Yang , =?utf-8?Q?Beno=C3=AEt?= Cousson , Tony Lindgren , Patrice Chotard , Maxime Ripard , Chen-Yu Tsai , Wei Xu , Andy Gross , Bjorn Andersson , Alexey Malahov , Pavel Parkhomenko , Manu Gautam , Roger Quadros , Lad Prabhakar , Yoshihiro Shimoda , Neil Armstrong , Kevin Hilman , , , , , , , , , , 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-Type: text/plain; charset="us-ascii" 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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