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

dt-bindings: usb: rt1719: Add binding for Richtek RT1719

Add binding for Richtek RT1719.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://lore.kernel.org/r/1644421362-32104-2-git-send-email-u0084500@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

ChiYuan Huang and committed by
Greg Kroah-Hartman
3a0f60b5 43d48bbb

+85
+85
Documentation/devicetree/bindings/usb/richtek,rt1719.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: "http://devicetree.org/schemas/usb/richtek,rt1719.yaml#" 5 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 6 + 7 + title: Richtek RT1719 sink-only Type-C PD controller bindings 8 + 9 + maintainers: 10 + - ChiYuan Huang <cy_huang@richtek.com> 11 + 12 + description: | 13 + The RT1719 is a sink-only USB Type-C contoller that complies with the latest 14 + USB Type-C and PD standards. It does the USB Type-C detection including attach 15 + and orientation. It integrates the physical layer of the USB BMC power 16 + delivery protocol to allow up to 100W of power. The BMC PD block enables full 17 + support for alternative interfaces of the Type-C specification. 18 + 19 + properties: 20 + compatible: 21 + enum: 22 + - richtek,rt1719 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + interrupts: 28 + maxItems: 1 29 + 30 + wakeup-source: 31 + description: enable IRQ remote wakeup, see power/wakeup-source.txt 32 + type: boolean 33 + 34 + connector: 35 + type: object 36 + $ref: ../connector/usb-connector.yaml# 37 + description: 38 + Properties for usb c connector. 39 + 40 + additionalProperties: false 41 + 42 + required: 43 + - compatible 44 + - reg 45 + - connector 46 + - interrupts 47 + 48 + examples: 49 + - | 50 + #include <dt-bindings/interrupt-controller/irq.h> 51 + i2c0 { 52 + #address-cells = <1>; 53 + #size-cells = <0>; 54 + 55 + rt1719@43 { 56 + compatible = "richtek,rt1719"; 57 + reg = <0x43>; 58 + interrupts-extended = <&gpio26 2 IRQ_TYPE_LEVEL_LOW>; 59 + wakeup-source; 60 + 61 + connector { 62 + compatible = "usb-c-connector"; 63 + label = "USB-C"; 64 + 65 + ports { 66 + #address-cells = <1>; 67 + #size-cells = <0>; 68 + 69 + port@0 { 70 + reg = <0>; 71 + endpoint { 72 + remote-endpoint = <&usb_hs>; 73 + }; 74 + }; 75 + port@1 { 76 + reg = <1>; 77 + endpoint { 78 + remote-endpoint = <&usb_ss>; 79 + }; 80 + }; 81 + }; 82 + }; 83 + }; 84 + }; 85 + ...