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/analogix,anx7411.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Analogix ANX7411 Type-C controller bindings
0008 
0009 maintainers:
0010   - Xin Ji <xji@analogixsemi.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - analogix,anx7411
0016 
0017   reg:
0018     maxItems: 1
0019 
0020   interrupts:
0021     maxItems: 1
0022 
0023   connector:
0024     type: object
0025     $ref: ../connector/usb-connector.yaml
0026     description:
0027       Properties for usb c connector.
0028 
0029     properties:
0030       compatible:
0031         const: usb-c-connector
0032 
0033       power-role: true
0034 
0035       data-role: true
0036 
0037       try-power-role: true
0038 
0039     required:
0040       - compatible
0041 
0042 required:
0043   - compatible
0044   - reg
0045   - connector
0046 
0047 additionalProperties: false
0048 
0049 examples:
0050   - |
0051     #include <dt-bindings/interrupt-controller/irq.h>
0052     i2c {
0053         #address-cells = <1>;
0054         #size-cells = <0>;
0055 
0056         typec@2c {
0057             compatible = "analogix,anx7411";
0058             reg = <0x2c>;
0059             interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
0060             interrupt-parent = <&gpio0>;
0061 
0062             typec_con: connector {
0063                 compatible = "usb-c-connector";
0064                 power-role = "dual";
0065                 data-role = "dual";
0066                 try-power-role = "source";
0067 
0068                 ports {
0069                     #address-cells = <1>;
0070                     #size-cells = <0>;
0071                     port@0 {
0072                         reg = <0>;
0073                         typec_con_ep: endpoint {
0074                             remote-endpoint = <&usbotg_hs_ep>;
0075                         };
0076                     };
0077                 };
0078             };
0079         };
0080     };
0081 ...