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/fcs,fsa4480.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006 
0007 title: ON Semiconductor Analog Audio Switch
0008 
0009 maintainers:
0010   - Bjorn Andersson <bjorn.andersson@linaro.org>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - fcs,fsa4480
0016 
0017   reg:
0018     maxItems: 1
0019 
0020   interrupts:
0021     maxItems: 1
0022 
0023   vcc-supply:
0024     description: power supply (2.7V-5.5V)
0025 
0026   mode-switch:
0027     description: Flag the port as possible handle of altmode switching
0028     type: boolean
0029 
0030   orientation-switch:
0031     description: Flag the port as possible handler of orientation switching
0032     type: boolean
0033 
0034   port:
0035     $ref: /schemas/graph.yaml#/properties/port
0036     description:
0037       A port node to link the FSA4480 to a TypeC controller for the purpose of
0038       handling altmode muxing and orientation switching.
0039 
0040 required:
0041   - compatible
0042   - reg
0043   - port
0044 
0045 additionalProperties: false
0046 
0047 examples:
0048   - |
0049     #include <dt-bindings/interrupt-controller/irq.h>
0050     i2c13 {
0051         #address-cells = <1>;
0052         #size-cells = <0>;
0053 
0054         fsa4480@42 {
0055           compatible = "fcs,fsa4480";
0056           reg = <0x42>;
0057 
0058           interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
0059 
0060           vcc-supply = <&vreg_bob>;
0061 
0062           mode-switch;
0063           orientation-switch;
0064 
0065           port {
0066             fsa4480_ept: endpoint {
0067               remote-endpoint = <&typec_controller>;
0068             };
0069           };
0070         };
0071     };
0072 ...