Skip to content

Commit d075114

Browse files
marwaiehm-stdleach02
authored andcommitted
dts: Introduce stm32h7 ethernet compatible
Add stm32h7 ethernet compatible "st,stm32h7-ethernet", used also for stm32h5. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
1 parent ca76858 commit d075114

File tree

5 files changed

+38
-17
lines changed

5 files changed

+38
-17
lines changed

dts/arm/st/h5/stm32h5.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
};
513513

514514
mac: ethernet@40028000 {
515-
compatible = "st,stm32-ethernet";
515+
compatible = "st,stm32h7-ethernet", "st,stm32-ethernet";
516516
reg = <0x40028000 0x8000>;
517517
interrupts = <106 0>;
518518
clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";

dts/arm/st/h7/stm32h7.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@
10221022
};
10231023

10241024
mac: ethernet@40028000 {
1025-
compatible = "st,stm32-ethernet";
1025+
compatible = "st,stm32h7-ethernet", "st,stm32-ethernet";
10261026
reg = <0x40028000 0x8000>;
10271027
interrupts = <61 0>;
10281028
clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) 2024, STMicroelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Common fields for STM32 Ethernet peripherals.
5+
6+
include: [ethernet-controller.yaml, pinctrl-device.yaml]
7+
8+
properties:
9+
reg:
10+
required: true
11+
interrupts:
12+
required: true
13+
clocks:
14+
required: true
15+
clock-names:
16+
required: true
17+
pinctrl-0:
18+
required: true
19+
pinctrl-names:
20+
required: true
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
# Copyright (c) 2020, Linaro Limited
2+
# Copyright (c) 2024, STMicroelectronics
23
# SPDX-License-Identifier: Apache-2.0
34

45
description: ST STM32 Ethernet
56

67
compatible: "st,stm32-ethernet"
78

8-
include: [ethernet-controller.yaml, pinctrl-device.yaml]
9-
10-
properties:
11-
reg:
12-
required: true
13-
interrupts:
14-
required: true
15-
clocks:
16-
required: true
17-
clock-names:
18-
required: true
19-
pinctrl-0:
20-
required: true
21-
pinctrl-names:
22-
required: true
9+
include: st,stm32-ethernet-common.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2024, STMicroelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: |
5+
ST STM32H7 Ethernet
6+
7+
This binding file describes the device tree properties required to configure
8+
and use the Ethernet controller on STM32H7 and STM32H5 series microcontrollers.
9+
The `st,stm32h7-ethernet` compatible string can be used for both series,
10+
ensuring flexibility and ease of configuration.
11+
12+
compatible: "st,stm32h7-ethernet"
13+
14+
include: st,stm32-ethernet-common.yaml

0 commit comments

Comments
 (0)