Skip to content

Commit 876c38e

Browse files
Fabrice Gasnierrobherring
authored andcommitted
dt-bindings: connector: usb: allow a single HS port
Allow a single HS port to be used e.g. without reg property and a unit address. OF graph allows a single port node, without 'reg' property. This removes a couple of Warnings or errors on STM32MP boards. When using single HS port currently, when doing building with W=1: arch/arm/boot/dts/stm32mp157c-dk2.dtb: stusb1600@28: connector: Unevaluated properties are not allowed ('port' was unexpected) Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Link: https://lore.kernel.org/r/20230620085633.533187-1-fabrice.gasnier@foss.st.com Signed-off-by: Rob Herring <robh@kernel.org>
1 parent e8b4858 commit 876c38e

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Documentation/devicetree/bindings/connector/usb-connector.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ properties:
168168
offer the power, Capability Mismatch is set. Required for power sink and
169169
power dual role.
170170

171+
port:
172+
$ref: /schemas/graph.yaml#/properties/port
173+
description: OF graph bindings modeling a data bus to the connector, e.g.
174+
there is a single High Speed (HS) port present in this connector. If there
175+
is more than one bus (several port, with 'reg' property), they can be grouped
176+
under 'ports'.
177+
171178
ports:
172179
$ref: /schemas/graph.yaml#/properties/ports
173180
description: OF graph bindings modeling any data bus to the connector
@@ -322,6 +329,19 @@ examples:
322329
};
323330
};
324331
332+
# USB-C connector attached to SoC with a single High-Speed controller
333+
- |
334+
connector {
335+
compatible = "usb-c-connector";
336+
label = "USB-C";
337+
338+
port {
339+
high_speed_ep: endpoint {
340+
remote-endpoint = <&usb_hs_ep>;
341+
};
342+
};
343+
};
344+
325345
# USB-C connector attached to SoC and USB3 typec port controller(hd3ss3220)
326346
# with SS 2:1 MUX. HS lines routed to SoC, SS lines routed to the MUX and
327347
# the output of MUX is connected to the SoC.

0 commit comments

Comments
 (0)