From patchwork Fri Dec 23 13:22:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13080988 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 5D325C4332F for ; Fri, 23 Dec 2022 13:26:23 +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: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:In-Reply-To:References: List-Owner; bh=QCv6zsU7n4B5b2O2Y8mCvT/QiVE77ENSNwa+BPQ2MeI=; b=sWsze2v50wFcNb QDTrxSjK/MgkSQ1HfcIkhyojgC1eygD5Hj1eGmKcomFR81+2Eg0pCP38+uWK6qU9Ut9+aO0xTGvHo CfsK8DV0UnsVJQZuN3mQiMq2pC+wLBmNNkbO9/SBg+wegCGlu43RAllPtMBO4UetjR8Tfeuttl/k0 drmU0YPyPASB0nLhG/NbbLK2hmH9LzJmvOmIUTx1EatekkqSKWTsInrxclB7mbcBnymV8f4BwftaX +71tW/q/+LanydgrDp59gbCRvR+eeYk7wMByboYI7zfIbmo1pWusIBlpEbRBBJ+DZH7twxOeMdwPO JpLbrdjphJAwSMy/V0aA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i3q-008NkN-C3; Fri, 23 Dec 2022 13:26:06 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i3Y-008Nbt-Vb for linux-rockchip@lists.infradead.org; Fri, 23 Dec 2022 13:25:51 +0000 Received: by mail-pj1-x1030.google.com with SMTP id o8-20020a17090a9f8800b00223de0364beso8811492pjp.4 for ; Fri, 23 Dec 2022 05:25:46 -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:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wundbcH2g9xN6/PVxd6vNLcmcPbSkSP9WqIdH+1twe8=; b=3YYEJ6fsDDNLI6BSPUn9UAVpJ3cm8A8yF4bM3GKpdiztut/6kkMEIugr9asK8oqPwb 7col/iMpBEqJSKt1RV5xgrw3gOOwdqKXQtzhOngDvel74k9wZsQy+GIf2LNHMTlZuBZd W1e7SvML5sc7KGk7DhlhvdenKHckc8FWOIP+hSbcb7zAYvzLJw2NDAHf94/UuZAqcxZv YbAAevXIsrWLjuQ+YIbIqZwXqjY636/jjUSKwYaB42cLTgLa3SgAaJGXWx7YRmAkRGfC SnYmpbQUXDkrX55LIpOKGX/mCUuPXDk0loPoKSkPDQkDwXSzocet1Qz1rosrrnbqnEVK TwGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wundbcH2g9xN6/PVxd6vNLcmcPbSkSP9WqIdH+1twe8=; b=193j3xEGGkHBXe449mD0unSWLjjwx+JJUjfh2jIY9a7b9zyquEKofQR82grAY6wd2x t+byJn/blOU0u6A440hv7NaMdcW3RZuYPWWEEUbZSL+1XGXHZAXTPzMtpFjUR0gCwkka 9D/LzY4nypevIsyJnVMM/2XgZiIrvEQ3Zzfh04SYcOvn4ZMnZu6inEYo1ljQCMJR4KTT R5Jxn+bstghkcuc4b3QxKa9zNfMiwWzJP2vv5pvkbkzLUj/OQNKhNI7Yx8C8fEeimsRm G1q6i6wWERlsSCOSaIDNpgMeDs+iemlMDKlpVY+JqhZcvIBOMph+zQ/StreQsrA48Lqv Z5aQ== X-Gm-Message-State: AFqh2krpmF4r0CjqTsqFC7c/KwE80ANmGS/YeILCSbLCAEMGGQ2j9eHx +gKyIVO2QHmckWoc8mAwubnzYg== X-Google-Smtp-Source: AMrXdXupbRVLFT1bwpmjESvCYz8d60hQsjaf+PgnNKc51oTZ642XvF1P0pE3Ipqp5xf+VO1u+RWjnA== X-Received: by 2002:a05:6a21:6da2:b0:b2:56ba:63ee with SMTP id wl34-20020a056a216da200b000b256ba63eemr14967634pzb.24.1671801946506; Fri, 23 Dec 2022 05:25:46 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 05:25:46 -0800 (PST) From: Anand Moon To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , David Wu Cc: Anand Moon , Jagan Teki , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCHv1 linux-next 1/4] dt-bindings: net: rockchip-dwmac: fix rv1126 compatible warning Date: Fri, 23 Dec 2022 13:22:30 +0000 Message-Id: <20221223132235.16149-1-anand@edgeble.ai> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221223_052549_275841_825A0803 X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Fix compatible string for RV1126 gmac, and constrain it to be compatible with Synopsys dwmac 4.20a. fix below warning arch/arm/boot/dts/rv1126-edgeble-neu2-io.dtb: ethernet@ffc40000: compatible: 'oneOf' conditional failed, one must be fixed: ['rockchip,rv1126-gmac', 'snps,dwmac-4.20a'] is too long 'rockchip,rv1126-gmac' is not one of ['rockchip,rk3568-gmac', 'rockchip,rk3588-gmac'] Signed-off-by: Anand Moon Signed-off-by: Jagan Teki --- Documentation/devicetree/bindings/net/rockchip-dwmac.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml index 42fb72b6909d..04936632fcbb 100644 --- a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml @@ -49,11 +49,11 @@ properties: - rockchip,rk3368-gmac - rockchip,rk3399-gmac - rockchip,rv1108-gmac - - rockchip,rv1126-gmac - items: - enum: - rockchip,rk3568-gmac - rockchip,rk3588-gmac + - rockchip,rv1126-gmac - const: snps,dwmac-4.20a clocks: From patchwork Fri Dec 23 13:22:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13080990 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 15150C4332F for ; Fri, 23 Dec 2022 13:26:49 +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=MCIeCXIRKNbwqEg8v/uYOtWXHdmHtoMYReTgGUH736E=; b=S1FvBpLoEbDF0e hLT/Yak7QjIMW0/Az3CRmElYezwOAh3V2dKAPDwPYXLlp47RxorMMJ9UubUvaBLtNrI2TfPsL1kI0 T3Fytx4IGff7LbVpAqBPWVjZ1BdGP36QNg6sRcJ8o88ku7BLwnqfFIyeOBUgiiIywbMmEgaNq6OgR mkJzFO6N7Q6nepdKRRjgnVG/OtGNhCwKMs589Cf7kIVT/G6yibIAdNFToeEK++7LMss8wX+zGtUbU uPR5cdDQ5ac3CBrosf6/Zab0WtwBWmRw4iN84tXqpCb+S4JWefwJPUfvya4qoTN5THuvZuRoEZ5Rp gBSAFD+hIle034DEhRPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i4B-008Nty-MK; Fri, 23 Dec 2022 13:26:28 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i3d-008Neb-KB for linux-rockchip@lists.infradead.org; Fri, 23 Dec 2022 13:25:55 +0000 Received: by mail-pl1-x636.google.com with SMTP id u7so4950765plq.11 for ; Fri, 23 Dec 2022 05:25:52 -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=jiT9KYDx3RWtZOPtEp+4OpN+KsQgOdSJKLeTP2zJWcs=; b=GkBa160SclbJh4m4+Uvp0lPozlPivWtIJN0Ejk04u5nAj/brwEzVRt0PVJCx0DFy4B cjQlwmXKnSoFJjWvq4NQZHUOL4jD+fcp680/1S2mx8RmC1R5F1noBoBbtbpPxxrjnZTF F2PC6MW6KblVmd3dTCn3dNBnKhSuNmHakt+b82Jm+DmgUN4Yxagsoxo9Lobf/19Bk8hS bT9AYYB5MqfoimYFLS/gGwVBm5h7j2ZTdoDhiTFtV4nRbrt1fCaq6Vtwr6Z7Cn/bwNsT 2FdjeQo2h2vSxMbZc+wRSINIfsDs5tDOOGGdH08Qqk4MdDc9UJNmCHnQOidfb7RbHMZT atGQ== 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=jiT9KYDx3RWtZOPtEp+4OpN+KsQgOdSJKLeTP2zJWcs=; b=3pJQO8WVry7oRbwmHG9eLBRp7gPsvbA93sBDyFr0vllYmqhcF7LHU1uTlTdgailxoO cjLsv/mmsGQcfA7zJgd+lroNkdkQ4QaRj3lKghQf2+rtZO0fzyUHdcpq7o9quQNRCkfA IoMtMDeg6xwNeHQL3piSjjHzsuFWUKTKxuZyS5/+tN1UwwFy+qASYvNMHx8klvPM2zUy +YlAB5y8CCjOh3SNROouLIXy4hKVXW4sBvFTw1/pHRoPAFsSSg07HJVR/xRJA5vzISiS RfHsU8T4cjqugRaRgUx4GRB6TNEyWYWyvr5L/BDN7FAG5+tU3QGEw0An/JaJi6iklAQh oa3w== X-Gm-Message-State: AFqh2kpD3hBfDrtGn4Az3qLKVjDYf6JXG1QT4Mpi0Hk0LEaxTgRbL8VK RO0HOlbQO+JhOKxNxOpKdjD9OQ== X-Google-Smtp-Source: AMrXdXti9h/NrRYG5tbJrKi6OGMy8J3N5HQuTT5LyCzyDyi8oa6oBJO6uPoipFdscTyMJ6g5+ihMgA== X-Received: by 2002:a05:6a20:bb10:b0:ad:2c7c:9510 with SMTP id fc16-20020a056a20bb1000b000ad2c7c9510mr10966527pzb.19.1671801952092; Fri, 23 Dec 2022 05:25:52 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 05:25:51 -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 2/4] ARM: dts: rockchip: rv1126: Add rgmiim1 pin-control Date: Fri, 23 Dec 2022 13:22:31 +0000 Message-Id: <20221223132235.16149-2-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_052553_730282_02774BF5 X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add ethernet pin-control for rv1126 SoC. Signed-off-by: Anand Moon Signed-off-by: Jagan Teki --- arch/arm/boot/dts/rv1126-pinctrl.dtsi | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/rv1126-pinctrl.dtsi b/arch/arm/boot/dts/rv1126-pinctrl.dtsi index 4bc419cc1210..b77021772781 100644 --- a/arch/arm/boot/dts/rv1126-pinctrl.dtsi +++ b/arch/arm/boot/dts/rv1126-pinctrl.dtsi @@ -11,6 +11,14 @@ * by adding changes at end of this file. */ &pinctrl { + clk_out_ethernet { + /omit-if-no-ref/ + clk_out_ethernetm1_pins: clk-out-ethernetm1-pins { + rockchip,pins = + /* clk_out_ethernet_m1 */ + <2 RK_PC5 2 &pcfg_pull_none>; + }; + }; emmc { /omit-if-no-ref/ emmc_rstnout: emmc-rstnout { @@ -61,6 +69,40 @@ i2c0_xfer: i2c0-xfer { <0 RK_PB5 1 &pcfg_pull_none_drv_level_0_smt>; }; }; + rgmii { + /omit-if-no-ref/ + rgmiim1_pins: rgmiim1-pins { + rockchip,pins = + /* rgmii_mdc_m1 */ + <2 RK_PC2 2 &pcfg_pull_none>, + /* rgmii_mdio_m1 */ + <2 RK_PC1 2 &pcfg_pull_none>, + /* rgmii_rxclk_m1 */ + <2 RK_PD3 2 &pcfg_pull_none>, + /* rgmii_rxd0_m1 */ + <2 RK_PB5 2 &pcfg_pull_none>, + /* rgmii_rxd1_m1 */ + <2 RK_PB6 2 &pcfg_pull_none>, + /* rgmii_rxd2_m1 */ + <2 RK_PC7 2 &pcfg_pull_none>, + /* rgmii_rxd3_m1 */ + <2 RK_PD0 2 &pcfg_pull_none>, + /* rgmii_rxdv_m1 */ + <2 RK_PB4 2 &pcfg_pull_none>, + /* rgmii_txclk_m1 */ + <2 RK_PD2 2 &pcfg_pull_none_drv_level_3>, + /* rgmii_txd0_m1 */ + <2 RK_PC3 2 &pcfg_pull_none_drv_level_3>, + /* rgmii_txd1_m1 */ + <2 RK_PC4 2 &pcfg_pull_none_drv_level_3>, + /* rgmii_txd2_m1 */ + <2 RK_PD1 2 &pcfg_pull_none_drv_level_3>, + /* rgmii_txd3_m1 */ + <2 RK_PA4 2 &pcfg_pull_none_drv_level_3>, + /* rgmii_txen_m1 */ + <2 RK_PC6 2 &pcfg_pull_none_drv_level_3>; + }; + }; sdmmc0 { /omit-if-no-ref/ sdmmc0_bus4: sdmmc0-bus4 { From patchwork Fri Dec 23 13:22:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13080989 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 A4C72C4332F for ; Fri, 23 Dec 2022 13:26:40 +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=LZgLO/BSY2ZwDVWLNJiul3D/v6BgWNiK6dT4VNXIVxc=; b=24W043cRY5rtav +BgqDNkkpyCSfkLBIxFEtHbLb3XbSuwtJWI5aJ3v1KZ/DrZyWv66MXGTkdEPVcdhk9yHtPzRtQBqH Hwic4JOXUSDIZ8/8V0yC7mWRx38WL50Gcub7t9zuyzr6at7SwLQvtXYukIu4T1uTQDXrTZT6x1BoU Kq1agys5GMLwJgmZPqfufdA/dmeaVavmDGScbQrYRtxw5cHKe0edHvslIqr4cRP2CaZH2sH8WqedU ed5IBAjZ9vTdPeB7Zd6VCJThwWAbzgPD9uq1bmKsn1rbCEPJq4xR0v7AUIVEbXP7THV1m9fckiQq3 Ym1gsHfCC+gtP71zoyFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i4D-008Nvx-Vj; Fri, 23 Dec 2022 13:26:30 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i3i-008Nh1-Pa for linux-rockchip@lists.infradead.org; Fri, 23 Dec 2022 13:26:00 +0000 Received: by mail-pj1-x102a.google.com with SMTP id o1-20020a17090a678100b00219cf69e5f0so8831997pjj.2 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=VAm6Nw59e7rktMikdP8kkQ1cKmwSsxWQdIgJ3UKV0sehu4mgG2Po9rSm4A5jvsN0HA KxgGzYNEYqm+MaBTshO6jhRo0WmMs/ObLAqgF3Bqi9jbJ+myQExAMCnidRDjCiHVVXBc Ds5+bbGB2A+mvoa06PAa3hegJahy6vQlC38m0dbl6iXwqrBra69vcxEnYz3ktJ+8bC2R DLI1/jwKq6oNmdnTY1hrgiLlFnG1UqheU1CnJWPeRi01GLwTqv0X4dayDolVuZSK7WL8 pewEtfxAJv6vQE5w7fVXK/Cc6dHAY2YaAiGqMzwixZmal9BWtguRZb+DsqIXsvn02dHW Jvcw== X-Gm-Message-State: AFqh2krqCc1d6ohlL9Lwm+qcY3Ru9JIbVPTZoPduBcGbz23AcBUuqt4f DBhyQCp1Bo1VVQwhVuiYVdgewQ== 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_052558_888631_2EB5243D X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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>; From patchwork Fri Dec 23 13:22:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13080991 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 167E2C4332F for ; Fri, 23 Dec 2022 13:27:53 +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=yHVx0r1JWryALoAV6HDqc+jsaB5QLYsDZ/EZoWnZ4n8=; b=shaiafjcpRYwxI GBfSgmvUG6wvWN5CJeImrXFY6e2ABfxTm1EPGkxgiOOkpd8GTYykr0my+Z6TMHEc/CF90o3EzK2Xe 19Idc7LkoKBlwI7x1OdppBnza4mkQ8O/UAqos+dNWZ3ZH4nV3bfW2yY6fIQ1ulF4Wgo/p2Uuff6Ll Eo2ecjA553lu5NTQvdPuLDG669zqd/sUdQJjUezC4v2e2moxn4A6cA/C/9faa3Lc8ADysqo/PvZGD 3I3skvPbox09Ci3/6kKAyb0CTZ/ZlysYXkeTSKL3OdqmsxGKf8PW++r7N4coSaJZga3oKvIl8Z8SY aEod0G5+p1ykkAU0SLKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i5P-008OWs-Ms; Fri, 23 Dec 2022 13:27:43 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8i3p-008NjK-AC for linux-rockchip@lists.infradead.org; Fri, 23 Dec 2022 13:26:06 +0000 Received: by mail-pj1-x1032.google.com with SMTP id u15-20020a17090a3fcf00b002191825cf02so4984285pjm.2 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=woRNPGMvRMoo9tQ1gprxU3vxICM/rKkam+LFOAhA4wbGWTEVIIaGb4wOKINQ0F7Stu 0sE6JpcTQcd9RdPiPp16Ma+Qjy86IAFE/8d5qis/beqNYzvhdb8WdedlejN+SegEouuE bIoKGP8AcPXgaRpnsT565wCW9eJ4Azdm7EWr0dyfZBambIdMGknHxWvB4Zm0WWZz+G7R n/s+IBon/T9zx7CQI59gy4rHMlPpkwdOMOFdxEiKrUkX1HkTWijmfO0WMK5rN+YBfavx tEbg7utud+6EKd8tsNOrnz0XKJ8EOf3OezQZbn1URzMX2yg0BHsevSQrdYRlH4z6g8vn fHEw== X-Gm-Message-State: AFqh2kqO0ZIHhSxoxq7XdHrgiyC+e7+sWGp2wLdgrs9trMrhNl1MDNF2 +44iBmrfIryXjCezWrQKat+rlw== X-Google-Smtp-Source: AMrXdXstf28lz6wStpgfgaW5YWmBqBdWkZ+eYdz5G3cg2Jyd9tAARuoLOZ70D/dM8etR+9KmRD+8sw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221223_052605_417897_564DCA3E X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.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;