Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2163859ybz; Thu, 23 Apr 2020 12:45:09 -0700 (PDT) X-Google-Smtp-Source: APiQypIHWnm+pw1UO8Vvsw3DYKGBz+YdgQxnpFwDUG9K5c0kVWJjFYM/dsXKvTUWV4CvWfELxK0W X-Received: by 2002:aa7:d7c1:: with SMTP id e1mr4427691eds.8.1587671109116; Thu, 23 Apr 2020 12:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587671109; cv=none; d=google.com; s=arc-20160816; b=RRrTO4wrL4aZDnopjL8f0jLv0v+pjwPeG/51s6rS5teXUOBtA67EnPIZm7XazT90ab XM/wtlnu89NUVnz3PJRiXj9C3ZrZmKSvK64Y0za/fBGq70Pf3gCydlBmONq4iT7RONMD i0D532YVQBTXIQoZkOvL6kHBSWzv6DCtimMfMmWgomjaAEjuvFOiLU7uRZGUkQFzjpMu xLC7W/M0dk5fkkzkqBM+Lx4nirUM8/Nv90mBy7K48gNBFSNuDk1AOkMC29d+FjB1oRbx UJKb6Zhz3JMKVQfHpAV4Oiol9XSf6ap7PGwmPZE7nxZqk6e2DQjWl/i6YKTh21mOk8iU YDnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7VPU62AS0hE3DKQRkOunlFCKQKhdwD9eupm/jSgSc0o=; b=TeaNFQnqlhIHRbfT4qD/LiTFs6Wz7Lrhag/dv8prBTD295ZZm+nE7+OnN7qnKRObJX k2MTQcg1+BDV5qtH/+0FnarsTnZW7JraIh/FtnaP5OKuuIFg60YjTDExdM/3DWvLg1MG 0lSG077tgyZE7NCGQzL1Bjfqg5kXNyj6te2KhtOSHMluo27vzAAjrWPswkwz1awI3hy+ HCW2vhC62RGLkxtR8xGjA5X8HnDVkuyO0iw2ErAf5uXy6+Br6yIkVTi6P9Da4jisfsB+ Kk6URilojrUZxXU2CBPI2Esecl8lo0OoVzEqgnsdSkhsLZmsJJDzIQVqWFQd69K0zp1o E5Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fqm9ZIjY; 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 i63si1598125edd.601.2020.04.23.12.44.45; Thu, 23 Apr 2020 12:45:09 -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=fqm9ZIjY; 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 S1728141AbgDWTj2 (ORCPT + 99 others); Thu, 23 Apr 2020 15:39:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727831AbgDWTj1 (ORCPT ); Thu, 23 Apr 2020 15:39:27 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3F44C09B044 for ; Thu, 23 Apr 2020 12:39:26 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id t11so3403671pgg.2 for ; Thu, 23 Apr 2020 12:39:26 -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 :user-agent; bh=7VPU62AS0hE3DKQRkOunlFCKQKhdwD9eupm/jSgSc0o=; b=fqm9ZIjYeSPBDfE/QRu99KVQdVsUeerRL5pAVUVajv+e2SuYpHLE1FyB095+rRNLhg /J3qFsRFP7AfK6wYscG9PXM49C3MZEyA5tvD/Zv8lnY8QYwqZoSxa+Y04fsNkGs3+dpZ 9g6GfHdmQjY9gvJea954/kRhpTEdxkybP1Axg= 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:user-agent; bh=7VPU62AS0hE3DKQRkOunlFCKQKhdwD9eupm/jSgSc0o=; b=Vu2+/3AkmT8DxvBZYzUc2fVreuuaByxEaB3BA1ZR9m8vOZlZ49k7cbdJ2Ymy1F94O3 bn/VqmEmNH8y9/lsnNhxCUxgp7HXZT11qSk5RhljpIRB8vFoRHj4XPYMwryXz0yFKb9e TEvf9hkxMUEh3oviilI3HZAi0oWVJRowwjeddwxeiyxjbh5kpt4oP3PzNbkJAcyyPRrT xjzhNaa9nzvc9JA1oiWLHxJPowzUSSgg11GvMN+gi2pf/rT28GBAcdZ2s/MaJhB7vW58 4Rh3V7D4Ynykxfi4jtEot9Hu7LxZS6SN94WMuOC8mO/oxs2mwj73iMyhbt2spD8M5mle k9Jw== X-Gm-Message-State: AGi0PuZdUbYpdrsRyO4Y8D665jRFJ74NnWHWCI6+RIRrEF/dgjXcFbWd sEs0lB5nBkdtYpfktLVAQ+XTDA== X-Received: by 2002:a62:8202:: with SMTP id w2mr5342725pfd.117.1587670766035; Thu, 23 Apr 2020 12:39:26 -0700 (PDT) Received: from localhost ([2620:15c:202:1:4fff:7a6b:a335:8fde]) by smtp.gmail.com with ESMTPSA id l185sm3281987pfl.104.2020.04.23.12.39.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Apr 2020 12:39:24 -0700 (PDT) Date: Thu, 23 Apr 2020 12:39:23 -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: <20200423193923.GK199755@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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5793ea62-7a73-789e-33d6-6b2fb37b376c@codeaurora.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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