From: Rob Herring <robh@kernel.org>
To: Jung Daehwan <dh10.jung@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Mathias Nyman <mathias.nyman@intel.com>,
Felipe Balbi <balbi@kernel.org>,
"open list:USB SUBSYSTEM" <linux-usb@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
sc.suh@samsung.com, taehyun.cho@samsung.com,
jh0801.jung@samsung.com, eomji.oh@samsung.com
Subject: Re: [RFC PATCH v2 3/3] dt-bindings: usb: snps,dwc3: add generic-xhci as child
Date: Tue, 3 Jan 2023 12:52:01 -0600 [thread overview]
Message-ID: <20230103185201.GA3650723-robh@kernel.org> (raw)
In-Reply-To: <20230102054517.GB74470@ubuntu>
On Mon, Jan 02, 2023 at 02:45:17PM +0900, Jung Daehwan wrote:
> On Thu, Dec 29, 2022 at 11:23:02AM +0100, Krzysztof Kozlowski wrote:
> > On 29/12/2022 10:57, Daehwan Jung wrote:
> > > Currently, dwc3 invokes just xhci platform driver(generic-xhci) without
> > > DT schema even though xhci works as child of dwc3. It makes sense to add
> > > xhci as child of dwc3 with DT schema. It also supports to use another
> > > compatible in xhci platform driver.
> >
> > You use some driver as an argument for hardware description, which is
> > not what we need. Describe the hardware.
> >
>
> OK. I will it on next submission.
>
> > >
> > > Signed-off-by: Daehwan Jung <dh10.jung@samsung.com>
> > > ---
> > > .../devicetree/bindings/usb/snps,dwc3.yaml | 29 +++++++++++++++++++
> > > 1 file changed, 29 insertions(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
> > > index 6d78048c4613..83ed7c526dba 100644
> > > --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
> > > +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
> > > @@ -360,8 +360,22 @@ properties:
> > > description:
> > > Enable USB remote wakeup.
> > >
> > > + "#address-cells":
> > > + enum: [ 1, 2 ]
> > > +
> > > + "#size-cells":
> > > + enum: [ 1, 2 ]
> > > +
> > > + ranges: true
> > > +
> > > unevaluatedProperties: false
> > >
> > > +# Required child node:
> > > +patternProperties:
> > > + "^usb@[0-9a-f]+$":
> > > + $ref: generic-xhci.yaml#
> > > + description: Required child node
> >
> > DWC does not have another piece of controller as child... DWC is the
> > controller. Not mentioning that you now affect several other devices
> > without describing the total hardware picture (just some drivers which
> > is not that relevant).
> >
>
> DWC controller supports USB Host mode and it uses same resource and
> really works as a child. I guess it's same on many SOCs, especially
> mobile..
Yes, and we already support all those platforms just fine without this
child node. Adding it means we have to then support *both* ways in the
driver.
> I just want to modify it to work with DT schema (dwc3 -> xhci-plat).
> I think it needs to dicuss more..
Why doesn't it work with the schema?
It's convenient when DT nodes == device drivers, but hardware is messy
sometimes. Linux (and other OSs) have to deal with that. We can't write
the DT to reflect the current (and evolving) needs of a particular OS.
Rob
next prev parent reply other threads:[~2023-01-03 18:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20221229100409epcas2p123de28f73dfb4d7429d0e15e41bb13a7@epcas2p1.samsung.com>
2022-12-29 9:57 ` [RFC PATCH v2 0/3] support Samsung Exynos xHCI Controller Daehwan Jung
2022-12-29 9:57 ` [RFC PATCH v2 1/3] usb: " Daehwan Jung
2022-12-29 10:25 ` Krzysztof Kozlowski
2023-01-02 6:24 ` Jung Daehwan
2023-01-02 8:30 ` Krzysztof Kozlowski
2022-12-29 14:44 ` Arnd Bergmann
2023-01-02 6:35 ` Jung Daehwan
2022-12-29 9:57 ` [RFC PATCH v2 2/3] dt-bindings: usb: generic-xhci: add Samsung Exynos compatible Daehwan Jung
2022-12-29 10:19 ` Krzysztof Kozlowski
2023-01-02 5:30 ` Jung Daehwan
2023-01-02 8:27 ` Krzysztof Kozlowski
2022-12-29 9:57 ` [RFC PATCH v2 3/3] dt-bindings: usb: snps,dwc3: add generic-xhci as child Daehwan Jung
2022-12-29 10:23 ` Krzysztof Kozlowski
2023-01-02 5:45 ` Jung Daehwan
2023-01-03 18:52 ` Rob Herring [this message]
2022-12-30 16:34 ` Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230103185201.GA3650723-robh@kernel.org \
--to=robh@kernel.org \
--cc=Thinh.Nguyen@synopsys.com \
--cc=balbi@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dh10.jung@samsung.com \
--cc=eomji.oh@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=jh0801.jung@samsung.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=sc.suh@samsung.com \
--cc=taehyun.cho@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).