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

dt-bindings: usb: realtek,rts5411: Adapt usb-hub.yaml

Inherit usb-hub.yaml and remove duplicated schemas.

Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org>
Link: https://lore.kernel.org/r/20250422082957.2058229-4-treapking@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Pin-yen Lin and committed by
Greg Kroah-Hartman
76cbb3ea fc259b02

+13 -39
+13 -39
Documentation/devicetree/bindings/usb/realtek,rts5411.yaml
··· 10 10 - Matthias Kaehlcke <mka@chromium.org> 11 11 12 12 allOf: 13 - - $ref: usb-device.yaml# 13 + - $ref: usb-hub.yaml# 14 14 15 15 properties: 16 16 compatible: ··· 19 19 - usbbda,5411 20 20 - usbbda,411 21 21 22 - reg: true 23 - 24 - '#address-cells': 25 - const: 1 26 - 27 - '#size-cells': 28 - const: 0 29 - 30 22 vdd-supply: 31 23 description: 32 24 phandle to the regulator that provides power to the hub. 33 25 34 - peer-hub: 35 - $ref: /schemas/types.yaml#/definitions/phandle 36 - description: 37 - phandle to the peer hub on the controller. 26 + peer-hub: true 38 27 39 28 ports: 40 29 $ref: /schemas/graph.yaml#/properties/ports 41 30 42 - properties: 43 - port@1: 31 + patternProperties: 32 + '^port@': 44 33 $ref: /schemas/graph.yaml#/properties/port 45 - description: 46 - 1st downstream facing USB port 47 34 48 - port@2: 49 - $ref: /schemas/graph.yaml#/properties/port 50 - description: 51 - 2nd downstream facing USB port 35 + properties: 36 + reg: 37 + minimum: 1 38 + maximum: 4 52 39 53 - port@3: 54 - $ref: /schemas/graph.yaml#/properties/port 55 - description: 56 - 3rd downstream facing USB port 57 - 58 - port@4: 59 - $ref: /schemas/graph.yaml#/properties/port 60 - description: 61 - 4th downstream facing USB port 62 - 63 - patternProperties: 64 - '^.*@[1-4]$': 65 - description: The hard wired USB devices 66 - type: object 67 - $ref: /schemas/usb/usb-device.yaml 68 - additionalProperties: true 40 + additionalProperties: 41 + properties: 42 + reg: 43 + minimum: 1 44 + maximum: 4 69 45 70 46 required: 71 47 - peer-hub 72 48 - compatible 73 49 - reg 74 - 75 - additionalProperties: false 76 50 77 51 examples: 78 52 - |