From: Conor Dooley <conor@kernel.org>
To: Yixun Lan <dlan@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Ze Huang <huang.ze@linux.dev>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Emil Renner Berthing <kernel@esmil.dk>,
Junzhong Pan <junzhong.pan@spacemit.com>,
Inochi Amaoto <inochiama@gmail.com>,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-riscv@lists.infradead.org, spacemit@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: usb: dwc3: spacemit: add support for K3 SoC
Date: Wed, 18 Mar 2026 17:21:55 +0000 [thread overview]
Message-ID: <20260318-crock-tinderbox-ae12024627d9@spud> (raw)
In-Reply-To: <20260317214435-GKA453922@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 2317 bytes --]
On Wed, Mar 18, 2026 at 05:44:35AM +0800, Yixun Lan wrote:
> Hi Conor,
>
> On 12:55 Tue 17 Mar , Conor Dooley wrote:
> > On Tue, Mar 17, 2026 at 11:53:02AM +0000, Yixun Lan wrote:
> > > Add compatible string for DWC3 USB controller found in SpacemiT K3 SoC.
> > > The USB2.0 host controller in K3 SoC actually use DWC3 IP but only has
> > > USB2.0 functionality, and requires only one USB2.0 PHY connected.
> > >
> > > Explicitly reduce number of phy property to minimal one.
> >
> > Is this valid for the existing compatible, will it work with only one
> > clock?
> >
> I didn't change clock binding, do you mean phy?
>
> Both k1 and k3 work with one clock (no change here)
>
> for phy, the existing k1 requires two. for k3, one controller requires
> one phy due to only has USB2.0 support, other controllers requires two
> phys - USB2, USB3 PHY
Yep, phy is what I meant. Sorry bout that. Since you're relaxing the
constraints for the k1, can you please add a conditional section to the
binding to enforce 2 phys min for k1?
>
> > >
> > > Signed-off-by: Yixun Lan <dlan@kernel.org>
> > > ---
> > > Documentation/devicetree/bindings/usb/spacemit,k1-dwc3.yaml | 6 +++++-
> > > 1 file changed, 5 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/usb/spacemit,k1-dwc3.yaml b/Documentation/devicetree/bindings/usb/spacemit,k1-dwc3.yaml
> > > index 0f0b5e061ca1..cc27b363ca79 100644
> > > --- a/Documentation/devicetree/bindings/usb/spacemit,k1-dwc3.yaml
> > > +++ b/Documentation/devicetree/bindings/usb/spacemit,k1-dwc3.yaml
> > > @@ -27,7 +27,9 @@ allOf:
> > >
> > > properties:
> > > compatible:
> > > - const: spacemit,k1-dwc3
> > > + enum:
> > > + - spacemit,k1-dwc3
> > > + - spacemit,k3-dwc3
> > >
> > > reg:
> > > maxItems: 1
> > > @@ -42,11 +44,13 @@ properties:
> > > maxItems: 1
> > >
> > > phys:
> > > + minItems: 1
> > > items:
> > > - description: phandle to USB2/HS PHY
> > > - description: phandle to USB3/SS PHY
> > >
> > > phy-names:
> > > + minItems: 1
> > > items:
> > > - const: usb2-phy
> > > - const: usb3-phy
> > >
> > > --
> > > 2.53.0
> > >
>
>
>
> --
> Yixun Lan (dlan)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-03-18 17:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 11:53 [PATCH 0/3] usb: spacemit: k3: Add USB2.0 support Yixun Lan
2026-03-17 11:53 ` [PATCH 1/3] dt-bindings: usb: dwc3: spacemit: add support for K3 SoC Yixun Lan
2026-03-17 12:55 ` Conor Dooley
2026-03-17 21:44 ` Yixun Lan
2026-03-18 17:21 ` Conor Dooley [this message]
2026-03-19 2:41 ` Yixun Lan
2026-03-19 14:36 ` Conor Dooley
2026-03-20 6:52 ` Yixun Lan
2026-03-17 11:53 ` [PATCH 2/3] usb: dwc3: dwc3-generic-plat: " Yixun Lan
2026-03-18 1:24 ` Thinh Nguyen
2026-03-17 11:53 ` [PATCH 3/3] riscv: dts: spacemit: k3: Add USB2.0 support Yixun Lan
2026-03-18 9:01 ` Krzysztof Kozlowski
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=20260318-crock-tinderbox-ae12024627d9@spud \
--to=conor@kernel.org \
--cc=Thinh.Nguyen@synopsys.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=huang.ze@linux.dev \
--cc=inochiama@gmail.com \
--cc=junzhong.pan@spacemit.com \
--cc=kernel@esmil.dk \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=spacemit@lists.linux.dev \
/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