[PATCH] ARM: dts: stm32: Add ethernet MAC nvmem cells to DH STM32MP13xx DHCOR DHSBC board

Alexandre TORGUE alexandre.torgue at foss.st.com
Fri Aug 30 05:35:56 PDT 2024


Hi Marek

On 6/29/24 19:10, Marek Vasut wrote:
> Describe ethernet MAC address nvmem cells in DH STM32MP13xx DHCOR DHSBC
> board DT. The MAC address can be fused in BSEC OTP fuses and used to set
> up MAC address for both ethernet MACs on this board.
> 
> Signed-off-by: Marek Vasut <marex at denx.de>
> ---
> Cc: Alexandre Torgue <alexandre.torgue at foss.st.com>
> Cc: Christophe Roullier <christophe.roullier at foss.st.com>
> Cc: Conor Dooley <conor+dt at kernel.org>
> Cc: Krzysztof Kozlowski <krzk+dt at kernel.org>
> Cc: Maxime Coquelin <mcoquelin.stm32 at gmail.com>
> Cc: Rob Herring <robh at kernel.org>
> Cc: devicetree at vger.kernel.org
> Cc: kernel at dh-electronics.com
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: linux-stm32 at st-md-mailman.stormreply.com
> ---
>   arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts b/arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts
> index bacb70b4256bc..3cc9ad88d61bc 100644
> --- a/arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts
> +++ b/arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts
> @@ -75,6 +75,8 @@ channel at 12 {
>   };
>   
>   &ethernet1 {
> +	nvmem-cell-names = "mac-address";
> +	nvmem-cells = <&ethernet_mac1_address>;
>   	phy-handle = <&ethphy1>;
>   	phy-mode = "rgmii-id";
>   	pinctrl-0 = <&eth1_rgmii_pins_a>;
> @@ -102,6 +104,8 @@ ethphy1: ethernet-phy at 1 {
>   };
>   
>   &ethernet2 {
> +	nvmem-cell-names = "mac-address";
> +	nvmem-cells = <&ethernet_mac2_address>;
>   	phy-handle = <&ethphy2>;
>   	phy-mode = "rgmii-id";
>   	pinctrl-0 = <&eth2_rgmii_pins_a>;

Yaml issue reported y Rob still not reproduced on v6.11-rc1. I apply 
this patch then on stm32-next. In case of yml issue reported by 
linux-next or other bot, I'll revert it from my branch before sending my PR.

regards
Alex



More information about the linux-arm-kernel mailing list