Skip to content

Commit 1c89075

Browse files
author
Alexandre Torgue
committed
arm64: dts: st: add stm32mp257f-ev1 board support
Add STM32MP257F Evaluation board support. It embeds a STM32MP257FAI SoC, with 4GB of DDR4, TSN switch (2+1 ports), 2*USB typeA, 1*USB2 typeC, SNOR OctoSPI, mini PCIe, STPMIC2 for power distribution ... Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
1 parent 6defdc2 commit 1c89075

4 files changed

Lines changed: 84 additions & 0 deletions

File tree

arch/arm64/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ subdir-y += renesas
2727
subdir-y += rockchip
2828
subdir-y += socionext
2929
subdir-y += sprd
30+
subdir-y += st
3031
subdir-y += synaptics
3132
subdir-y += tesla
3233
subdir-y += ti

arch/arm64/boot/dts/st/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
dtb-$(CONFIG_ARCH_STM32) += stm32mp257f-ev1.dtb

arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,34 @@
55
*/
66
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
77

8+
&pinctrl {
9+
usart2_pins_a: usart2-0 {
10+
pins1 {
11+
pinmux = <STM32_PINMUX('A', 4, AF6)>; /* USART2_TX */
12+
bias-disable;
13+
drive-push-pull;
14+
slew-rate = <0>;
15+
};
16+
pins2 {
17+
pinmux = <STM32_PINMUX('A', 8, AF8)>; /* USART2_RX */
18+
bias-disable;
19+
};
20+
};
21+
22+
usart2_idle_pins_a: usart2-idle-0 {
23+
pins1 {
24+
pinmux = <STM32_PINMUX('A', 4, ANALOG)>; /* USART2_TX */
25+
};
26+
pins2 {
27+
pinmux = <STM32_PINMUX('A', 8, AF8)>; /* USART2_RX */
28+
bias-disable;
29+
};
30+
};
31+
32+
usart2_sleep_pins_a: usart2-sleep-0 {
33+
pins {
34+
pinmux = <STM32_PINMUX('A', 4, ANALOG)>, /* USART2_TX */
35+
<STM32_PINMUX('A', 8, ANALOG)>; /* USART2_RX */
36+
};
37+
};
38+
};
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause)
2+
/*
3+
* Copyright (C) STMicroelectronics 2023 - All Rights Reserved
4+
* Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "stm32mp257.dtsi"
10+
#include "stm32mp25xf.dtsi"
11+
#include "stm32mp25-pinctrl.dtsi"
12+
#include "stm32mp25xxai-pinctrl.dtsi"
13+
14+
/ {
15+
model = "STMicroelectronics STM32MP257F-EV1 Evaluation Board";
16+
compatible = "st,stm32mp257f-ev1", "st,stm32mp257";
17+
18+
aliases {
19+
serial0 = &usart2;
20+
};
21+
22+
chosen {
23+
stdout-path = "serial0:115200n8";
24+
};
25+
26+
memory@80000000 {
27+
device_type = "memory";
28+
reg = <0x0 0x80000000 0x1 0x0>;
29+
};
30+
31+
reserved-memory {
32+
#address-cells = <2>;
33+
#size-cells = <2>;
34+
ranges;
35+
36+
fw@80000000 {
37+
compatible = "shared-dma-pool";
38+
reg = <0x0 0x80000000 0x0 0x4000000>;
39+
no-map;
40+
};
41+
};
42+
};
43+
44+
&usart2 {
45+
pinctrl-names = "default", "idle", "sleep";
46+
pinctrl-0 = <&usart2_pins_a>;
47+
pinctrl-1 = <&usart2_idle_pins_a>;
48+
pinctrl-2 = <&usart2_sleep_pins_a>;
49+
status = "okay";
50+
};

0 commit comments

Comments
 (0)