Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp280664lqb; Tue, 4 Jun 2024 11:04:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYwSLuE6/g4xBctP6VZo3zdgvEApKRtwQDnesZYRXndyiImpnhD/o0vsI9wzFtzGjFZQOxPGMAjK2Iq1vQ3o43WZCf9ZTHe6iSXKRQrw== X-Google-Smtp-Source: AGHT+IH8T77WNUQJZ/unLk4EBkFokeZOuSIB5Z5BTKkLAl0Zolj5VOgv4UkN1l+OAZiuYKEMjdnz X-Received: by 2002:a17:902:ec8e:b0:1f6:7b6f:281f with SMTP id d9443c01a7336-1f6a5a8496cmr2688815ad.65.1717524254538; Tue, 04 Jun 2024 11:04:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717524254; cv=pass; d=google.com; s=arc-20160816; b=nSbyAViWhNByujzQ/ebVpkQCbcMJsFRVMUOhUACdkasUB5i9YAOvfPAWiz/Mdh2EW8 opgLRXXFi4PXTtudgqeMxxU+MM36s+lBD1FWjo4nY1YCgAgUzv2XCupQ7qV2Xs8Qlw+z V+dQBToOqwg5sh/fnGVHuqamnNeD7LAGKnTGvG902VDCYodXlIKaH4mYCb5dZc1f77a9 vjezFRu5HA3PGSSS3v1ucsT5YBSyk0GPHv6Fbuyls8iSInHLlTe5lFqbMBcQvvPyd5kP ZB0cse8pO7OVj4Mo+OwriFwuostXiX3iB0ev21OFfmJWMkyrRuQKz2HjMfMiVUXgK3mh TzMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=4f1pYqXRizqyxIM/L7FfRjUNFGAWVe3AOXcygF3r6BE=; fh=MZgvy/AmeHE5/588XAg1mUij55f12DiWyocFDxS19BU=; b=HocwpzW/m+J6ELpQTRdNN3vUXa1EFM7zzfXpASouwP9OciAO9b9pWsqjXB/dhdqKZy K674Y6Vm5xpBiyf8BUjUqN/jO7fCpvBXHGriUNElcmGWjdj7vR6pbTcbtDMn0LC9k0z9 2JpqySrv0H5XSeOIhv/IVnyjuwv506mxDBt33evimnRXDYs+1Wahr67vXfz5lqrTZ1JH 3jVymWyyHzzaO987Pig9pJRdkGsy1Ke8kv7IoU5TNjxZb95+xe8YRLpGXBp0ctNSii/J fFH2ZfKdge4CaDMqCywn7AKAPzdFapXq3w9KtwdSQl5r5Ljy4fqfKYnFJ2B3OQm9n8a4 /AUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=C4ugqekL; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-201154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323dde2asi87716815ad.253.2024.06.04.11.04.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 11:04:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=C4ugqekL; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-201154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 32DC3B27330 for ; Tue, 4 Jun 2024 17:27:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 626EF149E05; Tue, 4 Jun 2024 17:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="C4ugqekL" Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD32E1494D0; Tue, 4 Jun 2024 17:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717522031; cv=none; b=sRpQgDuGDXffDeQP3JbsIE2+Vr2ci7uon4a3wTr8G0BRhysB9hkDKlcmmXFWo2NktSld9eRMCjBeVaatlepuzjA24VQ3YMVxjktOYnQaY9C2LZLcXhST8RFNGDU7cjXghFbO3UkHqsbekIECfNe9ESdrNmUHdbHwTRAAY3A/umg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717522031; c=relaxed/simple; bh=Fw+R07Uhx4jBtZPSjYVknFQtrMkWMAZeU8GC561sY68=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Fbpx5YBrU1xBjj+ICqVuTmmlNXiz0haznoVBma3f+d0IVqNUE42JvVmKTatDt0ndWT1X977Xq9/i81XuZrR4c4l+Z+0Sq+joYVZD+FunadK+uhwT/7JWS1C/feSzOu91sSNb+c87jDxRp0h2vyU4Fh1pVY4hygICDPXXderuVfQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=C4ugqekL; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 92E1D8850A; Tue, 4 Jun 2024 19:27:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1717522028; bh=4f1pYqXRizqyxIM/L7FfRjUNFGAWVe3AOXcygF3r6BE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=C4ugqekL9DcBNfDMt7BMGmAnOJSHo8y5Sf9xjnQU5JxMTAc/w4Bg7RHuEwHQn4j7/ tNNw3i8rS/9BpqfHrY8i1pt+HsfimWrhDbil1RYTwBuSAEVVj4MgWN1TlVXwX6sv0j AyW6bBuVAidz+I4xRsH7UjBuaXls9j3KoEaFq6tquqRzun9MLYOWDtfRH/7CV8QeBX GUi3vTWXAiTcpksuFnTMo0yC+Eo408n3eeTcB1BRazMJO9/TT55LLbMwIpiLuIxYcu o8C/G+xu+beETeQJHeLB9K6ld43u9V4cMENN7W7xIfw+JJ5fk0irtUsElPECL/YZ99 7MzmQLpYiMHfA== Message-ID: Date: Tue, 4 Jun 2024 18:49:54 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 08/11] ARM: dts: stm32: add ethernet1 and ethernet2 support on stm32mp13 To: Christophe Roullier , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Richard Cochran , Jose Abreu , Liam Girdwood , Mark Brown Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240604143502.154463-1-christophe.roullier@foss.st.com> <20240604143502.154463-9-christophe.roullier@foss.st.com> Content-Language: en-US From: Marek Vasut In-Reply-To: <20240604143502.154463-9-christophe.roullier@foss.st.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 6/4/24 4:34 PM, Christophe Roullier wrote: > Both instances ethernet based on GMAC SNPS IP on stm32mp13. > GMAC IP version is SNPS 4.20. > > Signed-off-by: Christophe Roullier > --- > arch/arm/boot/dts/st/stm32mp131.dtsi | 38 ++++++++++++++++++++++++++++ > arch/arm/boot/dts/st/stm32mp133.dtsi | 31 +++++++++++++++++++++++ > 2 files changed, 69 insertions(+) > > diff --git a/arch/arm/boot/dts/st/stm32mp131.dtsi b/arch/arm/boot/dts/st/stm32mp131.dtsi > index 6704ceef284d3..9d05853ececf7 100644 > --- a/arch/arm/boot/dts/st/stm32mp131.dtsi > +++ b/arch/arm/boot/dts/st/stm32mp131.dtsi > @@ -979,6 +979,12 @@ ts_cal1: calib@5c { > ts_cal2: calib@5e { > reg = <0x5e 0x2>; > }; > + ethernet_mac1_address: mac1@e4 { > + reg = <0xe4 0x6>; > + }; > + ethernet_mac2_address: mac2@ea { > + reg = <0xea 0x6>; > + }; > }; > > etzpc: bus@5c007000 { > @@ -1505,6 +1511,38 @@ sdmmc2: mmc@58007000 { > status = "disabled"; > }; > > + ethernet1: ethernet@5800a000 { > + compatible = "st,stm32mp13-dwmac", "snps,dwmac-4.20a"; > + reg = <0x5800a000 0x2000>; > + reg-names = "stmmaceth"; > + interrupts-extended = <&intc GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>, > + <&exti 68 1>; > + interrupt-names = "macirq", "eth_wake_irq"; > + clock-names = "stmmaceth", > + "mac-clk-tx", > + "mac-clk-rx", > + "ethstp", > + "eth-ck"; > + clocks = <&rcc ETH1MAC>, > + <&rcc ETH1TX>, > + <&rcc ETH1RX>, > + <&rcc ETH1STP>, > + <&rcc ETH1CK_K>; > + st,syscon = <&syscfg 0x4 0xff0000>; > + snps,mixed-burst; > + snps,pbl = <2>; > + snps,axi-config = <&stmmac_axi_config_1>; > + snps,tso; > + access-controllers = <&etzpc 48>; Please keep the list of properties sorted. > + status = "disabled"; > + > + stmmac_axi_config_1: stmmac-axi-config { > + snps,wr_osr_lmt = <0x7>; > + snps,rd_osr_lmt = <0x7>; > + snps,blen = <0 0 0 0 16 8 4>; Sort here too. > + }; > + }; > + > usbphyc: usbphyc@5a006000 { > #address-cells = <1>; > #size-cells = <0>; > diff --git a/arch/arm/boot/dts/st/stm32mp133.dtsi b/arch/arm/boot/dts/st/stm32mp133.dtsi > index 3e394c8e58b92..09c7da1a2eda8 100644 > --- a/arch/arm/boot/dts/st/stm32mp133.dtsi > +++ b/arch/arm/boot/dts/st/stm32mp133.dtsi > @@ -67,5 +67,36 @@ channel@18 { > label = "vrefint"; > }; > }; > + > + ethernet2: ethernet@5800e000 { > + compatible = "st,stm32mp13-dwmac", "snps,dwmac-4.20a"; > + reg = <0x5800e000 0x2000>; > + reg-names = "stmmaceth"; > + interrupts-extended = <&intc GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "macirq"; > + clock-names = "stmmaceth", > + "mac-clk-tx", > + "mac-clk-rx", > + "ethstp", > + "eth-ck"; > + clocks = <&rcc ETH2MAC>, > + <&rcc ETH2TX>, > + <&rcc ETH2RX>, > + <&rcc ETH2STP>, > + <&rcc ETH2CK_K>; > + st,syscon = <&syscfg 0x4 0xff000000>; > + snps,mixed-burst; > + snps,pbl = <2>; > + snps,axi-config = <&stmmac_axi_config_2>; > + snps,tso; > + access-controllers = <&etzpc 49>; Sort here too. > + status = "disabled"; > + > + stmmac_axi_config_2: stmmac-axi-config { > + snps,wr_osr_lmt = <0x7>; > + snps,rd_osr_lmt = <0x7>; > + snps,blen = <0 0 0 0 16 8 4>; Sort here too. [...]