[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201210032359.GA1590225@robh.at.kernel.org>
Date: Wed, 9 Dec 2020 21:23:59 -0600
From: Rob Herring <robh@...nel.org>
To: Serge Semin <Sergey.Semin@...kalelectronics.ru>
Cc: Krzysztof Kozlowski <krzk@...nel.org>,
Pavel Parkhomenko <Pavel.Parkhomenko@...kalelectronics.ru>,
linux-mips@...r.kernel.org,
Alexey Malahov <Alexey.Malahov@...kalelectronics.ru>,
Roger Quadros <rogerq@...com>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Neil Armstrong <narmstrong@...libre.com>,
Ahmad Zainie <wan.ahmad.zainie.wan.mohamad@...el.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>,
Felipe Balbi <balbi@...nel.org>,
linux-snps-arc@...ts.infradead.org,
Kevin Hilman <khilman@...libre.com>, linux-usb@...r.kernel.org,
Mathias Nyman <mathias.nyman@...el.com>,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Chunfeng Yun <chunfeng.yun@...iatek.com>,
linux-arm-kernel@...ts.infradead.org,
Andy Gross <agross@...nel.org>,
Serge Semin <fancer.lancer@...il.com>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>,
devicetree@...r.kernel.org, Manu Gautam <mgautam@...eaurora.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Rob Herring <robh+dt@...nel.org>
Subject: Re: [PATCH v5 01/19] dt-bindings: usb: usb-hcd: Detach generic USB
controller properties
On Sat, 05 Dec 2020 18:24:08 +0300, Serge Semin wrote:
> There can be three distinctive types of the USB controllers: USB hosts,
> USB peripherals/gadgets and USB OTG, which can switch from one role to
> another. In order to have that hierarchy handled in the DT binding files,
> we need to collect common properties in a common DT schema and specific
> properties in dedicated schemas. Seeing the usb-hcd.yaml DT schema is
> dedicated for the USB host controllers only, let's move some common
> properties from there into the usb.yaml schema. So the later would be
> available to evaluate all currently supported types of the USB
> controllers.
>
> While at it add an explicit "additionalProperties: true" into the
> usb-hcd.yaml as setting the additionalProperties/unevaluateProperties
> properties is going to be get mandatory soon.
>
> Signed-off-by: Serge Semin <Sergey.Semin@...kalelectronics.ru>
>
> ---
>
> Changelog v4:
> - This is a new patch created as a result of the comment left
> by Chunfeng Yun in v3
>
> Changelog v5:
> - Discard duplicated additionalProperties property definition.
> ---
> .../devicetree/bindings/usb/usb-hcd.yaml | 14 ++-------
> .../devicetree/bindings/usb/usb.yaml | 29 +++++++++++++++++++
> 2 files changed, 31 insertions(+), 12 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/usb/usb.yaml
>
Reviewed-by: Rob Herring <robh@...nel.org>
Powered by blists - more mailing lists