Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp811595ybk; Wed, 13 May 2020 13:49:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+8R7aVI+5futfaXI5obJ0RVMGF/9dPqryQzNRHFNemwcFGdCVuDArN7lT+Mr53iJOmOej X-Received: by 2002:a17:906:14cb:: with SMTP id y11mr799534ejc.131.1589402990086; Wed, 13 May 2020 13:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589402990; cv=none; d=google.com; s=arc-20160816; b=adYhObw40wogDFVywHdnN3NB2kDT1+AtbpUo1SgChLBqqNodIGaVX5FbLKrS86t8aO 7W2bv68KE37pAH5F6fPu9SONA+g3w4Rlb1hfhok1gBdoPavq3SicNUzWLHohuFiDLFDF qbcixmknvqhCjed6oKqK2VpY5qGjLKfJBIXFubQu9OwdXHDLph9UMHL06nriRi4VNYzq j0b6xx40JhC9KG+VewET5pOqFBv41uty9sfikFv+6jchHtW8bZe8cDM87iiPacoUwCDW fqtmhfVD5zfQSNqSEfqX7lYhqKJOFtxtIUI1nU+EBCW6F78EuzuVJU3Kep+lpDUjpQn4 KPJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hJ5N61sE10eRL4DM+W4UrbBWatlxhnPhuPfpeLbYAOQ=; b=eqKJ5cHlWujlT2udFho08umWxZAkgi2X6eVDuylw2I/sqmzEDnRwlHgyLO49KEdCOY MQuAJKLlWOVbJgOG9qC9Jf9n+YIFMPx3+E5hpyOPQ4rUZgeTVpUQ6lcjDOqkxiUDdDdi Pr9flnASWVYscBhC2bSh9V2oLIWw8RlnZCEEu5PGeLjijpOLacBbV5Zie91ncIDCiB6g hBcZxJZHdbujyTIzEWqfD2X9xO1CAasBI+C1j5PTCX2uE9orkElDvEdP0flSMzn+nfh+ MPhh25yBO+7QOOAnHgkq2KgY6E8kUbJHgI6n+qVO6J4i/Kq/NdJWO/hXBGfYNUaF7bqt XbAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kiSqRdlA; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo20si495067ejb.456.2020.05.13.13.49.27; Wed, 13 May 2020 13:49:50 -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; dkim=pass header.i=@chromium.org header.s=google header.b=kiSqRdlA; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389542AbgEMQEr (ORCPT + 99 others); Wed, 13 May 2020 12:04:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389519AbgEMQEq (ORCPT ); Wed, 13 May 2020 12:04:46 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2D2FC05BD09 for ; Wed, 13 May 2020 09:04:46 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id x2so8185678pfx.7 for ; Wed, 13 May 2020 09:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=hJ5N61sE10eRL4DM+W4UrbBWatlxhnPhuPfpeLbYAOQ=; b=kiSqRdlAm/boKLbWTfEN2X8+EBqRaSVdoXYv9kJa02YIgbVYXvRF+59+Yv2XHKo8qi rBrpN0s6yx2dUyuMJKbhVZsqeCS3FoA02wD+Ts7ytX9iEqVPDClUmPSGVU+683k46TMz FwKWxLWqerz5HCZCdfAGZbw6Lk+DW+F98PsFU= 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:content-transfer-encoding :in-reply-to; bh=hJ5N61sE10eRL4DM+W4UrbBWatlxhnPhuPfpeLbYAOQ=; b=dkFjindvW99M4JN3iHL6pLz3AAb3AIN1v06/ABpDXFA3MsWtwzuJp2G402NDoedfHK 2pPTlytoolm3RgHyV6++6/kvstAzKcOvtz3mJGbLfj8Zv9XmC9uN4OphRFYgLLRg3AC2 VoknD7bp5eoHBYs+HeZi+PQuaTKLYprHcqVTgDAvbPrxkx1jB49Rhf90iq9kyVvn8D4c WZgX+LSdxYRk8ShZd/BojrZKK16fKF1tABSNSfWPXTNPtvB2R2M8UgRoEyeGaTBTGmJ7 46P2ebqTdAI+a7UB2sz1d0ihZQnDMSMO0rxFmoKUftxd7qKxmWd/6kmfqTm08LC3E1Y4 mRMg== X-Gm-Message-State: AOAM530Ii3MwG3+XvZgF5w37P4XPEQmiQMCb/RIa5SeA/NeJleGjdcrn X8fa8socAYn8KFGo8jdrNqYkww== X-Received: by 2002:a62:7bcf:: with SMTP id w198mr44902pfc.226.1589385885999; Wed, 13 May 2020 09:04:45 -0700 (PDT) Received: from localhost ([2620:15c:202:1:4fff:7a6b:a335:8fde]) by smtp.gmail.com with ESMTPSA id h31sm16404422pjb.33.2020.05.13.09.04.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2020 09:04:45 -0700 (PDT) Date: Wed, 13 May 2020 09:04:43 -0700 From: Matthias Kaehlcke To: "Sandeep Maheswaram (Temp)" Cc: Rob Herring , Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Mark Rutland , Felipe Balbi , Stephen Boyd , Doug Anderson , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manu Gautam Subject: Re: [PATCH v5 1/2] dt-bindings: usb: qcom,dwc3: Convert USB DWC3 bindings Message-ID: <20200513160443.GK4525@google.com> References: <1585206368-685-1-git-send-email-sanm@codeaurora.org> <1585206368-685-2-git-send-email-sanm@codeaurora.org> <20200404171700.GA10096@bogus> <5e2eb0a4-ed70-4212-fc70-6ee850507a7e@codeaurora.org> <5793ea62-7a73-789e-33d6-6b2fb37b376c@codeaurora.org> <20200423193923.GK199755@google.com> <64ce118c-2a8d-e16c-eed1-49350c8b07bc@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <64ce118c-2a8d-e16c-eed1-49350c8b07bc@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sandeep, I would suggest to send v6 with the changes Rob and Stephen requested, except for the 'assigned-clock-rate' constraints. A description instead of the constraints is not ideal, but the constraints could be also be added at a later time. Hopefully Rob can either ack with the description or help to resolve the constraints issue. Regards Matthias On Fri, May 08, 2020 at 11:52:52AM +0530, Sandeep Maheswaram (Temp) wrote: > Hi Rob, > > Any suggestions to solve this error in assigned-clock-rates > > > Regards > Sandeep > > On 4/24/2020 1:09 AM, Matthias Kaehlcke wrote: > > On Wed, Apr 15, 2020 at 02:23:29PM +0530, Sandeep Maheswaram (Temp) wrote: > > > Hi Rob, > > > > > > Any suggestions to solve this error in assigned-clock-rates > > > On 4/6/2020 10:09 PM, Sandeep Maheswaram (Temp) wrote: > > > > Hi Rob, > > > > > > > > On 4/4/2020 10:47 PM, Rob Herring wrote: > > > > > On Thu, Mar 26, 2020 at 12:36:07PM +0530, Sandeep Maheswaram wrote: > > > > > > Convert USB DWC3 bindings to DT schema format using json-schema. > > > > > > > > > > > > Signed-off-by: Sandeep Maheswaram > > > > > > --- > > > > > >   .../devicetree/bindings/usb/qcom,dwc3.txt          | 104 > > > > > > -------------- > > > > > >   .../devicetree/bindings/usb/qcom,dwc3.yaml         | 158 > > > > > > +++++++++++++++++++++ > > > > > >   2 files changed, 158 insertions(+), 104 deletions(-) > > > > > >   delete mode 100644 > > > > > > Documentation/devicetree/bindings/usb/qcom,dwc3.txt > > > > > >   create mode 100644 > > > > > > Documentation/devicetree/bindings/usb/qcom,dwc3.yaml > > > > > > diff --git > > > > > > a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml > > > > > > b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml > > > > > > new file mode 100644 > > > > > > index 0000000..0f69475 > > > > > > --- /dev/null > > > > > > +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml > > ... > > > > > > > > +    items: > > > > > > +      - description: Must be 19.2MHz (19200000). > > > > > Sounds like a constraint: > > > > > > > > > > - const: 19200000 > > > > > > > > > > > +      - description: Must be >= 60 MHz in HS mode, >= 125 MHz > > > > > > in SS mode. > > > > > - minimum: 60000000 > > > > >    maximum: ? > > > > Tried  as below but facing errors > > > > > > > > assigned-clock-rates: > > > >     items: > > > >       - const: 19200000 > > > >       - minimum: 60000000 > > > >         maximum: 150000000 > > > > > > > > Errors > > > > > > > > linux-next/Documentation/devicetree/bindings/usb/qcom,dwc3.example.dt.yaml: > > > > usb@a6f8800: assigned-clock-rates: Additional items are not allowed > > > > ([150000000] was unexpected) > > > > linux-next/Documentation/devicetree/bindings/usb/qcom,dwc3.example.dt.yaml: > > > > usb@a6f8800: assigned-clock-rates:0: [19200000] is too short > > > > linux-next/Documentation/devicetree/bindings/usb/qcom,dwc3.example.dt.yaml: > > > > usb@a6f8800: assigned-clock-rates: [[19200000], [150000000]] is too long > > judging from the error messages my uneducated guess is that the above rules for > > assigned-clock-rates expect a single tuple of two elements, not two tuples with > > a single element, i.e. > > > > assigned-clock-rates = <19200000, 150000000>; > > > > instead of > > > > assigned-clock-rates = <19200000>, <150000000>; > > > > I experimented a bit but couldn't find the magic incantation to appease the > > schema deities. > > > > Rob, could you please help to distentangle this? > > > > Thanks > > > > Matthias > > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation >