Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/usb/richtek,rt1719.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006 
0007 title: Richtek RT1719 sink-only Type-C PD controller bindings
0008 
0009 maintainers:
0010   - ChiYuan Huang <cy_huang@richtek.com>
0011 
0012 description: |
0013   The RT1719 is a sink-only USB Type-C contoller that complies with the latest
0014   USB Type-C and PD standards. It does the USB Type-C detection including attach
0015   and orientation. It integrates the physical layer of the USB BMC power
0016   delivery protocol to allow up to 100W of power. The BMC PD block enables full
0017   support for alternative interfaces of the Type-C specification.
0018 
0019 properties:
0020   compatible:
0021     enum:
0022       - richtek,rt1719
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   interrupts:
0028     maxItems: 1
0029 
0030   wakeup-source:
0031     description: enable IRQ remote wakeup, see power/wakeup-source.txt
0032     type: boolean
0033 
0034   connector:
0035     type: object
0036     $ref: ../connector/usb-connector.yaml#
0037     description:
0038       Properties for usb c connector.
0039 
0040 additionalProperties: false
0041 
0042 required:
0043   - compatible
0044   - reg
0045   - connector
0046   - interrupts
0047 
0048 examples:
0049   - |
0050     #include <dt-bindings/interrupt-controller/irq.h>
0051     i2c0 {
0052       #address-cells = <1>;
0053       #size-cells = <0>;
0054 
0055       rt1719@43 {
0056         compatible = "richtek,rt1719";
0057         reg = <0x43>;
0058         interrupts-extended = <&gpio26 2 IRQ_TYPE_LEVEL_LOW>;
0059         wakeup-source;
0060 
0061         connector {
0062           compatible = "usb-c-connector";
0063           label = "USB-C";
0064 
0065           ports {
0066             #address-cells = <1>;
0067             #size-cells = <0>;
0068 
0069             port@0 {
0070               reg = <0>;
0071               endpoint {
0072                 remote-endpoint = <&usb_hs>;
0073               };
0074             };
0075             port@1 {
0076               reg = <1>;
0077               endpoint {
0078                 remote-endpoint = <&usb_ss>;
0079               };
0080             };
0081           };
0082         };
0083       };
0084     };
0085 ...