Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Fabrice Gasnier and committed by
Rob Herring
876c38eb e8b4858b

+20
+20
Documentation/devicetree/bindings/connector/usb-connector.yaml
··· 168 168 offer the power, Capability Mismatch is set. Required for power sink and 169 169 power dual role. 170 170 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 + 171 178 ports: 172 179 $ref: /schemas/graph.yaml#/properties/ports 173 180 description: OF graph bindings modeling any data bus to the connector ··· 326 319 sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM) 327 320 PDO_VAR(5000, 12000, 2000)>; 328 321 op-sink-microwatt = <10000000>; 322 + }; 323 + }; 324 + 325 + # USB-C connector attached to SoC with a single High-Speed controller 326 + - | 327 + connector { 328 + compatible = "usb-c-connector"; 329 + label = "USB-C"; 330 + 331 + port { 332 + high_speed_ep: endpoint { 333 + remote-endpoint = <&usb_hs_ep>; 334 + }; 329 335 }; 330 336 }; 331 337