Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9770522rwl; Wed, 11 Jan 2023 09:42:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXt1E9I2GcY68yLmOicpPcXb2qCkyfwxDArb6TtaPzUK5vuEoEfhgYmGh2dtCW8eANhL/oWA X-Received: by 2002:a05:6a20:6aa8:b0:b3:87f8:8387 with SMTP id bi40-20020a056a206aa800b000b387f88387mr57052238pzb.50.1673458929648; Wed, 11 Jan 2023 09:42:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673458929; cv=none; d=google.com; s=arc-20160816; b=Olv+IgtY/825G3AwCYOopEzdzHt9MhMd1wT+pCyuB1sGE9kB0fMu+kXPsTlTT8CHJa 25Xtu2SfAzAlBiglu96Xv/R4Q0lTY46berX+IldAImfiEyBvv+A/u3oAqT9G2YCWCWEK mF13WwADfbfxK+0EZ1DmcDU7odr3KtJSMUjPLLkz6B8YI3XddbnWSAIm1vShtDK/Slbq KcysMLlJGccdIF4ZaZMJTLjO7SlG7smgMLqFN306ePnrNnHmK/7meYBUJ5QcR9jyrHHL +7dgxuNxQjVXBrrActvqpHpU9w2+LgOl8+OfYZuGxFWemP4HRXbvEL70sVCKn8BeAR02 0CjQ== 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=c/CxlYBi388NDPbDSoqcwBjvGrii9x3/S/0h+i6WeGA=; b=uutQKY8/yYdznh3t+q823taHzCqeSeThg20+EqlosCQMjsVj0NyaBzRc664qEV2QeU qMEzgHxBElIumDoPTojtlTrdmlDpffiSCy24ET4nXjDL8q1jgHDWvYIA2rrhQHQnPLjB gBGgIIKTeR+umYWUT+ysT1ZlBRJzV/tiALPo0YRxXxq+N9MyHP1BHaInowZgp4lRWztR DYNLkfWNVGPOiCapnsYSibTfrC5GhtYHnuZ2z+3Ef5UfnwG83daaYVhTxI/8INbFskgK xv86VJ4yArJxwdmilxRYSvdND0s2x5GVKRBTnmgCtaqmxOawUij5loUwq6A/DNxZU7Fy /Utg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@edgeble-ai.20210112.gappssmtp.com header.s=20210112 header.b=oo0eRw2g; 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 w8-20020a63f508000000b004a2d9640cd1si16148864pgh.168.2023.01.11.09.42.03; Wed, 11 Jan 2023 09:42:09 -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=oo0eRw2g; 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 S235054AbjAKRaj (ORCPT + 53 others); Wed, 11 Jan 2023 12:30:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239672AbjAKR2s (ORCPT ); Wed, 11 Jan 2023 12:28:48 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5171B3E0F3 for ; Wed, 11 Jan 2023 09:25:06 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id z4-20020a17090a170400b00226d331390cso17959689pjd.5 for ; Wed, 11 Jan 2023 09:25: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=c/CxlYBi388NDPbDSoqcwBjvGrii9x3/S/0h+i6WeGA=; b=oo0eRw2g8jOAp10levb4WD5yMGtiaNPRCY0wUJNOLxMJq7zYYsp1Bf5FKtN/+8sx0e P2gv1oxrqaat+lnipA9FvzPpxUaGPxq0jV++nAKm/MqRpYwScgH8VshqZDpyS+S9VRRy hV1H+B5twRfEZmpY8NF6oVBprMp37v5ntum8Zf8e8UDmKUmnjl2WPQHWfl8qhIuubLI6 GhCb/ddxSjDY+oeBOUHCi5DSgBcjDnwE7Q0JQvLxIuz8eVbfuO0mgIENwqTTgIrBx8kU bL9k99XLQNeXpnkSzSC0wrARqfWSnvQRrhnBsAfZJCwyH9oA6JXXed0KLsvWKd5TE0HV PK8A== 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=c/CxlYBi388NDPbDSoqcwBjvGrii9x3/S/0h+i6WeGA=; b=6Nh4pPyOMVJRZayfH/+VmSeWtoWD2CRHf9DcnlVlYjAXsydyMsoOE9BNkK52CSmybu DHdTBvC3456fIu0gMWeL4x24H5g3Kak+teTqQcXSbIZCb53TnBZYvVk7J1s1r6pLAoHa bA7fTxTiPxI5J4MmCBt6hR4gXFLQ0R9K/XoWqTZynT2c3drCf0WVyIuV4PnD2rEqnYZ8 Vy4+Gwdz1ttvjm+s7mfv4QeYVT9h+7bkqIauGOEVis6J6nyBM5YoBxgoj2fJWczr7aea kJ/znAf1UPe7qyDCdazFSTU6BvVcj+YcOTQkKs/9uqpqMgRoujKwTkPA9mrn6sQKZ+SL pwoQ== X-Gm-Message-State: AFqh2krxbRiwu6EfENMllVK1W5SqFbsRY70FXlUzMzsB8OvRx/PYz1zf 77IAheDJ/lnPURSWI39uRQfLag== X-Received: by 2002:a17:90a:558c:b0:226:1189:ad3e with SMTP id c12-20020a17090a558c00b002261189ad3emr51627132pji.27.1673457905925; Wed, 11 Jan 2023 09:25:05 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id rm14-20020a17090b3ece00b00218fa115f83sm11110722pjb.57.2023.01.11.09.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 09:25:05 -0800 (PST) From: Anand Moon To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski 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 Subject: [PATCH v5 linux-next 4/4] ARM: dts: rockchip: rv1126: Enable Ethernet for Neu2-IO Date: Wed, 11 Jan 2023 17:24:34 +0000 Message-Id: <20230111172437.5295-4-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. Enable ethernet node on Neu2-IO board. Co-Developed-by: Jagan Teki Signed-off-by: Jagan Teki Signed-off-by: Anand Moon --- v5: add CoD of Jagan v4: none v3: Address review coments from Johan and Add SoB Jagan Teki. v2: 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..3340fc3f0739 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 { + 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>; + clock_in_out = "input"; + phy-handle = <&phy>; + phy-mode = "rgmii"; + phy-supply = <&vcc_3v3>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmiim1_pins &clk_out_ethernetm1_pins>; + tx_delay = <0x2a>; + rx_delay = <0x1a>; + status = "okay"; +}; + +&mdio { + phy: ethernet-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