1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/usb/corechips,sl6341.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Corechips SL6341 USB 2.0/3.0 Hub Controller 8 9maintainers: 10 - Alexey Charkov <alchark@flipper.net> 11 12allOf: 13 - $ref: usb-hub.yaml# 14 15properties: 16 compatible: 17 enum: 18 - usb3431,6241 19 - usb3431,6341 20 21 reg: true 22 23 peer-hub: true 24 25 reset-gpios: 26 description: GPIO controlling the RSTN pin. 27 28 vdd1v1-supply: 29 description: 30 The regulator that provides 1.1V core power to the hub. 31 32 vdd3v3-supply: 33 description: 34 The regulator that provides 3.3V IO power to the hub. 35 36 ports: 37 $ref: /schemas/graph.yaml#/properties/ports 38 39 patternProperties: 40 '^port@': 41 $ref: /schemas/graph.yaml#/properties/port 42 43 properties: 44 reg: 45 minimum: 1 46 maximum: 4 47 48required: 49 - compatible 50 - reg 51 - vdd1v1-supply 52 53unevaluatedProperties: false 54 55examples: 56 - | 57 #include <dt-bindings/gpio/gpio.h> 58 usb { 59 #address-cells = <1>; 60 #size-cells = <0>; 61 62 /* 2.0 hub */ 63 hub_2_0: hub@1 { 64 compatible = "usb3431,6241"; 65 reg = <1>; 66 peer-hub = <&hub_3_0>; 67 reset-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; 68 vdd1v1-supply = <&vdd1v1_hub>; 69 }; 70 71 /* 3.0 hub */ 72 hub_3_0: hub@2 { 73 compatible = "usb3431,6341"; 74 reg = <2>; 75 peer-hub = <&hub_2_0>; 76 reset-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; 77 vdd1v1-supply = <&vdd1v1_hub>; 78 }; 79 }; 80