From patchwork Wed Jan 11 06:48:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13096134 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 597FAC5479D for ; Wed, 11 Jan 2023 06:49:19 +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=yC7ZRtLQWgcVwSBlMOxTfMmLoN4awY11WSnBgJwZHQ8=; b=13EGtP6D/pRwqK KbbBP8KEWJhcPYVw9CIPUsl510fc0syq0y7Ey3CcBJTtz+Pa3svdBn5zZ3JCS4EHMDAhtJH+ac3Rk Hsp8VFzXpW4oT08hgFgH8/8GUcQTZVA3IOEpYqPuMP1liaq2+Fg5Qj/u+aOsyeowhfT5HVjSnafCl labglDbCV/+BfuZySlO6PAd/EXZf35AXRRp/jHRy72ngmx+Mvw9hL3Vnz3SRDAx/IWSA16Pku0Bdg rrF9X+tZ2U5ff9uxV7utPLf0HMSi6uSqWUtpjh6tlK1vBUdPedXoMgN48rSAGwyoWzAo3uTqEvY2k X+kdgCIj/2T9PjmGd36g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFUuy-009tm5-DD; Wed, 11 Jan 2023 06:49:00 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFUuv-009tkw-4t for linux-rockchip@lists.infradead.org; Wed, 11 Jan 2023 06:48:58 +0000 Received: by mail-pl1-x632.google.com with SMTP id g23so214169plq.12 for ; Tue, 10 Jan 2023 22:48:53 -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=pOW8QelbsetPaHwWo+Ef2/hNHiC4Lmgaa/4OXCs14ak=; b=FYK9Tf0ShQColaigpcJHOo7vFiMPFrdVqQnpDLTxcUh4Xiw5b+yQrfLKNI+aJt8WjO 5ARpsUqtaSG1xKKo0UtTbatYGpQA0mjHwYwtKQc22FtK9+z2rQjDDN/3FSHmPgfwvAH3 xaDw/EgKu0vB2GriFiDeWrPFRj3baJj/VLuNcsb7VoFFjaohvC2UX8TR5W2V+HesZZBe /AQLQyP3CndA8SZopFkNjQD1ZyHih7NB0ClwyevKstmyQz3mOuRDZWiSwL4tRn1Fw0U/ ROh4d/UBy67bWvZZt3E6IM9gIGR0kFyc28NUMF542nowL4zXOXZzcifx2SOcxiF5bva6 QcCQ== 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=pOW8QelbsetPaHwWo+Ef2/hNHiC4Lmgaa/4OXCs14ak=; b=uZ37RbGWjs1oyCm2c4aRPy3nAUlDml32iuMoC5cRj7WU23WYqXb/t8ExDhXc3x940N Pl9qbU4kCglJyGXtdn6UuX855fChlMRwX54yIh8bYZO2fP2rlesdamGOfuKqvSL8ysPX lXPInAPl8uMb94us67n9etfX4s1ss2LKgsImzuxAplFixYG47kG+ERpZWL6zvPijFVRs 2f/Z/BySou4LrGqgopB7IBUyApTZxFQQnFX8mnEyEsdgnqk9Uwl3DUQiOg+OZDWmU1sn AHESd+7/sVn6QLw5B9ZAL1+9jiNDVaqYxfAkcrBTS12bX7j9jFwcyxymX7KYjLIMEiUM YhwA== X-Gm-Message-State: AFqh2krfVADZ4lBnnV/s6ZvF5u01telqq7jkvK3DUVnRXgjdiHdsQ2RA WINdVUidrdW94KOvctFcQUVTIQ== X-Google-Smtp-Source: AMrXdXuCGS2rYDB4jzJwTRppDihHyZElNqI24UqbsbR5HEpYSYpKgg00nyJo/KMf86fnvwCjNZiaAQ== X-Received: by 2002:a05:6a20:4b28:b0:aa:7d04:109b with SMTP id fp40-20020a056a204b2800b000aa7d04109bmr1480250pzb.40.1673419733390; Tue, 10 Jan 2023 22:48:53 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id m2-20020a170902db0200b001930e89f5f6sm9301861plx.98.2023.01.10.22.48.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 22:48:52 -0800 (PST) From: Anand Moon To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , David Wu , Anand Moon , Jagan Teki Cc: Johan Jonker , Rob Herring , Krzysztof Kozlowski , 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: [PATCHv4 linux-next 1/4] dt-bindings: net: rockchip-dwmac: fix rv1126 compatible warning Date: Wed, 11 Jan 2023 06:48:36 +0000 Message-Id: <20230111064842.5322-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-20230110_224857_431787_7EC37460 X-CRM114-Status: GOOD ( 11.72 ) 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 $ make CHECK_DTBS=y rv1126-edgeble-neu2-io.dtb 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'] Fixes: b36fe2f43662 ("dt-bindings: net: rockchip-dwmac: add rv1126 compatible") Reviewed-by: Jagan Teki Acked-by: Rob Herring Signed-off-by: Anand Moon --- v4: none v3: added Ack and Rev from Rob and Jagan. v2: drop SoB of Jagan Teki added Fix tags and update the commit message of the warning. --- 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 Wed Jan 11 06:48:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13096135 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 854F8C54EBE for ; Wed, 11 Jan 2023 06:49:21 +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=dxCjIeITU4MP0k8UmNtaUvxxP4rqGRtIooF5n0E8M6E=; b=vpGnUJV3lLjMhn hrvYXwcOi5OY6yGuPRExY5BmDUNbZjcTCnhz/Sx1HjB6yTx2be2qvjQLEoKvtf7gU5FYxyX6TebFu J00E9pxMoDKkm+lbwxBi7SxLHQMbNg7CvqNK52ESobxRH4UHEjoNRFJwD6eDI+IkmG3fMwCvUEJCb VCrT/o031MbL6J7f3cFTlPA3sJZn1BO4CaH8qAbAAlzYfZUrOwtnvhhdo7q2ppJYZIsp/LZqt4gy9 e4EQXHPHjzwAc2z546HEevBQ5gohaNOakynHcgdpK1X8Q+quB3wOFloJnvQ4q27yrG88/GQ8MQX89 a5k5vR2i6A16ZfsmlkUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFUv6-009tpo-Vz; Wed, 11 Jan 2023 06:49:09 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFUux-009tkw-U7 for linux-rockchip@lists.infradead.org; Wed, 11 Jan 2023 06:49:01 +0000 Received: by mail-pl1-x632.google.com with SMTP id g23so214396plq.12 for ; Tue, 10 Jan 2023 22:48:59 -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=7bXSluyR6+HkZvWRx0HI0+ZY45eXmi35qcMp7mPbfPQ=; b=HUA0c4rlA9s/oDEtfyUM//zLQjxNJ/G4WwuWx4cpNV7QunUiBAz0akFMekbjRJCkX4 kqluhqf0XGQ9hc4fq1YE+C2pGUydAKEj/jNWJlLY1lbrwDMKjdsbo/M4u9nRabIejGvi tqfyIDKzhtzYuK7XHYg3jK6JJlrV0C94rTEAe7B5k/U9E9GSDnHg65fbSlGQ9EokxfDc 3Al/Za1dqPJEx2MUhFYSa6zpSrEnVu3kCeTSbGlv/KE7NIyRvvf3Rv9M1Mp6FkzJFqD/ +fSnC1vV2QoStP3ye8So9+P8Fgggp5le1Vwl1u70bffKL8+0CyVkhK9Q8YXb3OnekXZD Htpg== 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=7bXSluyR6+HkZvWRx0HI0+ZY45eXmi35qcMp7mPbfPQ=; b=YXNhtlLgGUprxI6f22ceLqcU/Dk37q+zGTJt76rh0c7teKEcSuX+0FXRtq7wgsyQBc J7FBXcQDFhh0eBQD98eL30jQ2Z3SsYN3n8A3wVNnZS5ctP5FYxbSikXHiuy3BSHkO+y1 4a70WPam6eXzwFX64cG8qc8EwRDjnFpKpXG74xgJlV82vZ2OljAXBrOk+nCRLdQB/FLk npUgMy+2jrDAb0KibEnQKScI4pjJBQZSq/dXqd0QmOG2UcpmLW025JHK4yArwDDwuca1 8sV396lcoHkhn26vLKAijq65UuOa3vDimhLgc7vAKDRxgtyQ5/n3vs8dgQD5zrlHlEi/ euQQ== X-Gm-Message-State: AFqh2kqiJET8f1p7VVsToG9fIA6ZK8Jj8jhqdDq0TbQNmA1y27Qx2ehe kgIZ9GRq0mKwAYX/DBj7yHx0qw== X-Google-Smtp-Source: AMrXdXvFXs0kwnfQutgidNWLnKV4XCMpE4nBi/g/vsl2F1Uu5gJKKvY3R3kc60tz59/VVwIEgtyIZw== X-Received: by 2002:a17:903:330b:b0:193:30be:d146 with SMTP id jk11-20020a170903330b00b0019330bed146mr9484332plb.63.1673419739580; Tue, 10 Jan 2023 22:48:59 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id m2-20020a170902db0200b001930e89f5f6sm9301861plx.98.2023.01.10.22.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 22:48:59 -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: [PATCHv4 linux-next 2/4] ARM: dts: rockchip: rv1126: Add ethernet rgmiim1 pin-control Date: Wed, 11 Jan 2023 06:48:37 +0000 Message-Id: <20230111064842.5322-2-anand@edgeble.ai> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111064842.5322-1-anand@edgeble.ai> References: <20230111064842.5322-1-anand@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230110_224900_002837_E8C466B5 X-CRM114-Status: GOOD ( 11.05 ) 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 --- v4: drop Rev by Jagan: Both SoB and RoB of same person is incorrect. update the $subject. v3: add Rev by and SoB Jagan Teki. v2: drop SoB of 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 Wed Jan 11 06:48:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13096137 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 4471DC5479D for ; Wed, 11 Jan 2023 06:49:44 +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=7N4chC0ibolOkj0BGtfV2dZum1ScHiE2cIUCp7UYgls=; b=RWF10iZAZQfIm3 6KAr8JEvbtqYmE+onFdgiM/EZb229Gml4knwsGG17zd6mFkj9LR67CylnhTZu2xeGNcSl1lPl3DoA MyhvxZreuvSXl9HmKAgcESixTQL097KsxQJxr0Wxd6JqjQLgGh4f9GiZhs5/LhH/CStHjof4elq6A IhSoIYIpGTlRSM+nKqdMF7JocMeUMmV8vrVMCC/3Xu9oy9Zlq/dcp6ezUcJ8FqzPR5MXR/eYI74WS 7h3GK2piJSKCMuamsuJjDdkzDdGxUZdAr4si6ep/VEZKe1dSmVM4jrhh0TfrhBv54eHYHUgRx58QZ b5xSUMUWVTjK86iO44oA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFUvO-009tx3-Bg; Wed, 11 Jan 2023 06:49:26 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFUv6-009tos-Ny for linux-rockchip@lists.infradead.org; Wed, 11 Jan 2023 06:49:10 +0000 Received: by mail-pj1-x1036.google.com with SMTP id b9-20020a17090a7ac900b00226ef160dcaso14339388pjl.2 for ; Tue, 10 Jan 2023 22:49: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=v6oPssMQRYRXIYCOfMp0bkJRvG7DgiHOFHZTd1dGl0E=; b=Ie7iNftIr1QUxuimLann2hOzWgGdQRi29/xAeDcLQWDXd2OPzSnJMNox5qtKpj7gWJ UqUhfEOD/RidpZqWzu2J77YeDjJFV3YJ2mXLDeMVSlcWmwIydyucxiAlFs2cBKLlYsHh sFKcL4c7Wq2S4SxWCMkVLiPZuVsE1ItLIAluFxcdl34xW54zqNyg0zxqAp7hGd2fkPBM OzI5O+/qqIYMFMGkXZU2c0suW7B0HR2Dl8kM162w96wWvYf+FLwgwXzqz+rTNwVgutCz 8X/VXY5SD4ijNNWdPR5vAl2W5DIjIhqJ5d5grzGggKm3/9doqzDgQLRjY3ckWjFMani8 2CEA== 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=v6oPssMQRYRXIYCOfMp0bkJRvG7DgiHOFHZTd1dGl0E=; b=nIkppwEf1L5YeOFG638RRFjpzymvRxFFUAiY5rogcfxoSR5ZZ02KUHbAwf5EBxKAZQ +WaavL7k30lV7yX/3/L2bwTtBVUbUI7bPZ1OdlHsO8MJaC9YHclRuIYPkfZFqu2Lp5VP y4Q36KlU55p4BmVOWhz3MFEXNpi6lN/JJjWVbEyy6A4yLq59/XN+EqRU6HlXqZoY3bNU M7EJm4XsW9rxOsSEFHCsB1Q3c5Lc8IMIG80jUraI8aWJUFU4JLHYeK+ZVv8QtiVX0Xaj A1Zvr1Lk8moZuWRnIrRAF31eNrgRZrwH6VMQQt9iCZchSz9fJT2Jz2+3BAs9AQ7uPWgx +rVQ== X-Gm-Message-State: AFqh2krZrRJTrTfhAafePGpTrL85BKcZBTZuXCex8VmhZhAVVm5gC5Gn fjdShBF+GvqyRpgyfL7sYfCTqg== X-Google-Smtp-Source: AMrXdXvD28Q1bpjA2TAUIObCBGuW6pqghWR4+QjFqarx4Hf7Lggo09ttNj/cyct8l1yB315Yy/LFAQ== X-Received: by 2002:a05:6a20:c183:b0:a4:526a:3f25 with SMTP id bg3-20020a056a20c18300b000a4526a3f25mr90205897pzb.44.1673419746404; Tue, 10 Jan 2023 22:49:06 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id m2-20020a170902db0200b001930e89f5f6sm9301861plx.98.2023.01.10.22.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 22:49:05 -0800 (PST) From: Anand Moon To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Richard Cochran 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, netdev@vger.kernel.org Subject: [PATCHv4 linux-next 3/4] Rockchip RV1126 has GMAC 10/100/1000M ethernet controller Date: Wed, 11 Jan 2023 06:48:38 +0000 Message-Id: <20230111064842.5322-3-anand@edgeble.ai> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111064842.5322-1-anand@edgeble.ai> References: <20230111064842.5322-1-anand@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230110_224908_798334_B1CFB631 X-CRM114-Status: UNSURE ( 9.76 ) 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 GMAC node for RV1126 SoC. Signed-off-by: Anand Moon Signed-off-by: Jagan Teki Signed-off-by: Jagan Teki Signed-off-by: Anand Moon --- v4: sort the node as reg adds. update the commit message. v3: drop the gmac_clkin_m0 & gmac_clkin_m1 fix clock node which are not used, Add SoB of Jagan Teki. v2: drop SoB of Jagan Teki. --- arch/arm/boot/dts/rv1126.dtsi | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/rv1126.dtsi b/arch/arm/boot/dts/rv1126.dtsi index 1cb43147e90b..1f07d0a4fa73 100644 --- a/arch/arm/boot/dts/rv1126.dtsi +++ b/arch/arm/boot/dts/rv1126.dtsi @@ -332,6 +332,55 @@ timer0: timer@ff660000 { clock-names = "pclk", "timer"; }; + 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 {}; + }; + }; + emmc: mmc@ffc50000 { compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0xffc50000 0x4000>; From patchwork Wed Jan 11 06:48:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13096136 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 24E05C46467 for ; Wed, 11 Jan 2023 06:49:38 +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=z4nlORmYwVwmlwGU/N1wUZz1U7ryH0H3otUxfl7M/+8=; b=W4MwCA5Lw6fy5y dBKW//uNnGimOjpqQDVEz9LfUWfKLEWgMdZB5fHgc+xGBy2d6Yseb7m0QLNTBpFVhapqgkc/RlL6k hdxSa9Tms4Mh8k9zvGQQmDiNyFjtAAxQOkSub/wChkCNEN/7Do9YsIj4HYVVChKUWAEPbUjukfjV7 6K8pGaJydNngM0G7/826WXpuXctH855kxS62afbkOVkQh4jTCtUuVNbH1wcS59nazad3aRqc7tfBR 1/pdUDWp7DxRH5xREvoj+5uoZzKiQr4hTAh17AeoGhfmVjsXnfcO3BmDIZ6lWc4FtjceiAI+PnlK1 FSv4h1oYHIoYYwlQY5hA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFUvO-009txb-SB; Wed, 11 Jan 2023 06:49:26 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFUvC-009trc-6K for linux-rockchip@lists.infradead.org; Wed, 11 Jan 2023 06:49:15 +0000 Received: by mail-pl1-x62a.google.com with SMTP id v23so10896870plo.1 for ; Tue, 10 Jan 2023 22:49:13 -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=g6O+3B9iJZ9CCy3n1rtb8gBedSyHiR9ZlkmoYj+KH2I=; b=zQ2DBcbnZdTbmpOaEPsOOBckXPH0aYxDabSHu23Nc64Lg6WTcUjYacWJ49000sRqj+ MhGW/GZ9sCOJkKUXv+BQ0lvm10570rB5uHq0W+Z2HImh2ZvA6C3r1+0kdJ4ZOb5wNil/ IcCHfp1sgDXmCXkBV8AEscRjRBZCAKN1rvoQfFcDZ4lhZTQP6gCRMVRTGaGag9PrAA9o xYJc6g55cZ9KArT6N8bqOo6/YqaEYfrNhrpwKEsKRVisgF/jD7ZczNOa3tcar9q2P9u9 FcCk7yS6qkNSFcL6HLfw8HF473ixxhXl5i5OkJRIhzhw5DyZhgpHJBTmLqfl0DGZqS/+ SZ+Q== 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=g6O+3B9iJZ9CCy3n1rtb8gBedSyHiR9ZlkmoYj+KH2I=; b=G4SqBWuMVy8YRMw5woXSUHFb4Esf5mBEp6s9P3iEaxTdwi/NmBAeX00+bY96p2veVr +HBp5vmzdv/8j0vcRsch5qCmLKPpuSFtE7xlt9uf1VCCShuCC6D4zLljIOIuuCkXHV6p ccUTRgGVCToc+77Z09enNLPDCHhJbqEn9UqPoYx0gVeH+nbABisWZ6Ml+lT5KyKyfSQb 4WwuSmPr+FvyBYtly7yAhWn2UnvbTyM9vQZFVGY8Toi9FK0oQcEPWJfMzfikP4lIpQup g+E6FonCpJVY00LIegf5y4WAYq9TeBj43vaFOg0kRUmrYHV5LtwLBzQvODMKfaovA3nR +N3A== X-Gm-Message-State: AFqh2koRWUUHkIZLdF+Jl7/yV0WdO881fOkpCn5IF/BLY839sGBvRpQK oFqdiYa/Yy97vejTesoSLbejzw== X-Google-Smtp-Source: AMrXdXu2dxbPB5QdrNT/INy7sEKaWL92dHycLBjLklpQNgTxNQwGwtqj58osfflnN9NidTBsLaWW9g== X-Received: by 2002:a17:902:eb11:b0:194:46e0:1b61 with SMTP id l17-20020a170902eb1100b0019446e01b61mr2895869plb.63.1673419753115; Tue, 10 Jan 2023 22:49:13 -0800 (PST) Received: from archl-hc1b.. ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id m2-20020a170902db0200b001930e89f5f6sm9301861plx.98.2023.01.10.22.49.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 22:49:12 -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: [PATCHv4 linux-next 4/4] ARM: dts: rockchip: rv1126: Enable Ethernet for Neu2-IO Date: Wed, 11 Jan 2023 06:48:39 +0000 Message-Id: <20230111064842.5322-4-anand@edgeble.ai> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111064842.5322-1-anand@edgeble.ai> References: <20230111064842.5322-1-anand@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230110_224914_256906_D7F6C678 X-CRM114-Status: UNSURE ( 9.94 ) 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 --- 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;