[PATCH 3/4] dt-bindings: usb: add STUSB4500 USB PD sink controller binding
Giandomenico Rossi
rossi at amelchem.com
Sat Nov 14 08:19:52 PST 2026
Add the Device Tree binding for the STMicroelectronics STUSB4500
USB Power Delivery sink controller.
The binding allows up to three Fixed Supply sink PDOs to be
specified using the standard PDO_FIXED() encoding.
Add the STUSB4500 node and its USB-C connector configuration to
the STM32MP151A SIPV2 Device Tree.
Reviewed-by: Nicola Fontana <ntd at entidi.it>
Signed-off-by: Giandomenico Rossi <rossi at amelchem.com>
---
.../bindings/misc/st,stusb4500.yaml | 102 ++++++++++++++++++
1 file changed, 102 insertions(+)
create mode 100644 Documentation/devicetree/bindings/misc/st,stusb4500.yaml
diff --git a/Documentation/devicetree/bindings/misc/st,stusb4500.yaml b/Documentation/devicetree/bindings/misc/st,stusb4500.yaml
new file mode 100644
index 0000000000..29cb6f3b1f
--- /dev/null
+++ b/Documentation/devicetree/bindings/misc/st,stusb4500.yaml
@@ -0,0 +1,102 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/st,stusb4500.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: STMicroelectronics STUSB4500 USB Power Delivery sink controller
+
+maintainers:
+ - Giandomenico Rossi <rossi at amelchem.com>
+
+description: |
+ The STUSB4500 is an autonomous USB Type-C and Power Delivery sink
+ controller. It negotiates a power contract with the source in hardware,
+ using up to 3 Fixed Supply sink PDOs. This binding describes the sink
+ PDOs to advertise, provided through a child "connector" node using the
+ common USB connector binding.
+
+ https://www.st.com/resource/en/datasheet/stusb4500.pdf
+
+properties:
+ compatible:
+ const: st,stusb4500
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+ description:
+ ALERT# pin, active low, open-drain.
+
+ st,renegotiate-on-probe:
+ type: boolean
+ description:
+ Trigger a USB PD renegotiation when the driver probes, so the sink
+ PDOs described here take effect immediately instead of only after
+ the next attach. The renegotiation is done with a PD Soft Reset
+ message, which preserves VBUS (the source briefly returns to vSafe5V
+ during the transition). Omit this property to leave renegotiation to
+ board code or later software.
+
+ connector:
+ type: object
+ $ref: /schemas/connector/usb-connector.yaml#
+ unevaluatedProperties: false
+ description:
+ The Type-C connector attached to this controller.
+ properties:
+ compatible:
+ const: usb-c-connector
+
+ power-role:
+ const: sink
+
+ sink-pdos:
+ minItems: 1
+ maxItems: 3
+ description:
+ One to three Fixed Supply sink PDOs, encoded with PDO_FIXED()
+ from dt-bindings/usb/pd.h, written into the STUSB4500
+ DPM_SNK_PDOx registers.
+
+ Per the datasheet, the first PDO's voltage is fixed to 5 V
+ (vSafe5V) in hardware; only the second and third PDOs have a
+ programmable voltage (5 V to 20 V, in 50 mV steps). The first
+ PDO must therefore be encoded as 5 V.
+
+ required:
+ - compatible
+ - power-role
+ - sink-pdos
+
+required:
+ - compatible
+ - reg
+ - connector
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/usb/pd.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ typec at 28 {
+ compatible = "st,stusb4500";
+ reg = <0x28>;
+ st,renegotiate-on-probe;
+
+ connector {
+ compatible = "usb-c-connector";
+ label = "USB-C";
+ power-role = "sink";
+ sink-pdos = <PDO_FIXED(5000, 1500, 0)
+ PDO_FIXED(20000, 2500, 0)>;
+ };
+ };
+ };
--
2.34.1
More information about the barebox
mailing list