From: Ze Huang <huangze@whut.edu.cn>
To: Krzysztof Kozlowski <krzk@kernel.org>, Ze Huang <huangze@whut.edu.cn>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Yixun Lan <dlan@gentoo.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
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 v3 1/3] dt-bindings: usb: dwc3: add support for SpacemiT K1
Date: Tue, 20 May 2025 10:47:14 +0800 [thread overview]
Message-ID: <aCvtMu9gNxKoTXWo@jean.localdomain> (raw)
In-Reply-To: <20250519-busy-expert-buffalo-2c01ea@kuoka>
On Mon, May 19, 2025 at 11:35:28AM +0200, Krzysztof Kozlowski wrote:
> On Sun, May 18, 2025 at 03:19:19AM GMT, Ze Huang wrote:
> > +properties:
> > + compatible:
> > + const: spacemit,k1-dwc3
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + clocks:
> > + maxItems: 1
> > +
> > + clock-names:
> > + const: usbdrd30
> > +
>
> How many phys?
>
Two phys: USB2.0 phy and USB3.0 phy
Will update the bindings in next version.
> > + resets:
> > + maxItems: 1
> > +
> > + interrupts:
> > + maxItems: 1
> > +
> > + interconnects:
>
> compatible, reg and then order by name: clocks +names, interconnects +
> names, interrupts, resets, vdd-supply.
>
Got it wrong again - thanks for your patience.
I'll update the property order as you suggested.
> > + maxItems: 1
> > + description:
> > + On SpacemiT K1, USB performs DMA through bus other than parent DT node.
> > + The 'interconnects' property explicitly describes this path, ensuring
> > + correct address translation.
> > +
> > + interconnect-names:
> > + const: dma-mem
> > +
> > + vbus-supply:
> > + description: A phandle to the regulator supplying the VBUS voltage.
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - clocks
> > + - clock-names
> > + - resets
> > + - interrupts
> > + - interconnects
> > + - interconnect-names
> > +
> > +unevaluatedProperties: false
> > +
> > +examples:
> > + - |
> > + usb@c0a00000 {
> > + compatible = "spacemit,k1-dwc3";
> > + reg = <0xc0a00000 0x10000>;
> > + clocks = <&syscon_apmu 16>;
> > + clock-names = "usbdrd30";
> > + resets = <&syscon_apmu 8>;
> > + interrupt-parent = <&plic>;
> > + interrupts = <125>;
> > + interconnects = <&mbus0>;
> > + interconnect-names = "dma-mem";
>
> Feels like missing port or ports. Are you sure your example is complete?
>
Will include ports in next version
hub@1 {
compatible = "usb2109,2817";
reg = <0x1>;
vdd-supply = <&usb3_vhub>;
peer-hub = <&hub_3_0>;
reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>;
};
hub@2 {
compatible = "usb2109,817";
reg = <0x1>;
vdd-supply = <&usb3_vhub>;
peer-hub = <&hub_2_0>;
reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>;
};
next prev parent reply other threads:[~2025-05-20 2:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-17 19:19 [PATCH v3 0/3] Add SpacemiT K1 USB3.0 host controller support Ze Huang
2025-05-17 19:19 ` [PATCH v3 1/3] dt-bindings: usb: dwc3: add support for SpacemiT K1 Ze Huang
2025-05-19 9:35 ` Krzysztof Kozlowski
2025-05-20 2:47 ` Ze Huang [this message]
2025-05-17 19:19 ` [PATCH v3 2/3] usb: dwc3: add common driver to support flattened DT Ze Huang
2025-05-19 23:37 ` Thinh Nguyen
2025-05-21 14:42 ` Ze Huang
2025-05-17 19:19 ` [PATCH v3 3/3] riscv: dts: spacemit: add usb3.0 support for K1 Ze Huang
2025-05-19 9:37 ` Krzysztof Kozlowski
2025-05-21 14:22 ` Ze Huang
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=aCvtMu9gNxKoTXWo@jean.localdomain \
--to=huangze@whut.edu.cn \
--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@gentoo.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--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