From: Minda Chen <minda.chen@starfivetech.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor@kernel.org>,
linux-usb@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Minda Chen <minda.chen@starfivetech.com>
Subject: [PATCH v3 2/3] dt-bindings: usb: starfive,jhb100-dwc3: Add clock number limit
Date: Wed, 25 Nov 2026 16:37:35 +0800 [thread overview]
Message-ID: <20261125083736.50606-3-minda.chen@starfivetech.com> (raw)
In-Reply-To: <20261125083736.50606-1-minda.chen@starfivetech.com>
The JHB100 device-only controllers are connected to a digital PHY
adapter instead of a USB PHY, so they have no reference clock. Only
the "main" and "bus_early" clocks are present.
Allow two clocks for the controllers with the adapter region, keep
requiring all three clocks for the DRD controllers, and add an
example of a device-only controller.
Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
---
.../bindings/usb/starfive,jhb100-dwc3.yaml | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml b/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml
index 3ebf39616bd1..9ed439c112c7 100644
--- a/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml
@@ -30,6 +30,10 @@ allOf:
minItems: 2
reg-names:
minItems: 2
+ clocks:
+ maxItems: 2
+ clock-names:
+ maxItems: 2
dr_mode:
const: peripheral
else:
@@ -38,6 +42,10 @@ allOf:
maxItems: 1
reg-names:
maxItems: 1
+ clocks:
+ minItems: 3
+ clock-names:
+ minItems: 3
properties:
compatible:
@@ -59,12 +67,14 @@ properties:
maxItems: 1
clocks:
+ minItems: 2
items:
- description: USB main enable clk
- description: DWC3 bus early clock
- description: DWC3 ref clock
clock-names:
+ minItems: 2
items:
- const: main
- const: bus_early
@@ -95,3 +105,15 @@ examples:
interrupts = <105>;
dr_mode = "host";
};
+ - |
+ usb@10600000 {
+ compatible = "starfive,jhb100-dwc3";
+ reg = <0x10600000 0x10000>, <0x10695800 0x100>;
+ reg-names = "core", "adapter";
+ clocks = <&usbdcrg 30>,
+ <&usbdcrg 31>;
+ clock-names = "main", "bus_early";
+ resets = <&usbdcrg 12>;
+ interrupts = <106>;
+ dr_mode = "peripheral";
+ };
--
2.17.1
next prev parent reply other threads:[~2026-11-25 8:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 8:37 [PATCH v3 0/3] Add StarFive JHB100 host field USB device controller driver Minda Chen
2026-11-25 8:37 ` [PATCH v3 1/3] dt-bindings: usb: starfive,jhb100-dwc3: Add adapter register region Minda Chen
2026-11-25 8:37 ` Minda Chen [this message]
2026-11-25 8:37 ` [PATCH v3 3/3] usb: dwc3: starfive: Add JHB100 USB device adapter port enable quirk Minda Chen
2026-11-25 8:46 ` [PATCH v3 0/3] Add StarFive JHB100 host field USB device controller driver sashiko-bot
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=20261125083736.50606-3-minda.chen@starfivetech.com \
--to=minda.chen@starfivetech.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=robh+dt@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.