Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp928575lqt; Fri, 7 Jun 2024 03:02:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpZWfQWP77x5Tgb6GW1bMQk3BNSbhCY9iHj0elFoKINVe9BzixE13vG5bNuN6vDMXKqrUk2os5RIMPnbkT9ZkALC8JX6dbdXFWgMexfQ== X-Google-Smtp-Source: AGHT+IFrCqsHlgHDTa62TzR+tXw8P63RwuyWgl5ui3Z/thbS6PzTVcWlseKSQcHGEE+AeVAurM3N X-Received: by 2002:a17:906:564b:b0:a6e:4e0:8a56 with SMTP id a640c23a62f3a-a6e04e09202mr76641366b.32.1717754546218; Fri, 07 Jun 2024 03:02:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717754546; cv=pass; d=google.com; s=arc-20160816; b=QOC93nAlQ0sxydw8PSRB+7MVbeSyjLxzGIf7iPAtPDBYNIjzKa1pVWPbvCh/4c15U1 JXKF9oh6kJYQTjtuB9VbVEalMYimO3WPMQ6m2AuoymCKEYuJo8EJmvmdYQ1S+xzyw+Qt JWUIxF9Ko1zaynop7p8Y7+Eci34p0LasDNDj7uaqh8jqqEMsBkKV4HFxKaBsvJnvMXAM 4FCYpo12OFP4jydwRcRlDl2sfivlUadRvKrKkJ399xB+PpqUmsXiew0CdlY/ktIonrOw p34PFM7W8AmyjJKBINPvqyzLOh9CGjQTAlSyPoDpKLwLL7/yvg4ZqmqwJxybNTFP3ILD 0EdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=I5eX1MiABAjtTHnD8DpDo4CymvKlEhXxzp8S24yq7DA=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=ubg6GHr5epPIcZ/xdjVR/zDGuGYrfC7aTQ5VT6RUEYEf4DcGO1dtHJtl/PLgScfq4s HfYkCrF6PBz6kcJwjWh665W3wHKTft3cXeBdWJjQcMBBq86SnLq9UozcVhUM5SSHHq0r pM2BW+6eZpmJJ4nMyZLZs+eMDQm229yC2ZwZV1kF00fk8qNLwunr5rpYU/tqEcn4Yqkk BAJWaTdzQeuBqsD9tQ+JLpdx1qfKLXiB4PSHelt2PjPRf+Z3xJq6SX9p8PMAmLI3sZhE 3wmep819slNwKi3h4k8zLeQyagj5JfYlrVZYmI5A2YIOu7Ir6kpIFTqtk8Un6+4jdQzk 7dng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=WJ7M78dp; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-205771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c8070819bsi167232966b.588.2024.06.07.03.02.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:02:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=WJ7M78dp; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-205771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BCC421F2459A for ; Fri, 7 Jun 2024 10:02:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7D2915DBA0; Fri, 7 Jun 2024 10:01:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="WJ7M78dp" Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26D3115749A; Fri, 7 Jun 2024 10:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717754459; cv=none; b=k0c3z+v5//iTh8JdUMevEsE+LGGxwunqtxfn3v4JYxoCUTBuoWzVqaiMFGFKrQMlBh5ta6NSCA2Pj4a8PWmtg06LFsQ5iixfRHnA9d6u0baoSclY3OVmOb9QVxcdOo7tbotW1sKUgCyVZ958utJtIZoW7LwUwTMNuv5ilJb1QLg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717754459; c=relaxed/simple; bh=LxdLgGqPLf3s+kJUNXVv8BMrS7yHp/8IVNCuj2Iw0i4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ePDcY86tBiWU6Cq9f3rPL5hYBo9eJj4UesuJ6Qbb8e/Iks7JXM3Id72iUdBvGHCKozEydvPGLqq2YUthdp4cWV4znzZG5c4uPF371QDu2yC1fRm5JddQUpni+Pv/j4b/OB/cv7oYeHZagYxBeXibaOBa4wMr1oVNK3Mm0XTLPlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=WJ7M78dp; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45791dBJ002305; Fri, 7 Jun 2024 12:00:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= I5eX1MiABAjtTHnD8DpDo4CymvKlEhXxzp8S24yq7DA=; b=WJ7M78dp/FboYY7x k+ktG3Zxr1+h2Rb89+cuENHIKhWeCbpsz/3fmHL2LdyyZ8dcocNOygIYhc7iB7CF 730ysypsoRx1TnDv1VCSGqS4/bWVJqeR8NI/atQjU2jayD2GIT6cdvZ+KLwetRnq 9No1oAyDbKKvQ8e5PBt19VVh0iLSQsyas2TGTUDPvEXQOBBSFuSGjxP80wXuASfk znGaKzmI8Tb0i6guNCDcMXipdsau1mcnJcv6EbdJlSAY+RLAQOH8DvIjSSYjFBVh rQ10wN9sERMXn30Bexrvgkm8V9iuu3T/ATZMhjxPmCdp2Jgdh6aDM+Fkr5ZNSKj8 pzTe1Q== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3ygekj86cu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 12:00:35 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id F0E5140045; Fri, 7 Jun 2024 12:00:30 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 24D76214D14; Fri, 7 Jun 2024 11:59:18 +0200 (CEST) Received: from localhost (10.252.19.205) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 7 Jun 2024 11:59:17 +0200 From: Christophe Roullier To: "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 , Christophe Roullier , Marek Vasut CC: , , , , Subject: [PATCH v5 09/12] ARM: dts: stm32: add ethernet1 and ethernet2 support on stm32mp13 Date: Fri, 7 Jun 2024 11:57:51 +0200 Message-ID: <20240607095754.265105-10-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240607095754.265105-1-christophe.roullier@foss.st.com> References: <20240607095754.265105-1-christophe.roullier@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-07_04,2024-06-06_02,2024-05-17_01 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..e1a764d269d27 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>; + status = "disabled"; + + stmmac_axi_config_1: stmmac-axi-config { + snps,blen = <0 0 0 0 16 8 4>; + snps,rd_osr_lmt = <0x7>; + snps,wr_osr_lmt = <0x7>; + }; + }; + 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..73e470019ce42 100644 --- a/arch/arm/boot/dts/st/stm32mp133.dtsi +++ b/arch/arm/boot/dts/st/stm32mp133.dtsi @@ -68,4 +68,35 @@ channel@18 { }; }; }; + + 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>; + status = "disabled"; + + stmmac_axi_config_2: stmmac-axi-config { + snps,blen = <0 0 0 0 16 8 4>; + snps,rd_osr_lmt = <0x7>; + snps,wr_osr_lmt = <0x7>; + }; + }; }; -- 2.25.1