* [PATCH] dt-bindings: usb: amlogic,meson-g12a-usb-ctrl: add S4 support
@ 2026-11-06 10:46 christian.koever-draxl
2026-11-06 10:51 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: christian.koever-draxl @ 2026-11-06 10:46 UTC (permalink / raw)
To: gregkh, robh, krzk+dt, conor+dt, neil.armstrong, khilman, jbrunet,
martin.blumenstingl
Cc: linux-usb, devicetree, linux-arm-kernel, linux-amlogic,
linux-kernel, Christian Stefan Kövér-Draxl
From: Christian Stefan Kövér-Draxl <ckoever@outlook.de>
The S4 USB glue is the G12A one, but it fronts an xHCI host controller
instead of a DWC3 core, with two USB2 PHYs and no USB3 PHY. Add an S4
compatible with the G12A one as fallback, and allow a generic xHCI
child node.
Signed-off-by: Christian Stefan Kövér-Draxl <ckoever@outlook.de>
---
Tool use (Documentation/process/generated-content.rst):
This work was done with the help of an AI coding assistant, Claude
(Anthropic), used through Claude Code over many sessions. It did a large
part of the hands-on work: it read the vendor kernel and the firmware
interfaces, probed registers on the board, drafted the code and the
changelogs, and ran the builds, checkpatch, dt_binding_check and the
tests on the hardware. I directed the work, reviewed every change and
the final patches, and take responsibility for them. There is no single
prompt to quote; the sessions were of the form "find out why X fails on
this board, fix it, test it on the box".
Tested on an Amediatech X98Q TV box (Amlogic S905W2, S4 family, 2 GiB),
vendor U-Boot and BL31/OP-TEE, Linux 7.3 plus this work.
.../usb/amlogic,meson-g12a-usb-ctrl.yaml | 24 ++++++++++++-------
1 file changed, 16 insertions(+), 8 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/amlogic,meson-g12a-usb-ctrl.yaml b/Documentation/devicetree/bindings/usb/amlogic,meson-g12a-usb-ctrl.yaml
index da757c1155d4..186390f930f8 100644
--- a/Documentation/devicetree/bindings/usb/amlogic,meson-g12a-usb-ctrl.yaml
+++ b/Documentation/devicetree/bindings/usb/amlogic,meson-g12a-usb-ctrl.yaml
@@ -27,14 +27,21 @@ description: |
The Amlogic GXL, GXM & AXG SoCs doesn't embed an USB3 PHY.
+ The Amlogic S4 uses the G12A glue in front of an xHCI host controller
+ instead of a DWC3 core, with two USB2 PHYs and no USB3 PHY.
+
properties:
compatible:
- enum:
- - amlogic,meson-gxl-usb-ctrl
- - amlogic,meson-gxm-usb-ctrl
- - amlogic,meson-axg-usb-ctrl
- - amlogic,meson-g12a-usb-ctrl
- - amlogic,meson-a1-usb-ctrl
+ oneOf:
+ - enum:
+ - amlogic,meson-gxl-usb-ctrl
+ - amlogic,meson-gxm-usb-ctrl
+ - amlogic,meson-axg-usb-ctrl
+ - amlogic,meson-g12a-usb-ctrl
+ - amlogic,meson-a1-usb-ctrl
+ - items:
+ - const: amlogic,meson-s4-usb-ctrl
+ - const: amlogic,meson-g12a-usb-ctrl
ranges: true
@@ -82,6 +89,7 @@ patternProperties:
oneOf:
- $ref: dwc2.yaml#
- $ref: snps,dwc3.yaml#
+ - $ref: generic-xhci.yaml#
additionalProperties: false
@@ -102,8 +110,8 @@ allOf:
- if:
properties:
compatible:
- enum:
- - amlogic,meson-g12a-usb-ctrl
+ contains:
+ const: amlogic,meson-g12a-usb-ctrl
then:
properties:
base-commit: 7be4bc52fd9e0e55dc9a2e0232b89427d2c4b614
--
2.56.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: usb: amlogic,meson-g12a-usb-ctrl: add S4 support
2026-11-06 10:46 [PATCH] dt-bindings: usb: amlogic,meson-g12a-usb-ctrl: add S4 support christian.koever-draxl
@ 2026-11-06 10:51 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-06 10:51 UTC (permalink / raw)
To: christian.koever-draxl; +Cc: linux-usb
> From: Christian Stefan Kövér-Draxl <ckoever@outlook.de>
>
> The S4 USB glue is the G12A one, but it fronts an xHCI host controller
> instead of a DWC3 core, with two USB2 PHYs and no USB3 PHY. Add an S4
> compatible with the G12A one as fallback, and allow a generic xHCI
> child node.
>
> Signed-off-by: Christian Stefan Kövér-Draxl <ckoever@outlook.de>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261106104632.54161-1-christian.koever-draxl@student.uibk.ac.at?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-06 10:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06 10:46 [PATCH] dt-bindings: usb: amlogic,meson-g12a-usb-ctrl: add S4 support christian.koever-draxl
2026-11-06 10:51 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox