1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: "http://devicetree.org/schemas/usb/hynetek,husb311.yaml#" 5$schema: "http://devicetree.org/meta-schemas/core.yaml#" 6 7title: Hynetek HUSB311 Type-C Port controller DT bindings 8 9maintainers: 10 - Guenter Roeck <linux@roeck-us.net> 11 - Heikki Krogerus <heikki.krogerus@linux.intel.com> 12 13properties: 14 compatible: 15 const: hynetek,husb311 16 17 reg: 18 maxItems: 1 19 20 interrupts: 21 maxItems: 1 22 23 ports: 24 type: object 25 properties: 26 port@0: 27 type: object 28 description: TCPC connected to USB controller to support dual-role switch. 29 30 required: 31 - port@0 32 33 connector: 34 type: object 35 $ref: ../connector/usb-connector.yaml# 36 description: 37 Properties for usb c connector that attached to the tcpci chip. 38 39required: 40 - compatible 41 - reg 42 - interrupts 43 - connector 44 45additionalProperties: true 46 47examples: 48 - | 49 #include "dt-bindings/usb/pd.h" 50 51 usbc0: husb311@4e { 52 compatible = "hynetek,husb311"; 53 reg = <0x4e>; 54 interrupt-parent = <&gpio1>; 55 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; 56 vbus-supply = <&vcc5v0_typec>; 57 status = "okay"; 58 59 ports { 60 #address-cells = <1>; 61 #size-cells = <0>; 62 63 port@0 { 64 reg = <0>; 65 usbc0_role_sw: endpoint@0 { 66 remote-endpoint = <&dwc3_0_role_switch>; 67 }; 68 }; 69 }; 70 71 usb_con: connector { 72 compatible = "usb-c-connector"; 73 label = "USB-C"; 74 data-role = "dual"; 75 power-role = "dual"; 76 try-power-role = "sink"; 77 op-sink-microwatt = <1000000>; 78 sink-pdos = 79 <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>; 80 source-pdos = 81 <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; 82 83 ports { 84 #address-cells = <1>; 85 #size-cells = <0>; 86 87 port@0 { 88 reg = <0>; 89 usbc0_orien_sw: endpoint { 90 remote-endpoint = <&usbdp_phy0_orientation_switch>; 91 }; 92 }; 93 }; 94 }; 95 }; 96... 97