Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8972712rwl; Tue, 10 Jan 2023 23:03:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXtlZVpfqKc754tTjjuM8K9AmC/hR4tCM6rkaQLRkds3T9sCNNm9J/se4RWpoXBvfeMHOyka X-Received: by 2002:a05:6a20:2d23:b0:b2:6a7a:6072 with SMTP id g35-20020a056a202d2300b000b26a7a6072mr83370661pzl.14.1673420616679; Tue, 10 Jan 2023 23:03:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673420616; cv=none; d=google.com; s=arc-20160816; b=X2kfyg6Jz00CEDZ0QfPKeLQtCQb3cr0UtLQyuZoRCtCn2lKNPSWzlbaRdap+QQGz2W IJF12yTn3GSl7Ske+fHQCdsNwJgZ5kp8DeiJfzuFb6IZ+JtQ7IBZwzUfL2cvZFx+d204 yREl1SVJsvYZGRekEbzlWgr6CRFr7S/tj7Cu9HFnMu82R+abwztuBnp0+xbAXPozl7pg 7vcIqZDhbQv+g7ALJO6RTdj7OTbpwkLrL9KRs6PMXMcAStq/OWW38eKoOoiGPYo0o4Ni 99VZ15jw194fz2o639Z4VC+jPLsA8X3F6FcdRMXPR/57WW5zTVZAimoD55fZZI/Rn1cL zjCA== 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=v6oPssMQRYRXIYCOfMp0bkJRvG7DgiHOFHZTd1dGl0E=; b=IaAuJboENzNZpomSWqZO/RCvZPCWaW33zQXaTSbcXTx5QWN3o4weTNIywZQsNNVXl+ V3qP6jrba+tQl2dbzAS4wuStgUuKnhtTskGjFFZTZQsi5aSsxrVPQGSw1BLcLGVlqc54 L+P4FMFSZnJXot74RGBlNiORYX3C8VGSfQK10abxA2EtSN+hDhqO9iJRTtwHF3sUGI7+ 5mZtyhDxcyfiaPgE99gVahGoN3LVwZ+R9i2WxBxcxx4ltLZNpii72/eoSBwSCJbFpNC9 QrXgVa0L5gi8w3NJ7M3B49mkzYjYlGhSXCS4Zfkk2VhtozX9m0urwdNg/v04HFgLTA0o wExA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@edgeble-ai.20210112.gappssmtp.com header.s=20210112 header.b=Ie7iNftI; 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 w23-20020a634917000000b0048594ba2afasi13300508pga.533.2023.01.10.23.03.29; Tue, 10 Jan 2023 23:03:36 -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=Ie7iNftI; 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 S235700AbjAKGtd (ORCPT + 53 others); Wed, 11 Jan 2023 01:49:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235554AbjAKGtV (ORCPT ); Wed, 11 Jan 2023 01:49:21 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFF8D1055A for ; Tue, 10 Jan 2023 22:49:06 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id cp9-20020a17090afb8900b00226a934e0e5so2966683pjb.1 for ; Tue, 10 Jan 2023 22:49:06 -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=v6oPssMQRYRXIYCOfMp0bkJRvG7DgiHOFHZTd1dGl0E=; b=Ie7iNftIr1QUxuimLann2hOzWgGdQRi29/xAeDcLQWDXd2OPzSnJMNox5qtKpj7gWJ UqUhfEOD/RidpZqWzu2J77YeDjJFV3YJ2mXLDeMVSlcWmwIydyucxiAlFs2cBKLlYsHh sFKcL4c7Wq2S4SxWCMkVLiPZuVsE1ItLIAluFxcdl34xW54zqNyg0zxqAp7hGd2fkPBM OzI5O+/qqIYMFMGkXZU2c0suW7B0HR2Dl8kM162w96wWvYf+FLwgwXzqz+rTNwVgutCz 8X/VXY5SD4ijNNWdPR5vAl2W5DIjIhqJ5d5grzGggKm3/9doqzDgQLRjY3ckWjFMani8 2CEA== 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=v6oPssMQRYRXIYCOfMp0bkJRvG7DgiHOFHZTd1dGl0E=; b=dpGOU8nzqF6KfCmYNNDDEUsXegvqBm8aJAoFVhG8FEqiym5E8IUc939vvCC1gSR19z BGgrKVbzAnjN0Hy1k2JSVpUF/JeFYv3gqRx+R8mUFOktg1H0BTlDS+eQS/xFjTJn+Xpy uBATHBh+1vErsqe8cc78r1vUfpy9YLh4FE2IINNN2QOzqVzrO6TdwiLg/WA8E12vkZyF HHnhvDn1U1ijXY7Z68kTDkZgJacy3/GVs0qjgZncLkJm+un2XEVlHb8uLfCjrDpUbHLZ veHI5RpW0lXIk2icyEHr4qeGTyQGjb8H6UQ37WQPMd6esgdUW35fU1g7ra5LBw91XHTY PSFQ== X-Gm-Message-State: AFqh2koHDxhk5Fe4XJk6lQiSYyOogq5JghLl/CxXKkhDBgiug1+wg/XR Da9F1EzM+BU8RFV6cZuEKZf/Sw== X-Received: by 2002:a05:6a20:c183:b0:a4:526a:3f25 with SMTP id bg3-20020a056a20c18300b000a4526a3f25mr90205897pzb.44.1673419746404; Tue, 10 Jan 2023 22:49:06 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id m2-20020a170902db0200b001930e89f5f6sm9301861plx.98.2023.01.10.22.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 22:49:05 -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: [PATCHv4 linux-next 3/4] Rockchip RV1126 has GMAC 10/100/1000M ethernet controller Date: Wed, 11 Jan 2023 06:48:38 +0000 Message-Id: <20230111064842.5322-3-anand@edgeble.ai> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111064842.5322-1-anand@edgeble.ai> References: <20230111064842.5322-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 Add Ethernet GMAC node for RV1126 SoC. Signed-off-by: Anand Moon Signed-off-by: Jagan Teki --- 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