68 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/usb/usb-switch.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: USB Orientation and Mode Switches Common Properties8 9maintainers:10 - Greg Kroah-Hartman <gregkh@linuxfoundation.org>11 12description:13 Common properties for devices handling USB mode and orientation switching.14 15properties:16 mode-switch:17 description: Possible handler of altmode switching18 type: boolean19 20 orientation-switch:21 description: Possible handler of orientation switching22 type: boolean23 24 retimer-switch:25 description: Possible handler of SuperSpeed signals retiming26 type: boolean27 28 port:29 $ref: /schemas/graph.yaml#/properties/port30 description:31 A port node to link the device to a TypeC controller for the purpose of32 handling altmode muxing and orientation switching.33 34 ports:35 $ref: /schemas/graph.yaml#/properties/ports36 properties:37 port@0:38 $ref: /schemas/graph.yaml#/properties/port39 description:40 Super Speed (SS) Output endpoint to the Type-C connector41 42 port@1:43 $ref: /schemas/graph.yaml#/$defs/port-base44 description:45 Super Speed (SS) Input endpoint from the Super-Speed PHY46 unevaluatedProperties: false47 48 properties:49 endpoint:50 $ref: /schemas/graph.yaml#/$defs/endpoint-base51 unevaluatedProperties: false52 properties:53 data-lanes:54 $ref: /schemas/types.yaml#/definitions/uint32-array55 minItems: 156 maxItems: 857 uniqueItems: true58 items:59 maximum: 860 61oneOf:62 - required:63 - port64 - required:65 - ports66 67additionalProperties: true68