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: usb: switch: split out ports definition

The ports definition currently defined in the usb-switch.yaml
fits standards devices which are either recipient of altmode
muxing and orientation switching events or an element of the
USB Super Speed data lanes.

This doesn't necessarely fit combo PHYs like the Qualcomm
USB3/DP Combo which has a different ports representation.

Move the ports definition to a separate usb-switch-ports.yaml
and reference it next to the usb-switch.yaml, except for
the Qualcomm USB3/DP Combo PHY bindings.

Reported-by: Rob Herring <robh@kernel.org>
Closes: https://lore.kernel.org/all/175462129176.394940.16810637795278334342.robh@kernel.org/
Fixes: 3bad7fe22796 ("dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp: Reference usb-switch.yaml to allow mode-switch")
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Neil Armstrong and committed by
Greg Kroah-Hartman
bd8c3ce6 2758246d

+81 -54
+3 -1
Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml
··· 142 142 required: 143 143 - orientation-switch 144 144 then: 145 - $ref: /schemas/usb/usb-switch.yaml# 145 + allOf: 146 + - $ref: /schemas/usb/usb-switch.yaml# 147 + - $ref: /schemas/usb/usb-switch-ports.yaml# 146 148 147 149 unevaluatedProperties: false 148 150
+3 -1
Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml
··· 125 125 contains: 126 126 const: google,gs101-usb31drd-phy 127 127 then: 128 - $ref: /schemas/usb/usb-switch.yaml# 128 + allOf: 129 + - $ref: /schemas/usb/usb-switch.yaml# 130 + - $ref: /schemas/usb/usb-switch-ports.yaml# 129 131 130 132 properties: 131 133 clocks:
+1
Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml
··· 76 76 77 77 allOf: 78 78 - $ref: usb-switch.yaml# 79 + - $ref: usb-switch-ports.yaml# 79 80 80 81 additionalProperties: false 81 82
+1
Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml
··· 52 52 53 53 allOf: 54 54 - $ref: usb-switch.yaml# 55 + - $ref: usb-switch-ports.yaml# 55 56 - if: 56 57 required: 57 58 - mode-switch
+1
Documentation/devicetree/bindings/usb/nxp,ptn36502.yaml
··· 46 46 47 47 allOf: 48 48 - $ref: usb-switch.yaml# 49 + - $ref: usb-switch-ports.yaml# 49 50 50 51 additionalProperties: false 51 52
+1
Documentation/devicetree/bindings/usb/onnn,nb7vpq904m.yaml
··· 91 91 92 92 allOf: 93 93 - $ref: usb-switch.yaml# 94 + - $ref: usb-switch-ports.yaml# 94 95 95 96 additionalProperties: false 96 97
+1
Documentation/devicetree/bindings/usb/parade,ps8830.yaml
··· 81 81 82 82 allOf: 83 83 - $ref: usb-switch.yaml# 84 + - $ref: usb-switch-ports.yaml# 84 85 85 86 additionalProperties: false 86 87
+1
Documentation/devicetree/bindings/usb/qcom,wcd939x-usbss.yaml
··· 60 60 61 61 allOf: 62 62 - $ref: usb-switch.yaml# 63 + - $ref: usb-switch-ports.yaml# 63 64 64 65 additionalProperties: false 65 66
+1
Documentation/devicetree/bindings/usb/ti,tusb1046.yaml
··· 11 11 12 12 allOf: 13 13 - $ref: usb-switch.yaml# 14 + - $ref: usb-switch-ports.yaml# 14 15 15 16 properties: 16 17 compatible:
+68
Documentation/devicetree/bindings/usb/usb-switch-ports.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/usb/usb-switch-ports.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: USB Orientation and Mode Switches Ports Graph Properties 8 + 9 + maintainers: 10 + - Greg Kroah-Hartman <gregkh@linuxfoundation.org> 11 + 12 + description: 13 + Ports Graph properties for devices handling USB mode and orientation switching. 14 + 15 + properties: 16 + port: 17 + $ref: /schemas/graph.yaml#/$defs/port-base 18 + description: 19 + A port node to link the device to a TypeC controller for the purpose of 20 + handling altmode muxing and orientation switching. 21 + 22 + properties: 23 + endpoint: 24 + $ref: /schemas/graph.yaml#/$defs/endpoint-base 25 + unevaluatedProperties: false 26 + properties: 27 + data-lanes: 28 + $ref: /schemas/types.yaml#/definitions/uint32-array 29 + minItems: 1 30 + maxItems: 8 31 + uniqueItems: true 32 + items: 33 + maximum: 8 34 + 35 + ports: 36 + $ref: /schemas/graph.yaml#/properties/ports 37 + properties: 38 + port@0: 39 + $ref: /schemas/graph.yaml#/properties/port 40 + description: 41 + Super Speed (SS) Output endpoint to the Type-C connector 42 + 43 + port@1: 44 + $ref: /schemas/graph.yaml#/$defs/port-base 45 + description: 46 + Super Speed (SS) Input endpoint from the Super-Speed PHY 47 + unevaluatedProperties: false 48 + 49 + properties: 50 + endpoint: 51 + $ref: /schemas/graph.yaml#/$defs/endpoint-base 52 + unevaluatedProperties: false 53 + properties: 54 + data-lanes: 55 + $ref: /schemas/types.yaml#/definitions/uint32-array 56 + minItems: 1 57 + maxItems: 8 58 + uniqueItems: true 59 + items: 60 + maximum: 8 61 + 62 + oneOf: 63 + - required: 64 + - port 65 + - required: 66 + - ports 67 + 68 + additionalProperties: true
-52
Documentation/devicetree/bindings/usb/usb-switch.yaml
··· 25 25 description: Possible handler of SuperSpeed signals retiming 26 26 type: boolean 27 27 28 - port: 29 - $ref: /schemas/graph.yaml#/$defs/port-base 30 - description: 31 - A port node to link the device to a TypeC controller for the purpose of 32 - handling altmode muxing and orientation switching. 33 - 34 - properties: 35 - endpoint: 36 - $ref: /schemas/graph.yaml#/$defs/endpoint-base 37 - unevaluatedProperties: false 38 - properties: 39 - data-lanes: 40 - $ref: /schemas/types.yaml#/definitions/uint32-array 41 - minItems: 1 42 - maxItems: 8 43 - uniqueItems: true 44 - items: 45 - maximum: 8 46 - 47 - ports: 48 - $ref: /schemas/graph.yaml#/properties/ports 49 - properties: 50 - port@0: 51 - $ref: /schemas/graph.yaml#/properties/port 52 - description: 53 - Super Speed (SS) Output endpoint to the Type-C connector 54 - 55 - port@1: 56 - $ref: /schemas/graph.yaml#/$defs/port-base 57 - description: 58 - Super Speed (SS) Input endpoint from the Super-Speed PHY 59 - unevaluatedProperties: false 60 - 61 - properties: 62 - endpoint: 63 - $ref: /schemas/graph.yaml#/$defs/endpoint-base 64 - unevaluatedProperties: false 65 - properties: 66 - data-lanes: 67 - $ref: /schemas/types.yaml#/definitions/uint32-array 68 - minItems: 1 69 - maxItems: 8 70 - uniqueItems: true 71 - items: 72 - maximum: 8 73 - 74 - oneOf: 75 - - required: 76 - - port 77 - - required: 78 - - ports 79 - 80 28 additionalProperties: true