1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/usb/vialab, 4 $id: http://devicetree.org/schemas/usb/vialab,vl817.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Via labs VL817 USB 3.1 hub controller 7 title: Via labs VL817 USB 3.1 hub controller 8 8 9 maintainers: 9 maintainers: 10 - Anand Moon <linux.amoon@gmail.com> 10 - Anand Moon <linux.amoon@gmail.com> 11 11 12 allOf: 12 allOf: 13 - $ref: usb-device.yaml# 13 - $ref: usb-device.yaml# 14 14 15 properties: 15 properties: 16 compatible: 16 compatible: 17 enum: 17 enum: 18 - usb2109,2817 18 - usb2109,2817 19 - usb2109,817 19 - usb2109,817 20 20 21 reg: true 21 reg: true 22 22 23 reset-gpios: 23 reset-gpios: 24 maxItems: 1 24 maxItems: 1 25 description: 25 description: 26 GPIO controlling the RESET# pin. 26 GPIO controlling the RESET# pin. 27 27 28 vdd-supply: 28 vdd-supply: 29 description: 29 description: 30 phandle to the regulator that provides p 30 phandle to the regulator that provides power to the hub. 31 31 32 peer-hub: 32 peer-hub: 33 $ref: /schemas/types.yaml#/definitions/pha 33 $ref: /schemas/types.yaml#/definitions/phandle 34 description: 34 description: 35 phandle to the peer hub on the controlle 35 phandle to the peer hub on the controller. 36 36 37 required: 37 required: 38 - compatible 38 - compatible 39 - reg 39 - reg 40 - vdd-supply 40 - vdd-supply 41 - peer-hub 41 - peer-hub 42 42 43 additionalProperties: false 43 additionalProperties: false 44 44 45 examples: 45 examples: 46 - | 46 - | 47 #include <dt-bindings/gpio/gpio.h> 47 #include <dt-bindings/gpio/gpio.h> 48 48 49 usb { 49 usb { 50 #address-cells = <1>; 50 #address-cells = <1>; 51 #size-cells = <0>; 51 #size-cells = <0>; 52 52 53 /* 2.0 hub on port 1 */ 53 /* 2.0 hub on port 1 */ 54 hub_2_0: hub@1 { 54 hub_2_0: hub@1 { 55 compatible = "usb2109,2817"; 55 compatible = "usb2109,2817"; 56 reg = <1>; 56 reg = <1>; 57 vdd-supply = <&vcc_5v>; 57 vdd-supply = <&vcc_5v>; 58 peer-hub = <&hub_3_0>; 58 peer-hub = <&hub_3_0>; 59 reset-gpios = <&gpio 20 GPIO_ACTIV 59 reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; 60 }; 60 }; 61 61 62 /* 3.1 hub on port 4 */ 62 /* 3.1 hub on port 4 */ 63 hub_3_0: hub@2 { 63 hub_3_0: hub@2 { 64 compatible = "usb2109,817"; 64 compatible = "usb2109,817"; 65 reg = <2>; 65 reg = <2>; 66 vdd-supply = <&vcc_5v>; 66 vdd-supply = <&vcc_5v>; 67 peer-hub = <&hub_2_0>; 67 peer-hub = <&hub_2_0>; 68 reset-gpios = <&gpio 20 GPIO_ACTIV 68 reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; 69 }; 69 }; 70 }; 70 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.