From: "Stanley Chang[昌育德]" <stanley_chang@realtek.com>
To: Rob Herring <robh@kernel.org>
Cc: Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v1 2/2] doc: dt: bindings: usb: realtek,dwc3: Add Realtek DHC RTD SoC DWC3 USB
Date: Thu, 3 Aug 2023 07:09:56 +0000 [thread overview]
Message-ID: <3ade69876138407aaa650255a902999d@realtek.com> (raw)
In-Reply-To: <20230803011836.GA1635549-robh@kernel.org>
Hi Rob,
> > +properties:
> > + compatible:
> > + items:
> > + - enum:
> > + - realtek,rtd1295-dwc3
> > + - realtek,rtd1315e-dwc3
> > + - realtek,rtd1319-dwc3
> > + - realtek,rtd1319d-dwc3
> > + - realtek,rtd1395-dwc3
> > + - realtek,rtd1619-dwc3
> > + - realtek,rtd1619b-dwc3
> > + - const: realtek,rtd-dwc3
> > +
> > + reg:
> > + maxItems: 1
>
> Some details on what these registers are would be useful. Or describing what's
> in the 'glue' device?
Ok, I will add the description.
> > + realtek,unlink-usb3-port:
> > + description: Disable link between USB 3.0 PHY and USB mac.
> > + Only for RTD1619 SoC, if the board design support maximum 2.0
> speed.
> > + type: boolean
>
> We have a property for this: maximum-speed
>
> That belongs in the USB controller node though.
I can try to use this property.
But I have a question.
This property belongs to dwc3.
When the dwc3-rtk setting disables USB 3.0 phy, dwc3 is not probed.
So I can't use api usb_get_maximum_speed(dev) to get maximum_speed.
I can add this property "maximum-speed" to the dwc3-rtk node, which is the same as the dwc3 core node.
Is this configuration appropriate?
For example
usb@98013e00 {
compatible = "realtek,rtd1319d-dwc3", "realtek,rtd-dwc3";
reg = <0x98013e00 0x200>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
maximum-speed = "high-speed";
usb@98050000 {
compatible = "snps,dwc3";
reg = <0x98050000 0x9000>;
interrupts = <0 94 4>;
phys = <&usb2phy &usb3phy>;
phy-names = "usb2-phy", "usb3-phy";
dr_mode = "otg";
usb-role-switch;
role-switch-default-mode = "host";
snps,dis_u2_susphy_quirk;
snps,parkmode-disable-ss-quirk;
snps,parkmode-disable-hs-quirk;
maximum-speed = "high-speed";
};
};
> > +
> > + realtek,disable-usb3-phy:
> > + description: Close USB 3.0 PHY if the board design not support USB 3.0.
> > + type: boolean
>
> Can't this be determined by not having a USB3 phy listed?
I will try to use maximum-speed.
> > +examples:
> > + - |
> > + usb@98013e00 {
> > + compatible = "realtek,rtd1319d-dwc3", "realtek,rtd-dwc3";
> > + reg = <0x98013e00 0x200>;
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > + ranges;
> > + status = "okay";
>
> Drop status from examples.
Ok.
Thanks,
Stanley
next prev parent reply other threads:[~2023-08-03 7:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-28 3:53 [PATCH v1 1/2] usb: dwc3: add Realtek DHC RTD SoC dwc3 glue layer driver Stanley Chang
2023-07-28 3:53 ` [PATCH v1 2/2] doc: dt: bindings: usb: realtek,dwc3: Add Realtek DHC RTD SoC DWC3 USB Stanley Chang
2023-07-28 7:04 ` Krzysztof Kozlowski
2023-07-28 17:37 ` Stanley Chang[昌育德]
2023-07-30 8:29 ` Krzysztof Kozlowski
2023-07-31 6:25 ` Stanley Chang[昌育德]
2023-08-03 1:18 ` Rob Herring
2023-08-03 7:09 ` Stanley Chang[昌育德] [this message]
2023-07-29 4:36 ` [PATCH v1 1/2] usb: dwc3: add Realtek DHC RTD SoC dwc3 glue layer driver kernel test robot
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=3ade69876138407aaa650255a902999d@realtek.com \
--to=stanley_chang@realtek.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=robh@kernel.org \
/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).