From: Ze Huang <huangze@whut.edu.cn>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Yixun Lan <dlan@gentoo.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>
Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-riscv@lists.infradead.org, spacemit@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH 3/7] dt-bindings: usb: add SpacemiT K1 DWC3 glue
Date: Wed, 9 Apr 2025 16:16:10 +0800 [thread overview]
Message-ID: <9f7d1ea4-d9cb-48d2-9af1-4db38fadd55e@whut.edu.cn> (raw)
In-Reply-To: <ac9fd6b3-2184-4d75-83e5-6caee4f3758d@kernel.org>
On 4/7/25 9:22 PM, Krzysztof Kozlowski wrote:
> On 07/04/2025 14:38, Ze Huang wrote:
>> Add support for SpacemiT DWC3 glue driver, which manages interrupt,
>> reset and clock resource.
>>
>> Signed-off-by: Ze Huang <huangze@whut.edu.cn>
>> ---
>> .../devicetree/bindings/usb/spacemit,k1-dwc3.yaml | 78 ++++++++++++++++++++++
>> 1 file changed, 78 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/usb/spacemit,k1-dwc3.yaml b/Documentation/devicetree/bindings/usb/spacemit,k1-dwc3.yaml
> Combining 3 subsystems into one patchset is a poor idea.
Acknowledged, will split into two sets in next version
1. usb2 phy and combo phy
2. dwc3 glue driver and dts
>
>> new file mode 100644
>> index 0000000000000000000000000000000000000000..40ce3fd1330d5f371ec69155c237e10a65a9d8f4
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/usb/spacemit,k1-dwc3.yaml
>> @@ -0,0 +1,78 @@
>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/usb/spacemit,k1-dwc3.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: SpacemiT K1 SuperSpeed DWC3 USB SoC Controller Glue
>> +
>> +maintainers:
>> + - Ze Huang <huangze@whut.edu.cn>
>> +
>> +properties:
>> + compatible:
>> + const: spacemit,k1-dwc3
>> +
>> + ranges:
>> + maxItems: 1
>> +
>> + clocks:
>> + maxItems: 1
>> +
>> + resets:
>> + maxItems: 1
>> +
>> + interrupts:
>> + maxItems: 1
>> +
>> + interconnects:
> Missing maxItems
Will fix
>
>> + 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
>> +
>> + # optional
> Drop, Don't repeat constraints in free form text.
Will do
>
>> + vbus-supply:
>> + description: A phandle to the regulator supplying the VBUS voltage.
>> +
>> +patternProperties:
>> + '^usb@':
>> + $ref: snps,dwc3.yaml#
> No, rather fold child into the parent.
I’m not entirely sure I understand your suggestion. Could you please provide
an example? Thanks!
>
>> +
>> +additionalProperties: false
> This goes after required:, always.
OK
>
>> +
>> +required:
>> + - compatible
>> + - ranges
>> + - clocks
>> + - resets
>> + - interrupts
>> + - interconnects
>> + - interconnect-names
>> +
>> +examples:
>> + - |
>> + usb@c0a00000 {
>> + compatible = "spacemit,k1-dwc3";
>> + clocks = <&syscon_apmu 16>;
>> + interrupts = <149>;
>> + interconnects = <&dram_range0>;
>> + interconnect-names = "dma-mem";
>> + ranges = <0x0 0xc0a00000 0x10000>;
>> + resets = <&syscon_apmu 8>;
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> + status = "disabled";
> Nope, drop.
Will drop 'status'
>
>
>
> Best regards,
> Krzysztof
>
>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2025-04-09 8:20 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 12:38 [PATCH 0/7] Add USB3.0 PHY and host controller support for SpacemiT K1 SoC Ze Huang
2025-04-07 12:38 ` [PATCH 1/7] dt-bindings: phy: spacemit: add K1 USB2 PHY Ze Huang
2025-04-07 13:18 ` Krzysztof Kozlowski
2025-04-09 8:01 ` Ze Huang
2025-04-10 20:53 ` Rob Herring (Arm)
2025-04-07 12:38 ` [PATCH 2/7] dt-bindings: phy: spacemit: add K1 PCIe/USB3 combo PHY Ze Huang
2025-04-07 13:20 ` Krzysztof Kozlowski
2025-04-09 8:05 ` Ze Huang
2025-04-07 12:38 ` [PATCH 3/7] dt-bindings: usb: add SpacemiT K1 DWC3 glue Ze Huang
2025-04-07 13:22 ` Krzysztof Kozlowski
2025-04-09 8:16 ` Ze Huang [this message]
2025-04-09 10:08 ` Krzysztof Kozlowski
2025-04-07 13:51 ` Rob Herring (Arm)
2025-04-09 8:30 ` Ze Huang
2025-04-07 12:38 ` [PATCH 4/7] phy: spacemit: support K1 USB2.0 PHY controller Ze Huang
2025-04-07 13:25 ` Krzysztof Kozlowski
2025-04-09 8:18 ` Ze Huang
2025-04-07 12:38 ` [PATCH 5/7] phy: spacemit: add USB3 support for K1 PCIe/USB3 combo PHY Ze Huang
2025-04-07 13:28 ` Krzysztof Kozlowski
2025-04-09 9:43 ` Ze Huang
2025-04-09 10:10 ` Krzysztof Kozlowski
2025-04-09 11:38 ` Pan Junzhong
2025-04-09 11:42 ` Ze Huang
2025-04-07 12:38 ` [PATCH 6/7] usb: dwc3: add spacemit dwc3 glue layer driver Ze Huang
2025-04-09 22:34 ` Thinh Nguyen
2025-04-10 1:34 ` Ze Huang
2025-04-07 12:38 ` [PATCH 7/7] riscv: dts: spacemit: add usb3.0 support for K1 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=9f7d1ea4-d9cb-48d2-9af1-4db38fadd55e@whut.edu.cn \
--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=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.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 \
--cc=vkoul@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