[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAD=FV=UER4zt=z3XWEzNt5v2oe8V=z6Hb-Wm-2BzuWtuHmYg-A@mail.gmail.com>
Date: Wed, 18 Dec 2019 10:37:53 -0800
From: Doug Anderson <dianders@...omium.org>
To: "Sandeep Maheswaram (Temp)" <sanm@...eaurora.org>
Cc: Andy Gross <agross@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Felipe Balbi <balbi@...nel.org>,
Stephen Boyd <swboyd@...omium.org>,
linux-arm-msm <linux-arm-msm@...r.kernel.org>,
linux-usb@...r.kernel.org,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>,
Manu Gautam <mgautam@...eaurora.org>
Subject: Re: [PATCH v3 1/2] dt-bindings: usb: qcom,dwc3: Convert USB DWC3 bindings
Hi,
On Wed, Dec 18, 2019 at 4:41 AM Sandeep Maheswaram (Temp)
<sanm@...eaurora.org> wrote:
> + assigned-clock-rates:
> + description:
> + Should be 19.2MHz (19200000) for MOCK_UTMI_CLK
> + >=125MHz (125000000) for MASTER_CLK in SS mode
> + >=60MHz (60000000) for MASTER_CLK in HS mode
> + maxItems: 2
>
> You can still express some limits here even if we don't go all out
> with the "oneOf". AKA I think this is better:
>
> assigned-clock-rates:
> items:
> - const: 19200000
> - minimum: 60000000
> description: >= 60 MHz in HS mode, >= 125 MHz in SS mode
>
> Facing error when i add as above.
> properties:assigned-clock-rates: {'items': [{'const': 19200000}, {'minimum': 60000000}]} is not valid under any of the given schemas
> Documentation/devicetree/bindings/Makefile:12: recipe for target 'Documentation/devicetree/bindings/usb/qcom,dwc3.example.dts' failed
I couldn't figure it out either. ...but at least this seemed to work
and is slightly better than what you have:
assigned-clock-rates:
items:
- description: Must be 19.2MHz (19200000)
- description: Must be >= 60 MHz in HS mode, >= 125 MHz in SS mode
So I'd say go with that.
-Doug
Powered by blists - more mailing lists