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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: usb: convert fcs,fusb302.txt to yaml

Convert fcs,fusb302.txt to yaml.

Changed:
Add vbus-supply property

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/0336a3c4-4a43-c983-11d7-e2ae16187fc8@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Johan Jonker and committed by
Rob Herring
f9b8556d ec340077

+67 -34
-34
Documentation/devicetree/bindings/usb/fcs,fusb302.txt
··· 1 - Fairchild FUSB302 Type-C Port controllers 2 - 3 - Required properties : 4 - - compatible : "fcs,fusb302" 5 - - reg : I2C slave address 6 - - interrupts : Interrupt specifier 7 - 8 - Required sub-node: 9 - - connector : The "usb-c-connector" attached to the FUSB302 IC. The bindings 10 - of the connector node are specified in: 11 - 12 - Documentation/devicetree/bindings/connector/usb-connector.yaml 13 - 14 - 15 - Example: 16 - 17 - fusb302: typec-portc@54 { 18 - compatible = "fcs,fusb302"; 19 - reg = <0x54>; 20 - interrupt-parent = <&nmi_intc>; 21 - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 22 - 23 - usb_con: connector { 24 - compatible = "usb-c-connector"; 25 - label = "USB-C"; 26 - power-role = "dual"; 27 - try-power-role = "sink"; 28 - source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; 29 - sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM) 30 - PDO_VAR(3000, 12000, 3000) 31 - PDO_PPS_APDO(3000, 11000, 3000)>; 32 - op-sink-microwatt = <10000000>; 33 - }; 34 - };
+67
Documentation/devicetree/bindings/usb/fcs,fusb302.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/usb/fcs,fusb302.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Fairchild FUSB302 Type-C Port controller 8 + 9 + maintainers: 10 + - Rob Herring <robh@kernel.org> 11 + 12 + properties: 13 + compatible: 14 + const: fcs,fusb302 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + vbus-supply: 23 + description: VBUS power supply 24 + 25 + connector: 26 + type: object 27 + $ref: /schemas/connector/usb-connector.yaml# 28 + unevaluatedProperties: false 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - interrupts 34 + - vbus-supply 35 + - connector 36 + 37 + additionalProperties: false 38 + 39 + examples: 40 + - | 41 + #include <dt-bindings/interrupt-controller/irq.h> 42 + #include <dt-bindings/usb/pd.h> 43 + 44 + i2c { 45 + #address-cells = <1>; 46 + #size-cells = <0>; 47 + 48 + typec-portc@54 { 49 + compatible = "fcs,fusb302"; 50 + reg = <0x54>; 51 + interrupt-parent = <&nmi_intc>; 52 + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 53 + vbus-supply = <&vbus_typec>; 54 + 55 + connector { 56 + compatible = "usb-c-connector"; 57 + label = "USB-C"; 58 + power-role = "dual"; 59 + try-power-role = "sink"; 60 + source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; 61 + sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM) 62 + PDO_VAR(3000, 12000, 3000) 63 + PDO_PPS_APDO(3000, 11000, 3000)>; 64 + op-sink-microwatt = <10000000>; 65 + }; 66 + }; 67 + };