[PATCH] dt-bindings: usb: snps,dwc3: document usb-psy-name
From: Qianhui Xu
Date: Tue Dec 01 2026 - 07:30:35 EST
The DWC3 core driver reads the "usb-psy-name" string property
(drivers/usb/dwc3/core.c, dwc3_get_usb_power_supply():
device_property_read_string("usb-psy-name")) to find the power supply
whose current-limit notifier drives the gadget-side VBUS draw budget
(dwc3_psy_notifier / dwc3_vbus_draw_work). The binding never declared
it, so a board that names its USB power supply (e.g. "qcom-battmgr-usb"
on Qualcomm pmic-glink platforms) fails dtbs_check with
"'usb-psy-name' ... is not of type 'object', 'integer', 'array', ..."
once the vendor binding's unevaluatedProperties: false applies.
Declare it as a string in snps,dwc3-common.yaml, next to the other
core-consumed properties. No DT or driver change; purely a
binding-completeness fix.
Found while auditing a board that enables qcom,sm8750-dwc3
(usb@a600000: usb-psy-name = "qcom-battmgr-usb").
Signed-off-by: Qianhui Xu <xiaqinghuan@xxxxxxxxxxxxxxxx>
---
*** AI-assistance disclosure ***
This patch was prepared with the help of an LLM coding assistant. The
author reviewed every line, checked every quoted claim against the tree,
and ran the gates recorded in the send report; the design decisions and
any errors are the author's.
diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml
index 6c0b8b6538246..da2bd649f62e1 100644
--- a/Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml
+++ b/Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml
@@ -418,6 +418,12 @@ properties:
$ref: /schemas/graph.yaml#/properties/port
description: Super Speed (SS) data bus.
+ usb-psy-name:
+ $ref: /schemas/types.yaml#/definitions/string
+ description:
+ Name of the power supply to track for the gadget VBUS draw current
+ limit, as consumed by the DWC3 core driver.
+
wakeup-source:
$ref: /schemas/types.yaml#/definitions/flag
description: