1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/usb/st,typec-stm32g0.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STMicroelectronics STM32G0 USB Type-C PD controller
10 The STM32G0 MCU can be programmed to control Type-C connector(s) through I2C
11 typically using the UCSI protocol over I2C, with a dedicated alert
15 - Fabrice Gasnier <fabrice.gasnier@foss.st.com>
19 const: st,stm32g0-typec
29 $ref: /schemas/connector/usb-connector.yaml#
30 unevaluatedProperties: false
34 Should contain the name of the default firmware image
35 file located on the firmware search path
48 additionalProperties: false
52 #include <dt-bindings/interrupt-controller/irq.h>
58 compatible = "st,stm32g0-typec";
60 /* Alert pin on GPIO PE12 */
61 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
62 interrupt-parent = <&gpioe>;
64 /* Example with one type-C connector */
66 compatible = "usb-c-connector";
74 con_usb_c_ep: endpoint {
75 remote-endpoint = <&usb_ep>;
87 remote-endpoint = <&con_usb_c_ep>;