Skip to content

Commit

Permalink
samples: usb-c: sink: Add support for WeAct STM32G431 core
Browse files Browse the repository at this point in the history
Add support for the WeAct Studio STM32G431 Core board. Note that this
board does not support USB-C PD in its default configuration. See the
board documentation for the necessary hardware reconfiguration.

Signed-off-by: Andreas Sandberg <andreas@sandberg.uk>
  • Loading branch information
andysan committed Oct 27, 2023
1 parent 0522b14 commit 88e1239
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions samples/subsys/usb_c/sink/boards/weact_stm32g431_core.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2023 Andreas Sandberg
*
* SPDX-License-Identifier: Apache-2.0
*
*/

#include <dt-bindings/usb-c/pd.h>

&adc2 {
status = "okay";
};

&vbus1 {
status = "okay";
};

&usbc1 {
status = "okay";
};

&clk_hsi {
/* The HSI is used by ucpd1 */
status = "okay";
};

&ucpd1 {
status = "okay";
dead-battery;
};

0 comments on commit 88e1239

Please sign in to comment.