* [PATCH] dt-bindings: usb: snps,dwc3: document usb-psy-name
@ 2026-12-01 12:30 Qianhui Xu
2026-12-01 12:38 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Qianhui Xu @ 2026-12-01 12:30 UTC (permalink / raw)
To: gregkh; +Cc: robh, krzk+dt, conor+dt, balbi, linux-usb, devicetree,
linux-kernel
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@mail.ustc.edu.cn>
---
*** 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:
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] dt-bindings: usb: snps,dwc3: document usb-psy-name
2026-12-01 12:30 [PATCH] dt-bindings: usb: snps,dwc3: document usb-psy-name Qianhui Xu
@ 2026-12-01 12:38 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-12-01 12:38 UTC (permalink / raw)
To: Qianhui Xu; +Cc: linux-usb
> 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@mail.ustc.edu.cn>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201123018.2965784-1-xiaqinghuan@mail.ustc.edu.cn?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-01 12:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 12:30 [PATCH] dt-bindings: usb: snps,dwc3: document usb-psy-name Qianhui Xu
2026-12-01 12:38 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox