Skip to content

Commit

Permalink
dts: Introduce stm32h7 ethernet compatible
Browse files Browse the repository at this point in the history
Add stm32h7 ethernet compatible "st,stm32h7-ethernet",
used also for stm32h5.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
  • Loading branch information
Marwa IBEN EL HADJ committed Sep 26, 2024
1 parent a3f71f1 commit 79e2b84
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 18 deletions.
2 changes: 1 addition & 1 deletion dts/arm/st/h5/stm32h5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
};

mac: ethernet@40028000 {
compatible = "st,stm32-ethernet";
compatible = "st,stm32h7-ethernet", "st,stm32-ethernet";
reg = <0x40028000 0x8000>;
interrupts = <106 0>;
clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/st/h7/stm32h7.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@
};

mac: ethernet@40028000 {
compatible = "st,stm32-ethernet";
compatible = "st,stm32h7-ethernet", "st,stm32-ethernet";
reg = <0x40028000 0x8000>;
interrupts = <61 0>;
clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
Expand Down
20 changes: 20 additions & 0 deletions dts/bindings/ethernet/st,stm32-ethernet-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) 2024, STMicroelectronics
# SPDX-License-Identifier: Apache-2.0

# Common fields for STM32 Ethernet peripherals.

include: [ethernet-controller.yaml, pinctrl-device.yaml]

properties:
reg:
required: true
interrupts:
required: true
clocks:
required: true
clock-names:
required: true
pinctrl-0:
required: true
pinctrl-names:
required: true
18 changes: 2 additions & 16 deletions dts/bindings/ethernet/st,stm32-ethernet.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
# Copyright (c) 2020, Linaro Limited
# Copyright (c) 2024, STMicroelectronics
# SPDX-License-Identifier: Apache-2.0

description: ST STM32 Ethernet

compatible: "st,stm32-ethernet"

include: [ethernet-controller.yaml, pinctrl-device.yaml]

properties:
reg:
required: true
interrupts:
required: true
clocks:
required: true
clock-names:
required: true
pinctrl-0:
required: true
pinctrl-names:
required: true
include: st,stm32-ethernet-common.yaml
8 changes: 8 additions & 0 deletions dts/bindings/ethernet/st,stm32h7-ethernet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2024, STMicroelectronics
# SPDX-License-Identifier: Apache-2.0

description: ST STM32 Ethernet

compatible: "st,stm32h7-ethernet"

include: st,stm32-ethernet-common.yaml

0 comments on commit 79e2b84

Please sign in to comment.