samples: usb-c: sink: Add support for WeAct STM32G431 core
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>
This commit is contained in:
parent
84d588e013
commit
b544855ba5
|
@ -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;
|
||||
};
|
Loading…
Reference in a new issue