Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp617580rwj; Fri, 23 Dec 2022 06:03:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXuBhKCA8ye+G2tx7OXpP0CFmWxqc8Wq1KRClVAVhZwrn46Zu+7qJ6uS4IIAuSBxuKdHmk1j X-Received: by 2002:a05:6a00:15d5:b0:57d:9b8e:92a7 with SMTP id o21-20020a056a0015d500b0057d9b8e92a7mr13218672pfu.7.1671804233565; Fri, 23 Dec 2022 06:03:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671804233; cv=none; d=google.com; s=arc-20160816; b=o3LfCdUdxZ0RkZTOP4QJyn/aZkdRr5WcYooFLXuRMq7slQg1TI7SeuZ4zmeOPMdaaO rvqSCmjLEpnUjXZMqb9txd2OYtVyoM7YP5HrQ4k/ogpsexbi3Srq4IulTA/G/UQ3K04h rfDhpz+Th6amd7JdH5Hox73142Cvf5xewA/dIw2+YW3nZAtJU7E7UQQ3AtpDUpdjXRZo hoEZgDibAXA2Uo3waEcmVehdhMVPQ3yGHAbEKS9lcCDWuyYZNlXkfRWSsXdxuqrWv9ZD IyEMqXV6oW/CgaUlzfvSGG5f7W6Wt/Ssgdc4koIUAY34TXS94Jg/o2Dq7BaIgeBbePVx SH0Q== 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=D5TFO0ecJqFSWeM6hfq5fazXKqNWla1DOE+uuMQWKOY=; b=bk/L2U8UkgVxUc7L3IV0sV31TBv8P5kBVbgVvEpYuHgYKovOtRyJ3hm+S4nAM6YhII C6HNFK19dEx9AEexumAa+wUREKP1VUOb+AerLo9NhePi0+Shq2L03Ebjx67sohDE/l7U tkRUb+zQwGNRvrBCGcZyY5WL2bSE+dsqAZ+yFCUeHEcnXU2Q918xLxAlskK0RuFGuanA GElSLcRXLo2Tht7gzwBdH6z+RJJtvcuQYCWJlIWW2yHuR7WO6tjqXQErM25A/My6khnM x4xUGaqgJK+Ws6YwvP5QipL9LCInZ3fpjIJAbqc3SXGgKmoZElWoJ4lex24t7it+C9VT Os0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@edgeble-ai.20210112.gappssmtp.com header.s=20210112 header.b=ViC80PP7; 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 d17-20020a056a0010d100b005808991ba14si2588553pfu.234.2022.12.23.06.03.20; Fri, 23 Dec 2022 06:03:53 -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=ViC80PP7; 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 S236334AbiLWN0Y (ORCPT + 65 others); Fri, 23 Dec 2022 08:26:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236375AbiLWN0J (ORCPT ); Fri, 23 Dec 2022 08:26:09 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 760553EAD5 for ; Fri, 23 Dec 2022 05:26:04 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id jn22so4943814plb.13 for ; Fri, 23 Dec 2022 05:26:04 -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=D5TFO0ecJqFSWeM6hfq5fazXKqNWla1DOE+uuMQWKOY=; b=ViC80PP7cGI3SuzqsLmaZkriwH8PZ2Rr5Z43TW6yM9dzuazu5i72v0cVpLoGaCUTE/ 05ent5zVCkvpf5ukQpViSUjVbFaH/Vy4kN2X+iBjaIBzDF79S8yWw+gq6YIl31Ql/zaK idc0YyA7ll7XkvsdLXYMN7zk23bpDuKyQvpT75AHW+jH7aZi5DinOUxqjZWR6xQpgTmJ OVZOpTQ6t5V+OZ9miatjXfLmfxz/7wJW3bi8xi950JIHjptkSqrr3eO0NM+EpNaTrzxh Bj4HDhZ3OgcwM23Td6x0y+siDQ2aeosbVGFEP3zV3J4w4y6anJqRXSdqn6gyVZLWuOqr /FEg== 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=D5TFO0ecJqFSWeM6hfq5fazXKqNWla1DOE+uuMQWKOY=; b=L/k5cYdsI/t5+UA1z//gLV45XZWoc5uKtwJEBjXuiqrc3oHEfS68rJgMk0aSIHB2R8 iACkw+S2287OeZulLo46bT98cD2WnXvonhDwTGlIvtDqfCe0KK9frkYuBUw91adaEhFp EQACljvRNRqtMUQumKPoFhbbNQpxS5U12K1fot+m7aAv2owNAXNWptVgL+/JvqH96Bhv afwyAO99WUC2HCfQG8QVMfy0MzAeZnhGIPS65SPp13YKegpUa2Q50hut2QrG4S5WP5jc vTufNSRgt5O4TYhc9dRH3qPkRCtKOLwa/SY5d0GR4tMnuPKPtJy1cCGhxFS+r4ylYKG8 pkcA== X-Gm-Message-State: AFqh2kpZ4h5TVnI7QK/kmJGSG9jecOlxe0n7O/5JAIO8kGOFdfAw1BOA viXAJzlrWBiDoN2k0j0xvLZ04pyqC+EMmsnh5uY= X-Received: by 2002:a17:903:18a:b0:189:b0ff:e316 with SMTP id z10-20020a170903018a00b00189b0ffe316mr15049545plg.38.1671801963795; Fri, 23 Dec 2022 05:26:03 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.26]) by smtp.gmail.com with ESMTPSA id m3-20020a635803000000b0047681fa88d1sm1308587pgb.53.2022.12.23.05.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 05:26:03 -0800 (PST) From: Anand Moon To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski 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 Subject: [PATCHv1 linux-next 4/4] ARM: dts: rockchip: rv1126: Enable Ethernet for Neu2-IO Date: Fri, 23 Dec 2022 13:22:33 +0000 Message-Id: <20221223132235.16149-4-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 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=unavailable 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. Enable ethernet node on Neu2-IO board. Signed-off-by: Anand Moon Signed-off-by: Jagan Teki --- arch/arm/boot/dts/rv1126-edgeble-neu2-io.dts | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/rv1126-edgeble-neu2-io.dts b/arch/arm/boot/dts/rv1126-edgeble-neu2-io.dts index dded0a12f0cd..bd592026eae6 100644 --- a/arch/arm/boot/dts/rv1126-edgeble-neu2-io.dts +++ b/arch/arm/boot/dts/rv1126-edgeble-neu2-io.dts @@ -22,6 +22,43 @@ chosen { }; }; +&gmac { + clock_in_out = "input"; + pinctrl-names = "default"; + pinctrl-0 = <&rgmiim1_pins &clk_out_ethernetm1_pins>; + phy-mode = "rgmii"; + phy-handle = <&phy>; + assigned-clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>, + <&cru CLK_GMAC_ETHERNET_OUT>; + assigned-clock-parents = <&cru CLK_GMAC_SRC_M1>, <&cru RGMII_MODE_CLK>; + assigned-clock-rates = <125000000>, <0>, <25000000>; + phy-supply = <&vcc_3v3>; + tx_delay = <0x2a>; + rx_delay = <0x1a>; + status = "okay"; +}; + +&mdio { + phy: phy@0 { + compatible = "ethernet-phy-id001c.c916", + "ethernet-phy-ieee802.3-c22"; + reg = <0x0>; + pinctrl-names = "default"; + pinctrl-0 = <ð_phy_rst>; + reset-assert-us = <20000>; + reset-deassert-us = <100000>; + reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>; + }; +}; + +&pinctrl { + ethernet { + eth_phy_rst: eth-phy-rst { + rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; +}; + &sdmmc { bus-width = <4>; cap-mmc-highspeed; -- 2.39.0