Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9795691rwl; Wed, 11 Jan 2023 10:03:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXsr58b+E5pgNbFnt1Lx+AHrne7oA7h2TLnC+ZraCNsXU1EJwFMaounMiaJTpHt8PUo3r5uN X-Received: by 2002:a17:903:3286:b0:193:1952:5a45 with SMTP id jh6-20020a170903328600b0019319525a45mr6500294plb.19.1673460209729; Wed, 11 Jan 2023 10:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673460209; cv=none; d=google.com; s=arc-20160816; b=G6bE86cXPTxGLgJ3Txm3qiwfsNjRp9rdx97SgjBNLeJUlUo2MAtkGWmAbGF4B5ArCC vxzoLXCzQdTSJyJqBhFdLx2eJhNsyCTBS2MQsKAh6BRktx/jKgflxsCkZWrq19dNYLKA VkLtmQn+u3AOwr+Uc6ROIMH3Cbpdan8oqEsdwDNSw8UtGNbSAuBbQwBB5oB5VWJq1GKK z7rWNNIMDvMkZvbLRWptdJLatzTmdwyfdURojz2R0yEJcdGlyZodi8GJOfKHz3xvtF8D GE9333R+bb5pBTSbQYwHwnfrK+e6MovIX6d5USP0yxu4wdJEz5C+//4OsHua9kK6r/He 71aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NByx23y/6WTDoeQQrsJysazVpw5VoP9tpFdnTA2g30g=; b=S3bA/YnjTsLfcbZssq2OqGoZ9s5svFO87F3dPAldLwRvGt+XQFU6Pjkwh9fLFnM4RC r5WoLayA43LbK6DaOcFx6OHKbz3eR3wBaIxEEdNgKCeGhVb977bpys7UCiJlbztMAqGJ 5V0Hu7G4/EMELP7xlWAfDUhQUe5JyBpj4d1oKjKqE2NunZUfyPzsEr3iIq6QV8TAtBC9 hcoyM47d4s68EclvMWbIdYAxtLLlF+IjwmtAmjJTLpCEeWrL5iPutktokkQUHslq8z5Q DXOPS/qZuIy+7RJPAkI5KeoEpnsRreU/YMW5sT6xdSfn28tc9hNnNU2bl/FCG+e9W/Fc 4sOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@edgeble-ai.20210112.gappssmtp.com header.s=20210112 header.b=KKINuB57; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n20-20020a170902d0d400b001893efd3e00si13189015pln.49.2023.01.11.10.03.22; Wed, 11 Jan 2023 10:03:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@edgeble-ai.20210112.gappssmtp.com header.s=20210112 header.b=KKINuB57; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232940AbjAKRav (ORCPT + 51 others); Wed, 11 Jan 2023 12:30:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239666AbjAKR2s (ORCPT ); Wed, 11 Jan 2023 12:28:48 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1F7B3D9F6 for ; Wed, 11 Jan 2023 09:25:00 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id v23so12576347plo.1 for ; Wed, 11 Jan 2023 09:25:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20210112.gappssmtp.com; s=20210112; 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=NByx23y/6WTDoeQQrsJysazVpw5VoP9tpFdnTA2g30g=; b=KKINuB57md1UtsZPCKcATf+egXFYsn+AioXnK8YTrnnhcF4rRNoV4hRgAe/xHVg4HB QkoujQ+l86IfIpIhwWxnzdSdAlRi8pcuqgNuPOH6Hg4FpC0KsI+GIQJacJRMpVLUnlm5 AgGMuIOwoL7q+kfvUTXOFhDaxB3xS5R9ZAOoHzdUfZEunC6dNkiOem0H1Qk9kZ0sLZYi rBK071pbaLtE2lYDJEHXm0h4kqPicKP8YDud3534Y2TbfZUtsPb3qmcUtWDqGBeBpdO6 Tu0qGps8XvNdLqyHjT9cWXBqD0QUt7fjMGGMneHd3l7X5YbVOwuLAGDjSmEJA7rI5+kD wtsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NByx23y/6WTDoeQQrsJysazVpw5VoP9tpFdnTA2g30g=; b=PfQ9zK92jOupF4afRa2jBvsnRunVNtA+u7wMVNQ8S3N0fIrAwuW91xBecHGgQQNtlV MD0YLiR6NG3OcplEuozsToWyC0HdHYIN1nLAiPY/yi9hzzlV7qWzL20ucRltcDYShWgB WNTdHogbS2iHyDdOqLMukoxE6MbotbFpVfINuVLzWdKXmiLy870pJm1Fp810bPjT6gDl VJd0MU8rubW8D4pxkOEQkORWQLNo4qJB+fKhI9HiETqkC8dGUFd1B+CqxT9DIbJMPzNe OEsWsZJJKPI+pg7TORid+Nj0i87ZSxOIAPENcYRhJuGn413Hwd95bLXeIip/j32EEEBt moBw== X-Gm-Message-State: AFqh2kow8aPhInLUJ+CgjNZluYhMfa5mhmOztBAhmz/IHY1ps1MGuRei jFftvT9k7HzpsaUF/GA1KN9MVQ== X-Received: by 2002:a17:90b:264d:b0:213:18f3:68d1 with SMTP id pa13-20020a17090b264d00b0021318f368d1mr74169906pjb.29.1673457900181; Wed, 11 Jan 2023 09:25:00 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id rm14-20020a17090b3ece00b00218fa115f83sm11110722pjb.57.2023.01.11.09.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 09:24:59 -0800 (PST) From: Anand Moon To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Richard Cochran Cc: Johan Jonker , Anand Moon , Jagan Teki , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v5 linux-next 3/4] ARM: dts: Add Ethernet GMAC node for RV1126 SoC Date: Wed, 11 Jan 2023 17:24:33 +0000 Message-Id: <20230111172437.5295-3-anand@edgeble.ai> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111172437.5295-1-anand@edgeble.ai> References: <20230111172437.5295-1-anand@edgeble.ai> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rockchip RV1126 has GMAC 10/100/1000M ethernet controller Co-Developed-by: Jagan Teki Signed-off-by: Anand Moon Signed-off-by: Jagan Teki --- v5: Fix the $subject and add CoD of Jagan v4: sort the node as reg adds. update the commit message. v3: drop the gmac_clkin_m0 & gmac_clkin_m1 fix clock node which are not used, Add SoB of Jagan Teki. v2: drop SoB of Jagan Teki. --- arch/arm/boot/dts/rv1126.dtsi | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/rv1126.dtsi b/arch/arm/boot/dts/rv1126.dtsi index 1cb43147e90b..1f07d0a4fa73 100644 --- a/arch/arm/boot/dts/rv1126.dtsi +++ b/arch/arm/boot/dts/rv1126.dtsi @@ -332,6 +332,55 @@ timer0: timer@ff660000 { clock-names = "pclk", "timer"; }; + gmac: ethernet@ffc40000 { + compatible = "rockchip,rv1126-gmac", "snps,dwmac-4.20a"; + reg = <0xffc40000 0x4000>; + interrupts = , + ; + interrupt-names = "macirq", "eth_wake_irq"; + rockchip,grf = <&grf>; + clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>, + <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_REF>, + <&cru ACLK_GMAC>, <&cru PCLK_GMAC>, + <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_PTPREF>; + clock-names = "stmmaceth", "mac_clk_rx", + "mac_clk_tx", "clk_mac_ref", + "aclk_mac", "pclk_mac", + "clk_mac_speed", "ptp_ref"; + resets = <&cru SRST_GMAC_A>; + reset-names = "stmmaceth"; + + snps,mixed-burst; + snps,tso; + + snps,axi-config = <&stmmac_axi_setup>; + snps,mtl-rx-config = <&mtl_rx_setup>; + snps,mtl-tx-config = <&mtl_tx_setup>; + status = "disabled"; + + mdio: mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <0x1>; + #size-cells = <0x0>; + }; + + stmmac_axi_setup: stmmac-axi-config { + snps,wr_osr_lmt = <4>; + snps,rd_osr_lmt = <8>; + snps,blen = <0 0 0 0 16 8 4>; + }; + + mtl_rx_setup: rx-queues-config { + snps,rx-queues-to-use = <1>; + queue0 {}; + }; + + mtl_tx_setup: tx-queues-config { + snps,tx-queues-to-use = <1>; + queue0 {}; + }; + }; + emmc: mmc@ffc50000 { compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0xffc50000 0x4000>; -- 2.39.0