Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1470367rwl; Sun, 25 Dec 2022 23:03:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXtenATNvNgs/WAsxDlOgaPzNDr3fOb+EaeOYMQZAjQPbE23ksCTYGh7lDBKugAkILCa1uI4 X-Received: by 2002:a17:907:cbc9:b0:7ad:b6d8:c9d0 with SMTP id vk9-20020a170907cbc900b007adb6d8c9d0mr14785401ejc.53.1672038197774; Sun, 25 Dec 2022 23:03:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672038197; cv=none; d=google.com; s=arc-20160816; b=wMMGJvGqu+/mRTN5TQvH0yxqeeGtlY+uoICYshxTjYND8oVqFis0MnKtYOhrJjdzk/ 1259m0/dKcVF453zfFl4IklwxfzmTq5UZO+4Ki0NJ22YxMBRaMi3JBDJ4pUPsE/wISrE 9CEorkxo2a5G3gN1JsEvrnNq1JDW6T3yTL2WEsUSngTLU4cAC3N80pL/Bhtm+Oqb1gZh jVkA8dfEKFmjacSXfHR270l1PuD/hYk8CyMloQd4o0zMQI0j0uRScZN1yspxGQUg4Aj1 5NqhI3KcOZkkcVWaekIYvCIJ388k2FxId8hEWrbBZeoRpMhoe0anrqDIWeESe5ubvcMb n34g== 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=rW+W8L4hEp5lOoEXBkKxHWasEwBBhWGhqBiD8Bx3Ygo=; b=pwW3vRRQKzZCGzudVvaUrteQbgbzhVz0SRvff7AzY8lMlpncaxg7Pp4cd9wSWeX3Mu nnJLVMkeQfQ+iotGF/hykPJffYVocU8jpeeYu908K0uzuRcvAM0qHCTdxebOeIZzJD3c 7/dRgv4/bBOKN7anId5N/k3BMMhI1imgEokocUEmQFG/yeGHFPHUFu5ICbxq5RvENk8a wZ7HcOu/xWl+V+CPOK8h6kcG7FwbMSu9CSWoJl+2isGi+9CYLJJ8Lar9wWTa7F4qZdds i+o5a/sZYb1Buy5A/xD/bASrSeJ5c7P5Gcw7Bv5slbYeSpJy6ao3zmT3Xv6ynCj+KoMC NhBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@edgeble-ai.20210112.gappssmtp.com header.s=20210112 header.b=voBlDzsB; 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 ss28-20020a170907c01c00b007c0a88076d5si7194277ejc.818.2022.12.25.23.03.01; Sun, 25 Dec 2022 23:03:17 -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=voBlDzsB; 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 S231775AbiLZGhj (ORCPT + 67 others); Mon, 26 Dec 2022 01:37:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbiLZGhO (ORCPT ); Mon, 26 Dec 2022 01:37:14 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F13E12AC3 for ; Sun, 25 Dec 2022 22:36:55 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id b12so6729387pgj.6 for ; Sun, 25 Dec 2022 22:36:55 -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=rW+W8L4hEp5lOoEXBkKxHWasEwBBhWGhqBiD8Bx3Ygo=; b=voBlDzsBgXxobxqDnz/UaPsHRfWs7i9nstSae/q3NRBCxfuyzy1+Ep+jWlbAoD5jYA WyNKywWNaYysqNCSjfSzZ7829lKS+/ZwXBDxovBWTxNi7i/8FRCN23iXQIYQVCpN53dG E+Yvfbq04uqXoW60RyAOQasa+JXJmKHyQZ1hBrjR8Dbky8ygnPj9oC9pmrpqKhk4ieHT 59pb3fUEa7iub7UP0FS3vBZix9UqCdmOqWAHl23ywrlGWIvbjLAZu2PQV9i3it0S5XnE iXEOb8VGVNXQ22Of6JxWEUwcvWDsGHwMvmUsR4K5wuZ2LN932Cx1Ij3+lKvrFOti5Fnn DSeA== 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=rW+W8L4hEp5lOoEXBkKxHWasEwBBhWGhqBiD8Bx3Ygo=; b=xYaWeVvSCLOuxg9HdK8x4Tc6AHCOZ4caNZg88EMT/wrKSxfyQ8Kd+U0W5AdwpXB5G4 fHzhoGWYUPC8yjXJG7PvyuOfbSpR2hx3gOvD8ilyget4VZrfrgt08wnH3wdFIqcOrH8s 22uxJAQSD3yfM0y7CVqyeRaO+F09Q8AwrbHO4l8DWdBUpNg3gmbsp/vNxrS2nrMKtX2M 1VeYUOmh+ZP1cvGDE1JAPa/aeoRdhZCsg50duvvk4pKNAa1JZCA6oSJwmGxnS7NE6V7H bHkvP4xhboq2yxcKQF2Sa7jQXxFFUl0dOxQ23dEtO/xuFOHVljIah+M0BWzm0szRKFhC OVuw== X-Gm-Message-State: AFqh2krkJtaC+QqDPWjQKp6pb0+q7/QgGhuLlPSSHPxmtfohpeq6sPnd evg23IbwDqR3matY4RYmsx64Dg== X-Received: by 2002:aa7:9f8d:0:b0:57f:ca45:66c9 with SMTP id z13-20020aa79f8d000000b0057fca4566c9mr20282753pfr.13.1672036615502; Sun, 25 Dec 2022 22:36:55 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.26]) by smtp.gmail.com with ESMTPSA id 31-20020a63145f000000b0047048c201e3sm5730659pgu.33.2022.12.25.22.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Dec 2022 22:36:55 -0800 (PST) From: Anand Moon To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski Cc: Anand Moon , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCHv2 linux-next 4/4] ARM: dts: rockchip: rv1126: Enable Ethernet for Neu2-IO Date: Mon, 26 Dec 2022 06:36:22 +0000 Message-Id: <20221226063625.1913-4-anand@edgeble.ai> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221226063625.1913-1-anand@edgeble.ai> References: <20221226063625.1913-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. Enable ethernet node on Neu2-IO board. Signed-off-by: Anand Moon --- drop SoB of 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