From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 8D40A35AC3A for ; Thu, 26 Mar 2026 11:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774524000; cv=none; b=lMAKQTHJEXI4e2vWHEXRcWVVKPb/o9+qu6sozEDq9a55DhZWV4D9XRR4trnPuKxzIdKWwbOWSsloRia1HBxt0zy5aQCsB15pcRO597YEKuAimErTioeQSLb7AbDgiJeEnVyGfL+Fwggk7cWf/iiy7xGlo+oGGa9e4IoE+GeFdMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774524000; c=relaxed/simple; bh=Qy2fXtmRxd7VA9k7EKSdssF4PxyY6yYYzS3EMmeGPHc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mfjodCzptB6q4b/Xu0H49G+wVTaB44cyLdVHRlx4nG6vezDxT6rKOrD2JHPdn96gLcf2sz64JQ0G3gRj8fzdWvDsC+XiSYm4tuoskgahxIRbyP2iyrrd0XpeD8FW1CsegueV4k0qPDrGCxO9p+cRVkEBgdCLdmmtfKH7eZJrZP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SGrfwt9h; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SGrfwt9h" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-486ff3a0fc1so8072245e9.2 for ; Thu, 26 Mar 2026 04:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774523997; x=1775128797; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=I8E08ul8zmISMenfMLCtg7m1Lcl+41Nsx8Zd8llNhro=; b=SGrfwt9h+UzYoqoz+ddIgVoL15mVkzrUIWmXymW6r61B0gOy0IvECqjCEJU4xCKTmU DEw1K3YrpRsSULD1Fa/lBn/7xAGqnRx4Ad3sFfklDtraZkv8NN6X8ucWdocjZSfBS8Hb 3Nv8YTRMYf+cQ+OYKvnY9nExD5U3IqeymzXnSy8iqWFbkD4KA5N4p3xFxXMvGZSJ0VML LSlWeVhzCYQ9a+22MdQgcuwpkJ0oOgOnSEOLSOkfY6S0cQTcNXNpmZQb6OeCxONvyTes HI4frd4LjLvi2q1EuCjMpGIgkhEbhIDDrVtsP5Su9hK8N9a/yRMyetI/vFiJdIUGma+r Bl6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774523997; x=1775128797; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=I8E08ul8zmISMenfMLCtg7m1Lcl+41Nsx8Zd8llNhro=; b=Y/VpZ/e4c1EG/jt4lRJXdJmoHOKcv77lJ2lVt7IaP67LIcLnP299Rd+5794cLEtiyG FEo4B1KZEYVG7Qf78A428WM61JZJwdWCo04Lmx+9dIhPm5AbO50aKLZiiXKOHAj4txqm cypDdYF/833KVEWKKerfqIQxXlJQw3tfPRBvDJ3FCvwb/VC6linJ36sk2kwUtpl4CbhK c34idDBimI12835FLxLpR70Ccq71IytofMNhmw5z80aG8MUciXAGbRUe9k8upYYxJm0s 6b18RqgPAGi4XgrKl8JXpZn4ZKT3BmdpENtNk0LxI+fYhNsr46sWAS+DxdkBggeEyWvX g5SQ== X-Forwarded-Encrypted: i=1; AJvYcCXet549hQRbpC3cJk2IjVhMwtHNHBdv9c2BhJubfFU7O+eYbt5S6+eUm+FDJCWXLGnTL1crqks=@vger.kernel.org X-Gm-Message-State: AOJu0YwIi5FVHPmFbYTKMZfQmANJ/Lp7Kfdrz9AsE+YfB+DefuHOckH6 W4toVfHArSn222mybZtbPOPYVv+nFceFC2Tt2C8iJXN1eIZOp8AVG0Hh X-Gm-Gg: ATEYQzxsTXmMMn7p2TajR0gBtOOTR+z2TUfv7QWfn79xgdHQOrIHjKTNuQgCsDRVECe /dfuEEg4lH77oUnfieRse29bOJAx13XZxxWL9lKiI5T+gJqHGId1K/NO3zfh0+wcjSYn43miocc qJ5XhNP6KNiyRXNxKgYj07IFjR3kafhQfL5RUBHMJqHi49GVhcAEn/VedDAWO8kvCSizeNTufNZ OuqVBe698kUy6PzXC316N2erxDTDv1Z5L2V0ZaKrFUx2ic6rNbCoJeWjZvX/bHp2kOVHAfx6b9s uQNjELoBAVImJomKm5yGhx1uTevmJH7ymlZVojtctH8Gx5FjpXg5ZU1529GTUrkX+wf+cY1cVsf R4wdlPjOu54thODuNlX1ks1kWm2gOI5zD8c3WccjA4qn3pNocvnaYCgqIEyVYyDMbcvIRn/JlEj 3pyP8oZdg49uH8G45KanGndTmCW8Fcw/XYSrAmT34U7IRkvWhI X-Received: by 2002:a05:600c:4692:b0:485:4eaf:eb54 with SMTP id 5b1f17b1804b1-48716039b83mr104672885e9.20.1774523996795; Thu, 26 Mar 2026 04:19:56 -0700 (PDT) Received: from localhost.localdomain ([2a00:23c4:a758:8a01:377f:9a3e:6c94:560d]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4872092e105sm13428045e9.29.2026.03.26.04.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2026 04:19:56 -0700 (PDT) From: Biju X-Google-Original-From: Biju To: Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran Cc: Biju Das , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Prabhakar Mahadev Lad , Biju Das Subject: [PATCH v3 1/2] arm64: dts: renesas: r9a08g046: Add GBETH nodes Date: Thu, 26 Mar 2026 11:19:49 +0000 Message-ID: <20260326111953.31024-2-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260326111953.31024-1-biju.das.jz@bp.renesas.com> References: <20260326111953.31024-1-biju.das.jz@bp.renesas.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Biju Das Renesas RZ/G3L SoC is equipped with 2x Synopsys DesignWare Ethernet (10/100/1000 BASE) with TSN, IP block version 5.30. Add GBETH nodes to R9A08G046 RZ/G3L SoC DTSI. Signed-off-by: Biju Das --- v2->v3: * Rebased to boot series. v1->v2: * Added rmii_{tx,rx) clocks. --- arch/arm64/boot/dts/renesas/r9a08g046.dtsi | 241 +++++++++++++++++++++ 1 file changed, 241 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a08g046.dtsi b/arch/arm64/boot/dts/renesas/r9a08g046.dtsi index e030e785ea2a..0987c531ecf4 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g046.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g046.dtsi @@ -171,6 +171,240 @@ sdhi1: mmc@11c10000 { /* placeholder */ }; + eth0: ethernet@11c30000 { + compatible = "renesas,r9a08g046-gbeth", "snps,dwmac-5.30a"; + reg = <0 0x11c30000 0 0x10000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "macirq", "eth_wake_irq", "eth_lpi", + "rx-queue-0", "rx-queue-1", "rx-queue-2", + "rx-queue-3", "tx-queue-0", "tx-queue-1", + "tx-queue-2", "tx-queue-3", "ptp-pps-0", + "ptp-pps-1", "ptp-pps-2", "ptp-pps-3"; + clocks = <&cpg CPG_MOD R9A08G046_ETH0_CLK_AXI>, + <&cpg CPG_MOD R9A08G046_ETH0_CLK_CHI>, + <&cpg CPG_MOD R9A08G046_ETH0_CLK_PTP_REF_I>, + <&cpg CPG_MOD R9A08G046_ETH0_CLK_TX_I>, + <&cpg CPG_MOD R9A08G046_ETH0_CLK_RX_I>, + <&cpg CPG_MOD R9A08G046_ETH0_CLK_TX_180_I>, + <&cpg CPG_MOD R9A08G046_ETH0_CLK_RX_180_I>, + <&cpg CPG_MOD R9A08G046_ETH0_CLK_RMII_I>, + <&cpg CPG_MOD R9A08G046_ETH0_CLK_TX_I_RMII>, + <&cpg CPG_MOD R9A08G046_ETH0_CLK_RX_I_RMII>; + clock-names = "stmmaceth", "pclk", "ptp_ref", + "tx", "rx", "tx-180", "rx-180", + "rmii", "rmii_tx", "rmii_rx"; + resets = <&cpg R9A08G046_ETH0_ARESET_N>; + power-domains = <&cpg>; + snps,multicast-filter-bins = <256>; + snps,perfect-filter-entries = <128>; + rx-fifo-depth = <8192>; + tx-fifo-depth = <8192>; + snps,fixed-burst; + snps,no-pbl-x8; + snps,force_thresh_dma_mode; + snps,axi-config = <&stmmac_axi_setup>; + snps,mtl-rx-config = <&mtl_rx_setup0>; + snps,mtl-tx-config = <&mtl_tx_setup0>; + snps,txpbl = <32>; + snps,rxpbl = <32>; + status = "disabled"; + + mdio0: mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + }; + + mtl_rx_setup0: rx-queues-config { + snps,rx-queues-to-use = <4>; + snps,rx-sched-sp; + + queue0 { + snps,dcb-algorithm; + snps,priority = <0x1>; + snps,map-to-dma-channel = <0>; + }; + + queue1 { + snps,dcb-algorithm; + snps,priority = <0x2>; + snps,map-to-dma-channel = <1>; + }; + + queue2 { + snps,dcb-algorithm; + snps,priority = <0x4>; + snps,map-to-dma-channel = <2>; + }; + + queue3 { + snps,dcb-algorithm; + snps,priority = <0x8>; + snps,map-to-dma-channel = <3>; + }; + }; + + mtl_tx_setup0: tx-queues-config { + snps,tx-queues-to-use = <4>; + snps,tx-sched-wrr; + + queue0 { + snps,weight = <0x10>; + snps,dcb-algorithm; + snps,priority = <0x1>; + }; + + queue1 { + snps,weight = <0x12>; + snps,dcb-algorithm; + snps,priority = <0x2>; + }; + + queue2 { + snps,weight = <0x14>; + snps,dcb-algorithm; + snps,priority = <0x4>; + }; + + queue3 { + snps,weight = <0x18>; + snps,dcb-algorithm; + snps,priority = <0x8>; + }; + }; + }; + + eth1: ethernet@11c40000 { + compatible = "renesas,r9a08g046-gbeth", "snps,dwmac-5.30a"; + reg = <0 0x11c40000 0 0x10000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "macirq", "eth_wake_irq", "eth_lpi", + "rx-queue-0", "rx-queue-1", "rx-queue-2", + "rx-queue-3", "tx-queue-0", "tx-queue-1", + "tx-queue-2", "tx-queue-3", "ptp-pps-0", + "ptp-pps-1", "ptp-pps-2", "ptp-pps-3"; + clocks = <&cpg CPG_MOD R9A08G046_ETH1_CLK_AXI>, + <&cpg CPG_MOD R9A08G046_ETH1_CLK_CHI>, + <&cpg CPG_MOD R9A08G046_ETH1_CLK_PTP_REF_I>, + <&cpg CPG_MOD R9A08G046_ETH1_CLK_TX_I>, + <&cpg CPG_MOD R9A08G046_ETH1_CLK_RX_I>, + <&cpg CPG_MOD R9A08G046_ETH1_CLK_TX_180_I>, + <&cpg CPG_MOD R9A08G046_ETH1_CLK_RX_180_I>, + <&cpg CPG_MOD R9A08G046_ETH1_CLK_RMII_I>, + <&cpg CPG_MOD R9A08G046_ETH1_CLK_TX_I_RMII>, + <&cpg CPG_MOD R9A08G046_ETH1_CLK_RX_I_RMII>; + clock-names = "stmmaceth", "pclk", "ptp_ref", + "tx", "rx", "tx-180", "rx-180", + "rmii", "rmii_tx", "rmii_rx"; + resets = <&cpg R9A08G046_ETH1_ARESET_N>; + power-domains = <&cpg>; + snps,multicast-filter-bins = <256>; + snps,perfect-filter-entries = <128>; + rx-fifo-depth = <8192>; + tx-fifo-depth = <8192>; + snps,fixed-burst; + snps,no-pbl-x8; + snps,force_thresh_dma_mode; + snps,axi-config = <&stmmac_axi_setup>; + snps,mtl-rx-config = <&mtl_rx_setup1>; + snps,mtl-tx-config = <&mtl_tx_setup1>; + snps,txpbl = <32>; + snps,rxpbl = <32>; + status = "disabled"; + + mdio1: mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + }; + + mtl_rx_setup1: rx-queues-config { + snps,rx-queues-to-use = <4>; + snps,rx-sched-sp; + + queue0 { + snps,dcb-algorithm; + snps,priority = <0x1>; + snps,map-to-dma-channel = <0>; + }; + + queue1 { + snps,dcb-algorithm; + snps,priority = <0x2>; + snps,map-to-dma-channel = <1>; + }; + + queue2 { + snps,dcb-algorithm; + snps,priority = <0x4>; + snps,map-to-dma-channel = <2>; + }; + + queue3 { + snps,dcb-algorithm; + snps,priority = <0x8>; + snps,map-to-dma-channel = <3>; + }; + }; + + mtl_tx_setup1: tx-queues-config { + snps,tx-queues-to-use = <4>; + snps,tx-sched-wrr; + + queue0 { + snps,weight = <0x10>; + snps,dcb-algorithm; + snps,priority = <0x1>; + }; + + queue1 { + snps,weight = <0x12>; + snps,dcb-algorithm; + snps,priority = <0x2>; + }; + + queue2 { + snps,weight = <0x14>; + snps,dcb-algorithm; + snps,priority = <0x4>; + }; + + queue3 { + snps,weight = <0x18>; + snps,dcb-algorithm; + snps,priority = <0x8>; + }; + }; + }; + pcie: pcie@11e40000 { reg = <0 0x11e40000 0 0x10000>; ranges = <0x02000000 0 0x30000000 0 0x30000000 0 0x08000000>; @@ -200,6 +434,13 @@ gic: interrupt-controller@12400000 { }; }; + stmmac_axi_setup: stmmac-axi-config { + snps,lpi_en; + snps,wr_osr_lmt = <0xf>; + snps,rd_osr_lmt = <0xf>; + snps,blen = <16 8 4 0 0 0 0>; + }; + timer { compatible = "arm,armv8-timer"; interrupts = , -- 2.43.0