From patchwork Fri Nov 11 09:42: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: 18618 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp643571wru; Fri, 11 Nov 2022 01:45:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5GIPOlQWENb3oWVGIaU8fsqarLL863Q7ZreErJzMQP6nT6KHSMfX0Z7KDCTpEmtJmSnp++ X-Received: by 2002:a17:902:6b89:b0:188:5688:828b with SMTP id p9-20020a1709026b8900b001885688828bmr1778934plk.129.1668159941339; Fri, 11 Nov 2022 01:45:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668159941; cv=none; d=google.com; s=arc-20160816; b=0N2ZcSv11t+hjnqISTxqk96w8YsB+icnPqVMJ7XgnTztg/uyc1ESxjP6yVpA734wfV C7z1Ux5t+bA+pe+X5CpwTjfwX4CrcPzUBiinRRwwscUNdvKJ+mrTO5eVT+WZazmG45A7 elf8X5pwgKxWZA9P6M/77z9G8lWbM7FTe2/o9sJGo9IAYFNkfTqqikjN0hQodQL/wsc+ S2i7iaNTgpr9EBqNaTf1zgaBzGgIseLXZTnBFzdSbciORs2hUu4ghSCyCzl+F8Rmqj4K Yw0Xel6xi30Io/b9O6qZ+ENtTWAbxUXTIL1L95b0UVjrh1T3n04FpX9SBambXWkwMjUz jebg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Zy9kRwEDKOwzUuzNDwbNK6Ls9wmAWU8wrTb8CY1ASBM=; b=i7L4BVDQ0vR6tAuANgQJbMNwq6cjGLp17AJbG9fi+eKAJ0zjuE9qSTbKLyBDKFeRfb nIDUVYA600tlzAAy8a1Aerj3VRRtS19TeIKvqD301hLCnZIDgYVN15PFHDVwjNEkuTmp h3EFv7Bpl6VnSNVKXd0cyDox83hgHds7Z9ax1xrDJpZ0RZLr8bxOmwekGqTXd1TY7PO7 GiqcCIQMfFrVBiNCpI/wVG9faQy2jouXLzYQ5mcy/UloQXNWmj7fKQHEPrTGwROceNtK 1GF8oZ1V3wwgrz7BoJFmCdpZDBQl9OKaoTF2g4Xb0qRZAGfqN6Zgzde/mWR3Sew9lRFF eGXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UrYniHry; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bh8-20020a056a02020800b0046004666d82si1889055pgb.497.2022.11.11.01.45.27; Fri, 11 Nov 2022 01:45:41 -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=@gmail.com header.s=20210112 header.b=UrYniHry; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233528AbiKKJnE (ORCPT + 99 others); Fri, 11 Nov 2022 04:43:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231235AbiKKJnD (ORCPT ); Fri, 11 Nov 2022 04:43:03 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EE02654E3; Fri, 11 Nov 2022 01:43:02 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id v4-20020a17090a088400b00212cb0ed97eso4254438pjc.5; Fri, 11 Nov 2022 01:43:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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=Zy9kRwEDKOwzUuzNDwbNK6Ls9wmAWU8wrTb8CY1ASBM=; b=UrYniHryQrt1oClRFAxO4NM+NTyxw9xTdQt/tkBzCt0JXKQGCjW0kEvDc+g/dhWFxA kTju6QYgbkEEWUEXYgQ4ASkeuc+fcO/hG8ZLC8HfcQka1+ymUzo8avwj5iUAU6UFlTBZ SSG9U27np35cWvCXoFcrJIrIFlLmwdf9qTSmPTL1vnD3ZSN0LDFxJuD8GUz/+d0+IYN0 qBgLo1yxsMiSAqS4gh06lPjWLswAlUjSSHP8oxMWb+lkBXfna77cBoSED+JUk9gUQWsG 2220ENr9ojjkMaxJlcRDFuTNaMvyu5jCO61MBbmrkF7vbu5sU8/OVXNoxH5KWGI1sm6w ZnOA== 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=Zy9kRwEDKOwzUuzNDwbNK6Ls9wmAWU8wrTb8CY1ASBM=; b=p6QeYZi04IZrpIx3QzWBro2kUqruG/iC8Q3sV+zosIpz8n9Do/d5Da7wVPid89Plqm 82GbDwfGp3OhJHXMvRXFZEuDFAgOWmjnKS3RBcsyXSjI9B2sLbMjP1wQva/xppRcF3bg 1KA+Y5+NvwjLIG0QZOf+d7d4vBn/ynrhd8js2zG19mCGiTYyWeL91yqL8h1vcZnR0s5l SMSKG/MTDe+fq79ATuNwbyDTPj7x+pme9IhFnxdw06uQqEzsTsW2J81QfWpT0mk1DzaC pblCCbQt6Ox+WWWul8CaPnKaflU4Y6fhR4ll8iebgn0ggZN0siINiWZ1wjeXJSaf3zfX f+2A== X-Gm-Message-State: ANoB5pkBxuTWI+iawC2JfvG6IIekQHhyX4pZiQQPOlBB7hS6psnTBHPB SPt8bbJdoF70aDZOGPGOShA= X-Received: by 2002:a17:902:d18b:b0:186:8568:be82 with SMTP id m11-20020a170902d18b00b001868568be82mr1510898plb.110.1668159782097; Fri, 11 Nov 2022 01:43:02 -0800 (PST) Received: from localhost.localdomain ([103.51.72.74]) by smtp.gmail.com with ESMTPSA id fa13-20020a17090af0cd00b002086ac07041sm1188450pjb.44.2022.11.11.01.42.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 01:43:01 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Anand Moon , Chukun Pan , Michael Riesch , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [linux-next-v1 1/3] arm64: dts: rockchip: Fix gmac phy mode to rgmii on Rock 3A sbc Date: Fri, 11 Nov 2022 09:42:33 +0000 Message-Id: <20221111094238.1640-1-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749192478538931080?= X-GMAIL-MSGID: =?utf-8?q?1749192478538931080?= On rk356x ethernet phy support reduced media independent interface (RMII) and reduced gigabit media independent interface (RGMII). So set the phy mode to rgmii. Signed-off-by: Anand Moon --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index ea74ba32fbbd..72e410e3aca8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -253,7 +253,7 @@ &gmac1 { assigned-clock-rates = <0>, <125000000>; clock_in_out = "output"; phy-handle = <&rgmii_phy1>; - phy-mode = "rgmii-id"; + phy-mode = "rgmii"; pinctrl-names = "default"; pinctrl-0 = <&gmac1m1_miim &gmac1m1_tx_bus2 From patchwork Fri Nov 11 09:42:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 18620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp643623wru; Fri, 11 Nov 2022 01:45:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6YkHL4zu5/bJ6ZQj9sacYaMNM0Hhh3wwes9nkcSKWSuCw+Oprju5dSx/ka/eFcB2fBxWcs X-Received: by 2002:a63:501e:0:b0:464:85db:29c with SMTP id e30-20020a63501e000000b0046485db029cmr915544pgb.600.1668159948810; Fri, 11 Nov 2022 01:45:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668159948; cv=none; d=google.com; s=arc-20160816; b=0ya9fv0kXimTFC2JBmaRjz3PzvNaDRaXdvVUf7QRDaDR0hsOrKmwAz01eGobo3Ckdh 1h1mnJjYchjOfoGhICNwaroTfJov4nnZfr/9QtmdYf4WdT2nlc3fhdKe7XIntuNEh5HJ NLH+xgoxinBTIxqdPLIKJ8SuxAwMkiyUyz2ZMQpz8YWe0rNaSWolxfLRUvbHTGVo7jJ6 75YtdPA1DPK8ft9Oa5Y5OOcy9xmDqjfCbDecaEm0lWzFoORBBDNqzLEq2t3r7uVDH7df SncGK8AH62Dx7i9fwK/kplzv4Iaq1OutXnG96I9kpz39YqRP73/ujqnlPd7I4gR6D7kR 0Yuw== 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=pyDKQpZMzsEhp0LAIu0OPkD/FuQNGjCcyBUAqhhwqak=; b=IKYCMCiK8y3RRpPy160ESink6RCHgFNchTtWqPZKzxdCWnoTTackSwcBVY0b8y+JKw RbEZzZtjwHEr/NcHQ2QxNxKvdXeU8+2JObBM1dmnDUFST5lsSasO6awexGzRH7KmlFhu LwMGdE1oMphATuva46jvtzw9ZwMY/znEgIBzREDKKvltYNFQeUPtwVXUJ4SRchDPFvUQ fK6tfNhZ0wzvMkgGeRHoidlYqW+qrlUGi5FJ1ChvV5rVlQaBFFE5bk2rVqGEj+GyRlMX SUWvtowl5HHTIvjFgVRC+xUnHpbKsiqZQKD4pyXonQsKxwBS1QfE0N90kFz3KBiZNuSs UtsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XRP4geMZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a170902d51000b00174b83659fasi2165903plg.502.2022.11.11.01.45.35; Fri, 11 Nov 2022 01:45:48 -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=@gmail.com header.s=20210112 header.b=XRP4geMZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233671AbiKKJnN (ORCPT + 99 others); Fri, 11 Nov 2022 04:43:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233670AbiKKJnJ (ORCPT ); Fri, 11 Nov 2022 04:43:09 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEEF5729A0; Fri, 11 Nov 2022 01:43:08 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id z5-20020a17090a8b8500b00210a3a2364fso7543763pjn.0; Fri, 11 Nov 2022 01:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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=pyDKQpZMzsEhp0LAIu0OPkD/FuQNGjCcyBUAqhhwqak=; b=XRP4geMZx6kjuwTuwCzNE3NGQvZSPEpgUGPUs/on8NHxBiXRo40j+eGI6CUVyRP1vh QZPNUwTxiNDvtyoAg5z8UV4Tiye9mGB7m87FISgzUQdPRGluBENb9zLf45DZE3LcOmdu mCC052P4k0Zu+R8hCZqYWXdOvMuJk1LNtYQaWw0Y0QuPXRsihOdIAyH6ZEuGipMuOHzR 0DINweUKaO2BXGVbpj+H3C5I0C5ZURPxqV94G4YeixQ34BWrKbUubzXncGEsrdxnUXGw YujkS7lHGqU8R0QeRZ9N3RsYmsU2Fg7GMI7ChqIWsqmA19VC1JU2dcSRshVUe9D8R4nq P+yw== 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=pyDKQpZMzsEhp0LAIu0OPkD/FuQNGjCcyBUAqhhwqak=; b=K7EV0slOU0Ge6wY1rhSCLizCJohN/oDbsxRcoItkdjFtqssmaSODtgOTIs49dSLUkB aoOjTa/JV1sSYdwyEPW7EoYZ8GlPcU5lLIONejbIjWEZp3PkUz3yzpR45ZHN1W3xlmKp DvMXbfe3ir8Q4psw/8S5FZo7HtuYaANjTl+FkydkqqYIpewsIpv7A2RPNAGXXzD/+1WM M5yqQ0JAI/vjPbHQc34IBNDSoRTjS5E8B4Jb8h3khunrSHMcFpZOhcJ4jPhbMuMV0Ux4 4k4q+A/wd06iDb80LruspsQOqKyruY85ArOoLaXYAWSotH1RJVHLZcp50s7olXG4ZFCd G9GQ== X-Gm-Message-State: ANoB5pkQrlKY4Wo/FnViiftO+d0PIP5TOfCTvmNZxBH13odMc/0q0MOO +Dyog7LXU1H8rwKahpGKJFM= X-Received: by 2002:a17:902:e54d:b0:188:4ea8:a685 with SMTP id n13-20020a170902e54d00b001884ea8a685mr1521777plf.71.1668159788465; Fri, 11 Nov 2022 01:43:08 -0800 (PST) Received: from localhost.localdomain ([103.51.72.74]) by smtp.gmail.com with ESMTPSA id fa13-20020a17090af0cd00b002086ac07041sm1188450pjb.44.2022.11.11.01.43.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 01:43:07 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Anand Moon , Chukun Pan , Michael Riesch , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [linux-next-v1 2/3] arm64: dts: rockchip: Add support of external clock to ethernet node on Rock 3A sbc Date: Fri, 11 Nov 2022 09:42:34 +0000 Message-Id: <20221111094238.1640-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221111094238.1640-1-linux.amoon@gmail.com> References: <20221111094238.1640-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749192486621910130?= X-GMAIL-MSGID: =?utf-8?q?1749192486621910130?= Add support of external clock gmac1_clkin which is used as input clock to ethernet node. Signed-off-by: Anand Moon --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 72e410e3aca8..16fff1ada195 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -32,6 +32,13 @@ hdmi_con_in: endpoint { }; }; + gmac1_clkin: external-gmac1-clock { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "gmac1_clkin"; + #clock-cells = <0>; + }; + leds { compatible = "gpio-leds"; @@ -249,9 +256,8 @@ &cpu3 { &gmac1 { assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; - assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>; - assigned-clock-rates = <0>, <125000000>; - clock_in_out = "output"; + assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>; + clock_in_out = "input"; phy-handle = <&rgmii_phy1>; phy-mode = "rgmii"; pinctrl-names = "default"; @@ -259,6 +265,7 @@ &gmac1 { &gmac1m1_tx_bus2 &gmac1m1_rx_bus2 &gmac1m1_rgmii_clk + &gmac1m1_clkinout &gmac1m1_rgmii_bus>; status = "okay"; }; From patchwork Fri Nov 11 09:42:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 18623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp643770wru; Fri, 11 Nov 2022 01:46:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf49RQym8O33M+18vobWxppVimE0cJv05otZi86AtjeEWZCiJG0FhwJXQTWhiq8esecCwO6g X-Received: by 2002:a17:90a:1b65:b0:213:8283:ac7f with SMTP id q92-20020a17090a1b6500b002138283ac7fmr978301pjq.220.1668159970705; Fri, 11 Nov 2022 01:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668159970; cv=none; d=google.com; s=arc-20160816; b=TNH7qPR4jTSSx12dZjw38RG+ezlKUwqRwHf4XaEiZ9mBytZKvy171fU+MXzvbH/vYT xZWQ6CUJKsSWvasxc1qCAGsuxzQ3GJWQ1WRpK7Dfor2LMh9LPRZfUQm5SZUu2MIhFqA8 pgc0UZ2hJRODitnpEhi66djiK9sGYqhfP9pf2g+dFN/arTjYuxFNlhCNEIgcPOQjiLhb n+1kaG92n9B29kgIPU8a+2R1uRiAsYc/1HZHY9BiRBsOQUKtJeX1KLr4iMs0k85uztDa autjCPGst1gz56PSbAMG3zcBmy0pIrJszLS5k+4ImnrAom4gMU3WLP/q65eSSaPmVW94 AMvQ== 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=OJCmo94b1oJ9vc0/hCwgxQah+/q6uvuZ9wtDIOuRZ/A=; b=H6PoNUoOQZGXfgbvKnb8qdA89EGuFs+3lo85Xd47/wILr4UgjP4URiRl8tvLo/Wdq7 NbG7EGeUnMeST7MGiE87IpDQhpdqd7r0zG8/l37hDjBA2pLZU8mASHnBmJ8jrT6GXv1I uZ6AZvC3E+k/REMKW+HsGRGz+k+gO0HrgmY6FzGqzWhys3sTIr0S9ewX7rX6pVH5vewM ccL9hr/sGEwiQZX0HJzd7GlmrnqKsvXNWTb6BYCGnCebl/hwa6z+pCBm/UmwAR43+VtM Hoa4h9nSU/EzWXw6mf2Q4yfsuE60OHXNJMFGy7vJLjhf/DM5JzrNqSeQefKWv5HOCAzg CQ8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ni+fvzQC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f127-20020a636a85000000b0045a2b6e1192si1933102pgc.233.2022.11.11.01.45.57; Fri, 11 Nov 2022 01:46:10 -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=@gmail.com header.s=20210112 header.b=ni+fvzQC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231778AbiKKJn1 (ORCPT + 99 others); Fri, 11 Nov 2022 04:43:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233670AbiKKJnP (ORCPT ); Fri, 11 Nov 2022 04:43:15 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05820654E3; Fri, 11 Nov 2022 01:43:15 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id d13-20020a17090a3b0d00b00213519dfe4aso4288567pjc.2; Fri, 11 Nov 2022 01:43:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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=OJCmo94b1oJ9vc0/hCwgxQah+/q6uvuZ9wtDIOuRZ/A=; b=ni+fvzQCq6/9nD9W/JZrMrtM1lUktOy/aSft4Q/Qsd7BxmT4A8kPvgtrhKu98w1874 UtqN7jPJsOq3PvlCK0/lRnM7/uVZSHteJHOGoCXQjHHxHpWaA1dbUUFih+Tezat7JNfT vVJG8qnHkHxRDrSl8eR8NZRuM7cDPOP8a8po/S/tJJzumvc7bH07zbUHr+G+Fo/kWLHj Sl3EiIknP5T+14bdwNEhYANFgwRt9feWSrUl8SYLrXclVhmG7lJP5oZTXdEV/VnBfEmL O4Rb3ynKqxPSqp4KOXIu83Hbqo2zMc65IntCrcs+tg8ZXTVZLBAij84n36zYIRKLUSTB DJFw== 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=OJCmo94b1oJ9vc0/hCwgxQah+/q6uvuZ9wtDIOuRZ/A=; b=WbCB/IboFJ0Qge4RL7GmejPuHZHXWU+TUeLZ8qnU19rv2my3YSnlrjeBJdzYFUMW2x 1M99RwWoxz+VuAMFdJzGIxVMgIoXGMpwJj7tMlBbDyQFnvF533Q4E7D9yA7MZ3Wbqz4B MjMW6txG1oxcsfztlKmZJf6CrqHmY5ZOb23FQ+QMxUOQfWfAazV51hn17eLoeGiNygHi xmxazNBhCSApLmvAJ+QmQ9JwMaDbeiRF4Djt8cEAy96+4h68+q/PDn0aCeAkvSejd7od R11blnETN0SdzELDtVkXWHMeF3NUCnZldvCKPDnH9STEbl12iti6MeoUJ21NJIPUBzD/ Bznw== X-Gm-Message-State: ANoB5pmrOyZTaTpag6rPAXBJLprP/lSwkQ5Fw5a+CZXLO5dTVcYKHIj0 /gCFicW0y46LsrKAbl4WRRI= X-Received: by 2002:a17:90b:2710:b0:20d:48bc:6666 with SMTP id px16-20020a17090b271000b0020d48bc6666mr1053055pjb.98.1668159794615; Fri, 11 Nov 2022 01:43:14 -0800 (PST) Received: from localhost.localdomain ([103.51.72.74]) by smtp.gmail.com with ESMTPSA id fa13-20020a17090af0cd00b002086ac07041sm1188450pjb.44.2022.11.11.01.43.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 01:43:14 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Anand Moon , Chukun Pan , Michael Riesch , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [linux-next-v1 3/3] arm64: dts: rockchip: Fix ethernet reset node Rock 3A sbc Date: Fri, 11 Nov 2022 09:42:35 +0000 Message-Id: <20221111094238.1640-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221111094238.1640-1-linux.amoon@gmail.com> References: <20221111094238.1640-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749192509340675030?= X-GMAIL-MSGID: =?utf-8?q?1749192509340675030?= Add support for snps,reset-gpio reset ethernet gpio pins and drop the mdio reset code. Signed-off-by: Anand Moon --- .../boot/dts/rockchip/rk3568-rock-3a.dts | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 16fff1ada195..9172cf60b867 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -258,6 +258,11 @@ &gmac1 { assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>; clock_in_out = "input"; + snps,reset-gpio = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + /* Reset time is 20ms, 100ms for rtl8211f */ + snps,reset-delays-us = <0 20000 100000>; + phy-supply = <&vcc_3v3>; phy-handle = <&rgmii_phy1>; phy-mode = "rgmii"; pinctrl-names = "default"; @@ -267,6 +272,9 @@ &gmac1m1_rx_bus2 &gmac1m1_rgmii_clk &gmac1m1_clkinout &gmac1m1_rgmii_bus>; + + tx_delay = <0x4f>; + rx_delay = <0x26>; status = "okay"; }; @@ -583,11 +591,6 @@ &mdio1 { rgmii_phy1: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x0>; - pinctrl-names = "default"; - pinctrl-0 = <ð_phy_rst>; - reset-assert-us = <20000>; - reset-deassert-us = <100000>; - reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>; }; }; @@ -625,12 +628,6 @@ vcc_mipi_en: vcc_mipi_en { }; }; - ethernet { - eth_phy_rst: eth_phy_rst { - rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; - }; - }; - hym8563 { hym8563_int: hym8563-int { rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;