diff --git a/dts/arm/st/h5/stm32h5.dtsi b/dts/arm/st/h5/stm32h5.dtsi index e659aee6b4152b5..91471484dfa76ac 100644 --- a/dts/arm/st/h5/stm32h5.dtsi +++ b/dts/arm/st/h5/stm32h5.dtsi @@ -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"; diff --git a/dts/arm/st/h7/stm32h7.dtsi b/dts/arm/st/h7/stm32h7.dtsi index c9b8d5e4f968d10..1e1ccffd4083cc5 100644 --- a/dts/arm/st/h7/stm32h7.dtsi +++ b/dts/arm/st/h7/stm32h7.dtsi @@ -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"; diff --git a/dts/bindings/ethernet/st,stm32-ethernet-common.yaml b/dts/bindings/ethernet/st,stm32-ethernet-common.yaml new file mode 100644 index 000000000000000..4b3707d06107308 --- /dev/null +++ b/dts/bindings/ethernet/st,stm32-ethernet-common.yaml @@ -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 diff --git a/dts/bindings/ethernet/st,stm32-ethernet.yaml b/dts/bindings/ethernet/st,stm32-ethernet.yaml index b0e5665f3374f7b..7a1a22a5390fb7b 100644 --- a/dts/bindings/ethernet/st,stm32-ethernet.yaml +++ b/dts/bindings/ethernet/st,stm32-ethernet.yaml @@ -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 diff --git a/dts/bindings/ethernet/st,stm32h7-ethernet.yaml b/dts/bindings/ethernet/st,stm32h7-ethernet.yaml new file mode 100644 index 000000000000000..0ac7f1d099ce1ec --- /dev/null +++ b/dts/bindings/ethernet/st,stm32h7-ethernet.yaml @@ -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