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 12, 2023
1 parent 88db2c4 commit 7c9da3d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 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,25 @@
/*
* 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";
};

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

0 comments on commit 7c9da3d

Please sign in to comment.