xref: /freebsd/sys/contrib/device-tree/Bindings/usb/parade,ps8830.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
18ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
28ccc0d23SEmmanuel Vadot%YAML 1.2
38ccc0d23SEmmanuel Vadot---
48ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/usb/parade,ps8830.yaml#
58ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68ccc0d23SEmmanuel Vadot
78ccc0d23SEmmanuel Vadottitle: Parade PS883x USB and DisplayPort Retimer
88ccc0d23SEmmanuel Vadot
98ccc0d23SEmmanuel Vadotmaintainers:
108ccc0d23SEmmanuel Vadot  - Abel Vesa <abel.vesa@linaro.org>
118ccc0d23SEmmanuel Vadot
128ccc0d23SEmmanuel Vadotproperties:
138ccc0d23SEmmanuel Vadot  compatible:
14*ae5de77eSEmmanuel Vadot    oneOf:
15*ae5de77eSEmmanuel Vadot      - items:
16*ae5de77eSEmmanuel Vadot          - const: parade,ps8833
17*ae5de77eSEmmanuel Vadot          - const: parade,ps8830
18*ae5de77eSEmmanuel Vadot      - const: parade,ps8830
198ccc0d23SEmmanuel Vadot
208ccc0d23SEmmanuel Vadot  reg:
218ccc0d23SEmmanuel Vadot    maxItems: 1
228ccc0d23SEmmanuel Vadot
238ccc0d23SEmmanuel Vadot  clocks:
248ccc0d23SEmmanuel Vadot    items:
258ccc0d23SEmmanuel Vadot      - description: XO Clock
268ccc0d23SEmmanuel Vadot
278ccc0d23SEmmanuel Vadot  reset-gpios:
288ccc0d23SEmmanuel Vadot    maxItems: 1
298ccc0d23SEmmanuel Vadot
308ccc0d23SEmmanuel Vadot  vdd-supply:
318ccc0d23SEmmanuel Vadot    description: power supply (1.07V)
328ccc0d23SEmmanuel Vadot
338ccc0d23SEmmanuel Vadot  vdd33-supply:
348ccc0d23SEmmanuel Vadot    description: power supply (3.3V)
358ccc0d23SEmmanuel Vadot
368ccc0d23SEmmanuel Vadot  vdd33-cap-supply:
378ccc0d23SEmmanuel Vadot    description: power supply (3.3V)
388ccc0d23SEmmanuel Vadot
398ccc0d23SEmmanuel Vadot  vddar-supply:
408ccc0d23SEmmanuel Vadot    description: power supply (1.07V)
418ccc0d23SEmmanuel Vadot
428ccc0d23SEmmanuel Vadot  vddat-supply:
438ccc0d23SEmmanuel Vadot    description: power supply (1.07V)
448ccc0d23SEmmanuel Vadot
458ccc0d23SEmmanuel Vadot  vddio-supply:
468ccc0d23SEmmanuel Vadot    description: power supply (1.2V or 1.8V)
478ccc0d23SEmmanuel Vadot
488ccc0d23SEmmanuel Vadot  orientation-switch: true
498ccc0d23SEmmanuel Vadot  retimer-switch: true
508ccc0d23SEmmanuel Vadot
518ccc0d23SEmmanuel Vadot  ports:
528ccc0d23SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
538ccc0d23SEmmanuel Vadot    properties:
548ccc0d23SEmmanuel Vadot      port@0:
558ccc0d23SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
568ccc0d23SEmmanuel Vadot        description: Super Speed (SS) Output endpoint to the Type-C connector
578ccc0d23SEmmanuel Vadot
588ccc0d23SEmmanuel Vadot      port@1:
598ccc0d23SEmmanuel Vadot        $ref: /schemas/graph.yaml#/$defs/port-base
608ccc0d23SEmmanuel Vadot        description: Super Speed (SS) Input endpoint from the Super-Speed PHY
618ccc0d23SEmmanuel Vadot        unevaluatedProperties: false
628ccc0d23SEmmanuel Vadot
638ccc0d23SEmmanuel Vadot      port@2:
648ccc0d23SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
658ccc0d23SEmmanuel Vadot        description:
668ccc0d23SEmmanuel Vadot          Sideband Use (SBU) AUX lines endpoint to the Type-C connector for the purpose of
678ccc0d23SEmmanuel Vadot          handling altmode muxing and orientation switching.
688ccc0d23SEmmanuel Vadot
698ccc0d23SEmmanuel Vadotrequired:
708ccc0d23SEmmanuel Vadot  - compatible
718ccc0d23SEmmanuel Vadot  - reg
728ccc0d23SEmmanuel Vadot  - clocks
738ccc0d23SEmmanuel Vadot  - reset-gpios
748ccc0d23SEmmanuel Vadot  - vdd-supply
758ccc0d23SEmmanuel Vadot  - vdd33-supply
768ccc0d23SEmmanuel Vadot  - vdd33-cap-supply
778ccc0d23SEmmanuel Vadot  - vddat-supply
788ccc0d23SEmmanuel Vadot  - vddio-supply
798ccc0d23SEmmanuel Vadot  - orientation-switch
808ccc0d23SEmmanuel Vadot  - retimer-switch
818ccc0d23SEmmanuel Vadot
828ccc0d23SEmmanuel VadotallOf:
838ccc0d23SEmmanuel Vadot  - $ref: usb-switch.yaml#
848ccc0d23SEmmanuel Vadot
858ccc0d23SEmmanuel VadotadditionalProperties: false
868ccc0d23SEmmanuel Vadot
878ccc0d23SEmmanuel Vadotexamples:
888ccc0d23SEmmanuel Vadot  - |
898ccc0d23SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
908ccc0d23SEmmanuel Vadot
918ccc0d23SEmmanuel Vadot    i2c {
928ccc0d23SEmmanuel Vadot        #address-cells = <1>;
938ccc0d23SEmmanuel Vadot        #size-cells = <0>;
948ccc0d23SEmmanuel Vadot
958ccc0d23SEmmanuel Vadot        typec-mux@8 {
968ccc0d23SEmmanuel Vadot            compatible = "parade,ps8830";
978ccc0d23SEmmanuel Vadot            reg = <0x8>;
988ccc0d23SEmmanuel Vadot
998ccc0d23SEmmanuel Vadot            clocks = <&clk_rtmr_xo>;
1008ccc0d23SEmmanuel Vadot
1018ccc0d23SEmmanuel Vadot            vdd-supply = <&vreg_rtmr_1p15>;
1028ccc0d23SEmmanuel Vadot            vdd33-supply = <&vreg_rtmr_3p3>;
1038ccc0d23SEmmanuel Vadot            vdd33-cap-supply = <&vreg_rtmr_3p3>;
1048ccc0d23SEmmanuel Vadot            vddar-supply = <&vreg_rtmr_1p15>;
1058ccc0d23SEmmanuel Vadot            vddat-supply = <&vreg_rtmr_1p15>;
1068ccc0d23SEmmanuel Vadot            vddio-supply = <&vreg_rtmr_1p8>;
1078ccc0d23SEmmanuel Vadot
1088ccc0d23SEmmanuel Vadot            reset-gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
1098ccc0d23SEmmanuel Vadot
1108ccc0d23SEmmanuel Vadot            retimer-switch;
1118ccc0d23SEmmanuel Vadot            orientation-switch;
1128ccc0d23SEmmanuel Vadot
1138ccc0d23SEmmanuel Vadot            ports {
1148ccc0d23SEmmanuel Vadot                #address-cells = <1>;
1158ccc0d23SEmmanuel Vadot                #size-cells = <0>;
1168ccc0d23SEmmanuel Vadot
1178ccc0d23SEmmanuel Vadot                port@0 {
1188ccc0d23SEmmanuel Vadot                    reg = <0>;
1198ccc0d23SEmmanuel Vadot
1208ccc0d23SEmmanuel Vadot                    endpoint {
1218ccc0d23SEmmanuel Vadot                        remote-endpoint = <&typec_con_ss>;
1228ccc0d23SEmmanuel Vadot                    };
1238ccc0d23SEmmanuel Vadot                };
1248ccc0d23SEmmanuel Vadot
1258ccc0d23SEmmanuel Vadot                port@1 {
1268ccc0d23SEmmanuel Vadot                    reg = <1>;
1278ccc0d23SEmmanuel Vadot
1288ccc0d23SEmmanuel Vadot                    endpoint {
1298ccc0d23SEmmanuel Vadot                        remote-endpoint = <&usb_phy_ss>;
1308ccc0d23SEmmanuel Vadot                    };
1318ccc0d23SEmmanuel Vadot                };
1328ccc0d23SEmmanuel Vadot
1338ccc0d23SEmmanuel Vadot                port@2 {
1348ccc0d23SEmmanuel Vadot                    reg = <2>;
1358ccc0d23SEmmanuel Vadot
1368ccc0d23SEmmanuel Vadot                    endpoint {
1378ccc0d23SEmmanuel Vadot                        remote-endpoint = <&typec_dp_aux>;
1388ccc0d23SEmmanuel Vadot                    };
1398ccc0d23SEmmanuel Vadot                };
1408ccc0d23SEmmanuel Vadot            };
1418ccc0d23SEmmanuel Vadot        };
1428ccc0d23SEmmanuel Vadot    };
1438ccc0d23SEmmanuel Vadot...
144