Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3254174pxu; Tue, 8 Dec 2020 07:25:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTZD3XmdjL+M3XyIXEZaPXCBvGVHrF40GF6id0i8DwQqY4yYjm+Nu988wehTMENIjoclJw X-Received: by 2002:a17:906:f9d7:: with SMTP id lj23mr15206827ejb.550.1607441143790; Tue, 08 Dec 2020 07:25:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607441143; cv=none; d=google.com; s=arc-20160816; b=PEwvHeHJabRO65dXXIJREyYg4s8BeNdl1MLBdj2NvS8bClbJm9W+2vBNytIseWfx+/ HRIpZxjv5bhb6eCCEkKsr64OjKF9bZAfvDYIvi2u9IEXuaS02mPzEt4JKT2pqE+RRgne bcrVSVMN68ZzXe+TZdsuE79KYBHNvVHPOKGyI0DY1ECGoLfs70ePEcOHbQqkywu5ND5v g2oltKg4JejuE/LTI35C3i/RIYoOcv+KD3PS3E+A3mbzPyN1NIM/XQAYfsjkTnFvLs2I 2PwZIAeLFYzpaYebdVpQn/59CNx5m58895D0h2GZJBv4wiqD04NXzsN/MLe3LNMU8pKw H9Mw== 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=IQ3hrRr5CR/EHc+P2sk3O7yO90fJ2PV9jiKrnTl/JOE=; b=oN14eipRg8VG1cKrEBpoNR42TtxUNsg8ydx4TGdLuGJ2HsLDDfBTlTHf+Qx6QGpUsv YixHQORFBkS+Hyw/n1ppBdKqkVa1Gs5k6KFvWAJeSW50zG/3LD/phsWpTDkLhT2T7v7J zUr6Cw+r+C1DguizRqDQhusb9YHNl64kIfa6oxZcOSNFy4lgXnW/2aan68lTYQo+ZVv8 dMe3KTRW1aMyjAcD2h+0bnfWQmbz5uGYperIVGNSRdCLusbgRDQyeTZSEBLy5lGv0rLd MN8dj2BT48DH23vNOwyMfl2jAJfeptMIisdH0/fIxB8ehFMWr7XUZliM4Px0ZEuYosTU vdtA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si1948269edv.237.2020.12.08.07.25.16; Tue, 08 Dec 2020 07:25:43 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730020AbgLHPWJ (ORCPT + 99 others); Tue, 8 Dec 2020 10:22:09 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:34519 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729334AbgLHPWI (ORCPT ); Tue, 8 Dec 2020 10:22:08 -0500 Received: by mail-ot1-f66.google.com with SMTP id a109so491728otc.1; Tue, 08 Dec 2020 07:21:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=IQ3hrRr5CR/EHc+P2sk3O7yO90fJ2PV9jiKrnTl/JOE=; b=Gb/FuTyn+nNaXeU7lOwcaB4pBKAMoV/igr3nasJEYZdNFWb4VNztcBDxS42qpT45ji RhXa5veknPwRYxAFDQZxvgswRvvFas7YF2dLATvpEV//3r/KSLiOk3wAktB8wxFJPegd /jGZOZGT7Q3rn7aHuVMYNZdAiqf5xLK1tJ4ZRj+vMGSlRylfsr7SV7LUdHS2auc+iajp 7CiKeCt0/odUuFgDc1wpQSWKWFb5MNdA3ccp32A9b9R7mo8DtNCjkgZAGiCn0EbdqW7C zTcAHO0dIuj/7yeT0X9Ho+CMsK6XgiVoa5oARzblssGqv+fmDFGWSQOS5YGRa0LZHnO+ PGcw== X-Gm-Message-State: AOAM531LXgfZsZR5UI9BRKC49e6Cm29pXjjhFpz8cHQbhJHS94/fX+Lp y9Kbn3QjGtjakytnWM9hVw== X-Received: by 2002:a05:6830:1352:: with SMTP id r18mr16663484otq.73.1607440887454; Tue, 08 Dec 2020 07:21:27 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id u130sm3717886oib.53.2020.12.08.07.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 07:21:25 -0800 (PST) Received: (nullmailer pid 2539592 invoked by uid 1000); Tue, 08 Dec 2020 15:21:23 -0000 Date: Tue, 8 Dec 2020 09:21:23 -0600 From: Rob Herring To: Serge Semin Cc: Ahmad Zainie , Lad Prabhakar , devicetree@vger.kernel.org, Yoshihiro Shimoda , Chunfeng Yun , Manu Gautam , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Alexey Malahov , Neil Armstrong , Pavel Parkhomenko , linux-arm-kernel@lists.infradead.org, Kevin Hilman , Bjorn Andersson , linux-snps-arc@lists.infradead.org, Serge Semin , linux-usb@vger.kernel.org, Rob Herring , linuxppc-dev@lists.ozlabs.org, Felipe Balbi , Martin Blumenstingl , Andy Gross , Krzysztof Kozlowski , Mathias Nyman , Roger Quadros , linux-mips@vger.kernel.org Subject: Re: [PATCH v5 10/19] dt-bindings: usb: Convert DWC USB3 bindings to DT schema Message-ID: <20201208152123.GA2539227@robh.at.kernel.org> References: <20201205152427.29537-1-Sergey.Semin@baikalelectronics.ru> <20201205152427.29537-11-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201205152427.29537-11-Sergey.Semin@baikalelectronics.ru> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 05 Dec 2020 18:24:17 +0300, Serge Semin wrote: > DWC USB3 DT node is supposed to be compliant with the Generic xHCI > Controller schema, but with additional vendor-specific properties, the > controller-specific reference clocks and PHYs. So let's convert the > currently available legacy text-based DWC USB3 bindings to the DT schema > and make sure the DWC USB3 nodes are also validated against the > usb-xhci.yaml schema. > > Note 1. we have to discard the nodename restriction of being prefixed with > "dwc3@" string, since in accordance with the usb-hcd.yaml schema USB nodes > are supposed to be named as "^usb(@.*)". > > Note 2. The clock-related properties are marked as optional to match the > DWC USB3 driver expectation and to improve the bindings mainainability > so in case if there is a glue-node it would the responsible for the > clocks initialization. > > Signed-off-by: Serge Semin > > --- > > Changelog v2: > - Discard '|' from the descriptions, since we don't need to preserve > the text formatting in any of them. > - Drop quotes from around the string constants. > - Fix the "clock-names" prop description to be referring the enumerated > clock-names instead of the ones from the Databook. > > Changelog v3: > - Apply usb-xhci.yaml# schema only if the controller is supposed to work > as either host or otg. > > Changelog v4: > - Apply usb-drd.yaml schema first. If the controller is configured > to work in a gadget mode only, then apply the usb.yaml schema too, > otherwise apply the usb-xhci.yaml schema. > - Discard the Rob'es Reviewed-by tag. Please review the patch one more > time. > > Changelog v5: > - Add "snps,dis-split-quirk" property to the DWC USB3 DT schema. > - Add a commit log text about the clock-related property changes. > - Make sure dr_mode exist to apply the USB-gadget-only schema. > --- > .../devicetree/bindings/usb/dwc3.txt | 128 ------- > .../devicetree/bindings/usb/snps,dwc3.yaml | 312 ++++++++++++++++++ > 2 files changed, 312 insertions(+), 128 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/usb/dwc3.txt > create mode 100644 Documentation/devicetree/bindings/usb/snps,dwc3.yaml > Reviewed-by: Rob Herring