From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26E03C4332F for ; Fri, 23 Dec 2022 13:27:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=o/81sV1HNJhe3B4H4akvrAjDp6P72fyp712FRkiQMXM=; b=yjYqzB5rAZAwVS uLbpUm6x5ZE7yNB8umn9Ts+ARvtL5HI1kdHdkMl9w7Bk6meYJvE3UzrLauej3vYTxdYFmVoaHoTGp bVFJLzZac/9yYqpzFtnyke+mcwa2lqMFIKYj0AEN08y8gNr1VW/ewHM8C8/FH8/gmeOACNA5FRBoj xZ7mUyODpGBg83E2UkfO1d4bzohyVw0WaYyKF7w+VXDtRTIgJjHxQ/ZvJgo/Jpx/SDwj/DGYmBLHN sD/sMUf0/fxe5FOWT+9j//ukl8DWWTKZciQ3lOPKvh/8ER60I0IAwQgymc174es6C4KHgF/p583wD NxazcU5XtIA/ukJQeKhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i4G-008NwP-4U; Fri, 23 Dec 2022 13:26:32 +0000 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i3j-008Nh0-Ml for linux-arm-kernel@lists.infradead.org; Fri, 23 Dec 2022 13:26:01 +0000 Received: by mail-pj1-x1031.google.com with SMTP id hd14-20020a17090b458e00b0021909875bccso7783077pjb.1 for ; Fri, 23 Dec 2022 05:25:58 -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=WJOAEuTCZH9I37ZOI2Y3RZgmgEqqxJBzOZPsdbMXeRo=; b=LDqIJEsr5yxpLVhXH0biAGVKubl8/fkFSEUgH5qqyXu5uHrmbmbm7lr5PvDuXLZh14 MpNpL5drGTKBvTzkBqktMbnCh/LTdYTg+/JJK+4YiC34SE/opt5WBu4EV+YvESrICkGF n55VDIbltxFCUaWTsB27PpMm/2guNRqRHz4EJwFgnfan9slki2geTMgsXoHpe53QfGAa c83ZAr++QhYpFtpZnwy6HAFe4tTWi4naRMnL2HF+5LYpsqddvT4+Ckaf5O65m/6e/zen WJjFB568czAQt+yQ7zyc/jL9N3+NoiJ5YTcK/m738DyPrLBx8O0czmVNh+tCM5B4OMno lEcA== 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=WJOAEuTCZH9I37ZOI2Y3RZgmgEqqxJBzOZPsdbMXeRo=; b=RNI+/OmCHBTMdQZTd5GnVlta+HHlLApaHcaFReTJ3Td8QmcMN3syqc8RYY5RZSxiiw /+jWfeT81B8haYmZFZD78yfEkF2cMB5eGFMj3hiJm7IHU7dVGBdavpuBpCKq6MMybKIh gozsH/+N0BjYoAtF1Ch8w7DaXW5Sg72tXHpRw4uKs9wIIVAtrZLLunwwhnwxuy/IgUUK +2XpaEWSo8aySf3w2zvqnFWswpVUMrhJbcjpVz8OMG6W4lBJ9lcGwvZQobAAx1yDeisn sRD7XVBbyddMCj3YJyF18B+/TWICeSg4OV9+jvlBu/VlJor7Kj6aQxqDhzOS1Uj3t+zY INjg== X-Gm-Message-State: AFqh2kryn6FwdlwLwg6rrtBywjBBz/eLE9gmuPzsbp+EgvXUoCBMJrd3 W0pzZSmKel+ERZi9C3ozSzFFgQ== X-Google-Smtp-Source: AMrXdXtXEFysaVAJF+CTDEiz+OWvQED5ldVWf0lcmRDBjbFVHBbTFEagf9y08uwCuoQOfLo05hH8Fg== X-Received: by 2002:a05:6a21:998a:b0:ad:f86d:c0bc with SMTP id ve10-20020a056a21998a00b000adf86dc0bcmr14574349pzb.7.1671801958229; Fri, 23 Dec 2022 05:25:58 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.26]) by smtp.gmail.com with ESMTPSA id m3-20020a635803000000b0047681fa88d1sm1308587pgb.53.2022.12.23.05.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 05:25:57 -0800 (PST) From: Anand Moon To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Richard Cochran Cc: 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: [PATCHv1 linux-next 3/4] ARM: dts: rockchip: rv1126: Add GMAC node Date: Fri, 23 Dec 2022 13:22:32 +0000 Message-Id: <20221223132235.16149-3-anand@edgeble.ai> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221223132235.16149-1-anand@edgeble.ai> References: <20221223132235.16149-1-anand@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221223_052559_783254_8B7F9143 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Rockchip RV1126 has GMAC 10/100/1000M ethernet controller add GMAC node for RV1126 SoC. Signed-off-by: Anand Moon Signed-off-by: Jagan Teki --- arch/arm/boot/dts/rv1126.dtsi | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/arch/arm/boot/dts/rv1126.dtsi b/arch/arm/boot/dts/rv1126.dtsi index 1cb43147e90b..bae318c1d839 100644 --- a/arch/arm/boot/dts/rv1126.dtsi +++ b/arch/arm/boot/dts/rv1126.dtsi @@ -90,6 +90,69 @@ xin24m: oscillator { #clock-cells = <0>; }; + gmac_clkin_m0: external-gmac-clockm0 { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "clk_gmac_rgmii_clkin_m0"; + #clock-cells = <0>; + }; + + gmac_clkini_m1: external-gmac-clockm1 { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "clk_gmac_rgmii_clkin_m1"; + #clock-cells = <0>; + }; + + 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 {}; + }; + }; + grf: syscon@fe000000 { compatible = "rockchip,rv1126-grf", "syscon", "simple-mfd"; reg = <0xfe000000 0x20000>; -- 2.39.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel