Skip to content

Commit

Permalink
samples: i2s: output: Adds nucleo_f401re support
Browse files Browse the repository at this point in the history
Adds support for the STMicroelectronics Nucleo F401RE development board.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
  • Loading branch information
rriveramcrus committed Aug 22, 2024
1 parent 0a79085 commit 8c9c638
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions samples/drivers/i2s/output/boards/nucleo_f401re.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Copyright 2024 Cirrus Logic, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
i2s-tx = &i2s_tx;
};
};


&dma1 {
status = "okay";
};

&clk_hsi {
status = "okay";
};

&pll {
div-m = <16>;
mul-n = <336>;
div-p = <4>;
div-q = <7>;
clocks = <&clk_hsi>;
status = "okay";
};

&plli2s {
mul-n = <271>;
div-r = <6>;
status = "okay";
};

&rcc {
clocks = <&pll>;
clock-frequency = <DT_FREQ_M(84)>;
ahb-prescaler = <1>;
apb1-prescaler = <2>;
apb2-prescaler = <1>;
};

i2s_tx: &i2s3 {
pinctrl-0 = <&i2s3_ck_pb3 &i2s3_sd_pb5 &i2s3_ws_pa4 &i2s3_mck_pc7>;
pinctrl-names = "default";
mck-enabled;
status = "okay";
};

0 comments on commit 8c9c638

Please sign in to comment.