From patchwork Wed Nov 16 20:01:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 21242 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp38629wrr; Wed, 16 Nov 2022 12:06:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Smw33y9lwQfAe0WVXK09vytmnSaBtmsPiTmmEgIBhpUgql8CCX1mvsHXq4aXLz62z74sh X-Received: by 2002:aa7:df0d:0:b0:467:c68b:b06c with SMTP id c13-20020aa7df0d000000b00467c68bb06cmr13665507edy.428.1668629181709; Wed, 16 Nov 2022 12:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668629181; cv=none; d=google.com; s=arc-20160816; b=Z71keL8mc3H5Whh+n3LeumwBCnzOrNEp7d8e6A+W31fdC4M36ziVZAERu0KcTVKqwt 0/M0nzCRUM7jbjMEzwvO4EW3DYn/3HXcvs0v2SDey+SvnkiRo4NN9MJ2/OK2ydvV2jWx jndQbQbFKF7BvV1KUx7qmU0s53MrUFQURr4eduVPHI3qHFH0+C3zUurn0TWmmNqNA7g6 LC8J6Ii91cmnrcYZfpsBICjUuID5rwt5gceSBbRWWMSbRFuWD+I9imN2Sb0PiM94+3A5 VfvI43LDwRlhFTCMKCBiJdAOfJ7b/TWUGF/Xe++Ik7sLnu6NLWEph2rHFnpbEYwJFGe6 QL5Q== 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=gWHeg8M1ItPKLADHrX13a52utCw4BMmhpRsIIQk2Fck=; b=IfZg4X87yEEcLYVMzkLWCTgFm7qQ4YeQkyLmcTJ9INk65Sa3HtVlk6O+lPNuUoEb+F D22uAtaAbEMdvOYMdhYUu16ISHh6GqBg0XLQIA6so72Rh2p32w7V0dsSuANtZkoi07tr qKV96uZUHNI+G8YF/VORDJUTrs/BxJASfFERG4jPawf6Qxt5BJ3NgNNraLUt+3/NOUwu Ndw4ulE/91MvIDpsCq5dhET79ncFq+U5t6kg05+CmLGKom7F9HB5P4n6Y3k6i/0kBUqU JsIdtCqgcGKy3ytzibUK+OoltHvJFtt5Tn6tjOB8sYcvSNy4JO3Oa91/xZ9Qk8NBBNaV lroQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XMsHoBVw; 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 sd30-20020a1709076e1e00b00791a37e665esi16320494ejc.10.2022.11.16.12.05.57; Wed, 16 Nov 2022 12:06:21 -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=XMsHoBVw; 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 S233670AbiKPUCh (ORCPT + 99 others); Wed, 16 Nov 2022 15:02:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238603AbiKPUC0 (ORCPT ); Wed, 16 Nov 2022 15:02:26 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BC9A63CCD; Wed, 16 Nov 2022 12:02:25 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id h14so17496154pjv.4; Wed, 16 Nov 2022 12:02:25 -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=gWHeg8M1ItPKLADHrX13a52utCw4BMmhpRsIIQk2Fck=; b=XMsHoBVwkTCzyxRUnxAnS4OFKDbb1cNra2uUSHWdYCfwL9DGCbnSB80aMn0s2RiSv/ dzgPX4ZLZz7WWLKdqaz/iMX3PYvnXcUaA+GfcKYixqUqO1KRF6V8B041ZZiWqWvWJyRs KjxLQ3Vfcjq7dCBSBret8vz3d2bVmpMplOdSDnlrtGBX7rhcfTReRFbwKa2w6z8qipXe oNNaCNmgrlR5CcasYxh5HGGqk8bm9yBmpMm224JG/biPZESuByYdmSlCtPPPHnZAyWmS e1T9vGJOgXrxPr/+rnxsgCAuWmUYP8EJHeiZxmeC2YJN+4J1NmjeQn3fX8/s2XEpeBfr XUHg== 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=gWHeg8M1ItPKLADHrX13a52utCw4BMmhpRsIIQk2Fck=; b=3hOI/UAI3J1wm7eT9Os5Rt41CTr8EFUFEq1glQefAxWBEauWPfZ3SpzWWqka+mxKDC sG1yqUog2c/9oQzIHvRoOOJbsGaBWruiv3AJVzeeQ2YBSVun2UR7AzKkJVR15HIscJbM goJvJyFzbXPUoXOn9jukw+41s0rYcID3Kf9Rgb1JiX7nNrxiGid4Vdph3SXgtvdNG+lD Pw9WrYBlMqEEc65ZEGTwYbFfvvArTc/fPCjdSJoakt21rNlgreIj+1K4+teghIg1J5E+ nILY/Zy/lkUO0Ab6oNCS/IWo9lODyBa0lNVlcz4gBEUGIBsudFneUZN4tO5WhEV1ysKf ukDw== X-Gm-Message-State: ANoB5pmxxK3fN69fihBZA9FVCeSvZe+jNt9eb1kw24yqv8mpVRxrmkSG D90zhmxccK80uHv15bIZUx1AIyfAwhn9Pg== X-Received: by 2002:a17:902:c94f:b0:188:712f:dfa5 with SMTP id i15-20020a170902c94f00b00188712fdfa5mr10049999pla.140.1668628945118; Wed, 16 Nov 2022 12:02:25 -0800 (PST) Received: from localhost.localdomain ([103.51.72.182]) by smtp.gmail.com with ESMTPSA id s18-20020a170903215200b00186a6b6350esm12423950ple.268.2022.11.16.12.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 12:02:24 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Anand Moon , Chukun Pan , Michael Riesch , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [linux-next-v2 1/5] arm64: dts: rockchip: Fix gmac phy mode to rgmii on Rock 3A SBC. Date: Wed, 16 Nov 2022 20:01:43 +0000 Message-Id: <20221116200150.4657-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116200150.4657-1-linux.amoon@gmail.com> References: <20221116200150.4657-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?1749684512706787111?= X-GMAIL-MSGID: =?utf-8?q?1749684512706787111?= On rk356x ethernet phy support reduced media independent interface (RMII) and reduced gigabit media independent interface (RGMII). So set the phy mode to rgmii to support clock delay, also add TX and RX delay for phy-mode. Fix following warning [ 7.365215] rk_gmac-dwmac fe010000.ethernet: Can not read property: tx_delay. [ 7.365219] rk_gmac-dwmac fe010000.ethernet: set tx_delay to 0x30 [ 7.365224] rk_gmac-dwmac fe010000.ethernet: Can not read property: rx_delay. [ 7.365228] rk_gmac-dwmac fe010000.ethernet: set rx_delay to 0x10 Signed-off-by: Anand Moon --- V2: Fix commit message and added the RX and TX clock delay. --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 5 ++++- 1 file changed, 4 insertions(+), 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..e1c75532dcee 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -253,13 +253,16 @@ &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 &gmac1m1_rx_bus2 &gmac1m1_rgmii_clk &gmac1m1_rgmii_bus>; + + tx_delay = <0x4f>; + rx_delay = <0x26>; status = "okay"; }; From patchwork Wed Nov 16 20:01:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 21243 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp38711wrr; Wed, 16 Nov 2022 12:06:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gEg/YpEXSpPd+k56DJ/ESqbi5kCEN1Ttq1n4iSNa16V+kKqxavemG8nlCipjECCJffdVU X-Received: by 2002:a17:907:77c4:b0:78d:2af:a818 with SMTP id kz4-20020a17090777c400b0078d02afa818mr18479764ejc.675.1668629192029; Wed, 16 Nov 2022 12:06:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668629192; cv=none; d=google.com; s=arc-20160816; b=rOPxQpstZttIgP3dSbgnMY9PqmGw8HkIUpa8eNJ6xim6wsnHOY6BVGSIWTqUic2nAJ my9I0ElpnEIFMoe8IOJAKx6O3gzmsEn24EaLvOWpPl+KomAQzGRgRQIe2SfFVmb0/umw du1hFI2QOThWxd+0TFsw6J32h8sbhDTN0pYJ9GUwMYaPjCkzmOq0JUakEmmTVWJQvrL5 dEXOBMfnPKZa1WtOlK6pKp+h8n5bEiQeqjzxsZ4X/+8anrW9wV4+rtDmpO1pzOZFJ6rf ooQkzotbwod93xDLrGLQPRgpkk5RkIgibUeKTHkt2fedovru1S55HaY5DQFbXpUEXck0 UspA== 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=As0fulMLun+eJjqjObjSTdg/PTBD9UNPaQIMHAXZOXg=; b=Y8pJQZuaz6/6fYARDecPxxE1HElcUcVnPJ7o/ITlSu1ypcu856h9f8cA20cg5E0Lkf S/J1v6l4r2tXydmKDzwWShtUTFqfe8tTQ2uDq8PICCpZIhkbaRR6VuSNP8VWyoSAf+rS 6Gytc/Wm80b/YKKS0w00EU6QxqWLUaS3z5/2aDiQD6TDY3MMUfP/y5jKaaLiO29n3TY4 48chsgHi9Ne0RDMyv4/JpvrbMOB6QnIZBmMR1AS7R5s8Tmb1xtDK5AkzCY97VGIfdEmb i5PI4U5wSWlgXwT/worwidUAqDMoqwzlQOSKR1xPkGhEPe4ySrS5XxljjmLKrr/A9G+F tueg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HF+WPJyR; 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 s6-20020a17090699c600b007ae4c686a4esi12957246ejn.159.2022.11.16.12.06.08; Wed, 16 Nov 2022 12:06:32 -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=HF+WPJyR; 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 S234077AbiKPUCk (ORCPT + 99 others); Wed, 16 Nov 2022 15:02:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbiKPUCf (ORCPT ); Wed, 16 Nov 2022 15:02:35 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 689D6657EF; Wed, 16 Nov 2022 12:02:32 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id w23so11009652ply.12; Wed, 16 Nov 2022 12:02:32 -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=As0fulMLun+eJjqjObjSTdg/PTBD9UNPaQIMHAXZOXg=; b=HF+WPJyRYMs597lubkXXvkdDma+90w/DWbM/ldOz6YR0pmeg3/ztGGIkmlIlb9vErS nLkLssypMX366ESoLasH3xX4jIb/d3PI5KNYYhpn7wjhV/81J/VMCw//RVp2PExQHVMP /UhkGVXOuZLhy/KZYOeyAgjZpSt8frCme9FgOy+5VP2uuk6Q7I3DrbpycnxZb+MWlONg g6VHarv+9bkOdWOIQ+Xt4kpq5KIew1mfIJ1xE9iTO2vzcSwJ0GcTm17t9mSK6qdpGtvx tzKLD9qGlBH59gUTR6EW5Jy601opo5iJKh69FcFHrpTn9HVXom4nItSUZXgLZaEJMiWG Bh1Q== 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=As0fulMLun+eJjqjObjSTdg/PTBD9UNPaQIMHAXZOXg=; b=I5+LDdY+UIcFnesATSsiDOZq+6sgjpUwt1kc4n907l1W+xEjYvKQLQ5Gx0CuFXSmXN 0idvvq3ppyTxMdEWDcSvoylQVseOepr0qHsCrhBYCjNJTkAgcxRNtG466oFAFDqi3zNK lXfyP02oFkXchPmw4Wq7SVuHVnZvw0nGAAZku4qW62O5VFROPFMrMBAPYtq8TkYovrXT fFBgS7UGadD25BWljyoffSHRAmjrNP00JKlmWdEJaYOoSdwT+H6RqG8DK7MpTDozOtGS mF+ZBXiDuFn7I22qpdMMs8miU0e4ytbRaWjaCZwnkwAPiXUPDxDuxT/9UjaOiDosK0wa eKHA== X-Gm-Message-State: ANoB5pnF8VhI54bq+Q4D9epud2mYNBd0yZ/x/so7lWEmcNbg7ehDrHFI rmZ7OKVV0KA8JnNMhmEXyiE= X-Received: by 2002:a17:902:ba91:b0:188:c395:1748 with SMTP id k17-20020a170902ba9100b00188c3951748mr10019993pls.155.1668628951901; Wed, 16 Nov 2022 12:02:31 -0800 (PST) Received: from localhost.localdomain ([103.51.72.182]) by smtp.gmail.com with ESMTPSA id s18-20020a170903215200b00186a6b6350esm12423950ple.268.2022.11.16.12.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 12:02:31 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Anand Moon , Chukun Pan , Michael Riesch , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [linux-next-v2 2/5] arm64: dts: rockchip: Add support of external clock to ethernet node on Rock 3A SBC Date: Wed, 16 Nov 2022 20:01:44 +0000 Message-Id: <20221116200150.4657-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116200150.4657-1-linux.amoon@gmail.com> References: <20221116200150.4657-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?1749684523339223277?= X-GMAIL-MSGID: =?utf-8?q?1749684523339223277?= Add support of external clock gmac1_clkin which is used as input clock to ethernet node. Signed-off-by: Anand Moon Reviewed-by: Michael Riesch Tested-by: Michael Riesch --- V2: None --- 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 e1c75532dcee..b848282ea005 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>; tx_delay = <0x4f>; From patchwork Wed Nov 16 20:01:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 21244 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp38777wrr; Wed, 16 Nov 2022 12:06:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf6B5X0pVk+wcXF5yzROb0v5U4F/X9r1C3R1v6LHReRY9vT3rlN8vwBJe1M2L61nniVk9HXp X-Received: by 2002:aa7:c404:0:b0:461:4c59:143c with SMTP id j4-20020aa7c404000000b004614c59143cmr19696994edq.85.1668629200334; Wed, 16 Nov 2022 12:06:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668629200; cv=none; d=google.com; s=arc-20160816; b=V6fxcRCUwB+dbnpfB9cgkHHd2ccpIFDxq+ohzbQhJeHuOoe4bilPFYPw8fcQVqkR5U tNGzh4dC0sIFy/7z8GUJTIYgP7wLvcdjiK5MY1cDLmw4GObk/Yb0SQFHsWTmxSoaJRXV aWQuA04g2gWyTzkuWq6RIyOnBYvbkj5/jvfyFx4TvyHtpRHrh3ULxBVm40eEa/pTJLWm HnxaRRmQfM95q7e6GX6E6nFOEo7Hy6DUXOOSinrKkDBl2lhj7UoOuPG9OzS3fakljlbi hWi8hmZNOPrSC8vMmrIVE7aLO6JG4HFJWiLbHvOTaolwu3Y174cSUG6SswZ2oBeItP7C vCEg== 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=9u48IeVxeYRpqZXDq8TEy2jgfthr+zPe9V44R0XXV6s=; b=wHsOoVESsXgXqW6mCbtDx56PH5HoI1dVnYkmh24KSjITtmY9vKQNv2er25SyCFjBp9 h6OGNr0zDdY6JOvHy6FVAduSwTQj/8ma0/0HKotHZ75gc8kOA+ZtucN/8SokzZVVdsCM EKj+ejx/GvW4Z/d4t1rNxKDKVtx4SMms5taxvNDSPjNtOrpMfZl3r7CDsmmXnm/isKnM ip94rHpG2HJwuNlwE3JX/DUFK67UykhwNS308xLVi6YG2rRDU73jJ1Qu1zj3O1e0q9jG 40sVaGw2X2sq69p3J8GXONsrONL2kiArrj4jLOfV9U+c7a/J5DuliLRVWvuUSAWBzNOz k7Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OJlre6S9; 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 u18-20020a170906781200b007ad96737de4si12021461ejm.624.2022.11.16.12.06.17; Wed, 16 Nov 2022 12:06:40 -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=OJlre6S9; 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 S229863AbiKPUCm (ORCPT + 99 others); Wed, 16 Nov 2022 15:02:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233955AbiKPUCj (ORCPT ); Wed, 16 Nov 2022 15:02:39 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04B26657EC; Wed, 16 Nov 2022 12:02:39 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id 6so17716845pgm.6; Wed, 16 Nov 2022 12:02:38 -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=9u48IeVxeYRpqZXDq8TEy2jgfthr+zPe9V44R0XXV6s=; b=OJlre6S9pakulZA+yEGpONatIYHUbfqM2duW/AMNUeogjFygAv4bC1gl8iiKIN6L6l 9V9rlywuoLnK5SwYcyVQS2YSTt3Kqvii4TqEmU2ENGMclvuydNlmNCAUteaOS75MjF/Y MhGThK8Twowj8WQeQ9lAWEYmiILMeQtIu+PiP3qqkDG6rsjtDicG+9RKXHykP+xknhc6 X6gs7BePV5RcqSFi1V8QY3DelJ/Ut7FesSt/BazrNm21n79ND4L3ithnApPPwZpaJJfM TAh28RRnZv87qP/NiskyIMIboOAh8QHacJG3uShCw95I0tDHwrsw/zQMQFyCOGnu5Bag R17Q== 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=9u48IeVxeYRpqZXDq8TEy2jgfthr+zPe9V44R0XXV6s=; b=Q0vMvJtCXwaL/Zkk7+V/mukgy/kXp2FOP1Z49bwMBolK0I0ZSAWEO9cn6ZF3GFZSpZ l4RIQp7DHPJv3qR09+XZWB9E0sQoWIWDHHAQRdmuyRNYGkPZfXC+xEqxJM2yyxhj+5kq stpUr3SZ9EYNhnqVMjPkRZw5AI3SIJMYP1KaQEjn9gOWwPM2/JEE5t+R3gvQ6AQyrlE5 +oJ8XmeTTr5mbEpZF5GIb5ibV2aZC4yS0NazqpAhyGwwhcjpDycnNh1ELdVb6tq2Hnq1 PLEpVJbqRJou61EylmvSow2mwBAqZtaeXDyKzSM3QRgZBEON8IsEmR1s4Lb06/TZrBrL 5EKQ== X-Gm-Message-State: ANoB5plGjdpzqCSYeErksrC39uibhz82YkbEOHxRpmrwUc+CRVhGwpK5 e8mqsAD031KKiEIw9d2fPSA= X-Received: by 2002:a63:5f4c:0:b0:45f:fc05:270b with SMTP id t73-20020a635f4c000000b0045ffc05270bmr21765809pgb.14.1668628958408; Wed, 16 Nov 2022 12:02:38 -0800 (PST) Received: from localhost.localdomain ([103.51.72.182]) by smtp.gmail.com with ESMTPSA id s18-20020a170903215200b00186a6b6350esm12423950ple.268.2022.11.16.12.02.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 12:02:37 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Anand Moon , Chukun Pan , Michael Riesch , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [linux-next-v2 3/5] arm64: dts: rockchip: Add support of regulator for ethernet node on Rock 3A SBC Date: Wed, 16 Nov 2022 20:01:45 +0000 Message-Id: <20221116200150.4657-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116200150.4657-1-linux.amoon@gmail.com> References: <20221116200150.4657-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?1749684532147827107?= X-GMAIL-MSGID: =?utf-8?q?1749684532147827107?= Add regulator support for ethernet node Fix following warning. [ 7.365199] rk_gmac-dwmac fe010000.ethernet: no regulator found Signed-off-by: Anand Moon Acked-by: Michael Riesch Tested-by: Michael Riesch --- v2: new patch added --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index b848282ea005..5378254c57ca 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -260,6 +260,7 @@ &gmac1 { clock_in_out = "input"; phy-handle = <&rgmii_phy1>; phy-mode = "rgmii"; + phy-supply = <&vcc_3v3>; pinctrl-names = "default"; pinctrl-0 = <&gmac1m1_miim &gmac1m1_tx_bus2 From patchwork Wed Nov 16 20:01:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 21245 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp38831wrr; Wed, 16 Nov 2022 12:06:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf6hRRehXpaDGZ9OfCsXodfyNzr60YpGaPBXms26jy873/kKHxXNjj7ht96El4Xn7Woh3+yV X-Received: by 2002:a05:6402:2290:b0:461:30d8:6742 with SMTP id cw16-20020a056402229000b0046130d86742mr20617922edb.172.1668629207213; Wed, 16 Nov 2022 12:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668629207; cv=none; d=google.com; s=arc-20160816; b=bWSuFIZYT9OcaRzF1tcTMElXOW4D4vvxqogXwhJYDGweMpEH2kOHwGBCLjm8SN0f2W bThxy0QshL5njKZgmLG3Ba5qtstqa4kh1BW1kge2sGq4o5fufcTvCA3Iyp1HPotVY4Sk /qtlL9Zj0jRYqIYnbL/pEB9czh5lkQFakweyEbVPhhMsHUYT6B+7zgzSg4a52+DT/X88 QjnwcqH6zVpCCXV7C4Bwzb4z+rA1I0zfPVlSckuILeF85lbJrsyutcGjkG2C57O2ZrIW VJI67ipyB8Ux2NdU0HGLM5EKNhjKHJYLqOOCqhsJK+JXD9LYBK+E01Dd3qBgSc6IP9bT MPaw== 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=Hlf4RPnys2xlptR6hKKlXQBW5qSMO1/p3GZVaaL5DEk=; b=TevVIUlomTYLnP+4xtteLCUnLXGOq5OJFSDEl+cOi0DSEcAC9NRZIVotFIDHNbmz07 LwtT/nDSg4Gyw9zD7YbR1lUVhNw8l6yawkFInkGoX4Y58TuDCUy/dNtlr67VDuT6Kob+ ikK7GxCMZDqs9INCbY620EnfaXMPrTZDJBTZ2YtTkl/nlfzW9eb6DLs4yHUwfa+qFXXJ H9dYPITCzHXi1rcSKbGn6HFqLPwXyLdcZsVFin/QDg59liStQLNAne9LXKPdEFcNHJ1F Ym1c0L48L1wnkkZKkRbSicvwnypnw7L2pJsdglKf0de0AllQzTaCsvK2RVVsfuiVm4BK bQkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p1xoRO47; 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 c9-20020a50d649000000b0045d4015cdcesi13894312edj.51.2022.11.16.12.06.24; Wed, 16 Nov 2022 12:06:47 -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=p1xoRO47; 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 S234444AbiKPUDP (ORCPT + 99 others); Wed, 16 Nov 2022 15:03:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237831AbiKPUDG (ORCPT ); Wed, 16 Nov 2022 15:03:06 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24834663C2; Wed, 16 Nov 2022 12:02:52 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id w23so11010488ply.12; Wed, 16 Nov 2022 12:02:52 -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=Hlf4RPnys2xlptR6hKKlXQBW5qSMO1/p3GZVaaL5DEk=; b=p1xoRO47ZrZ1DdmzZr9wv/ZEi13KH85MY5IcJaX02FD68/K/cmdmHDvzNED+iQn6fi b/BywVdnyw7bc1gzPutqrwvD8uma5HbPaN9VxphqGCIXb9Oi1B0cCgbkoobNrkjbaYe7 nN5k/BCr2axXuXqOWPhfsVw/0ldm+p2Qz+Ni//ONsEcVAAZiGlqV/odH2z4xuqy4gAI1 YL67GKHiSw63d4ySeeWwOlXjWAKS8bK1oPHYv3zp2EybFz58fl28AJHD9Xqm8dmpaHLN eW81F2sIX89Df+kGKWG2KvKyO2744SmkuuquwI35IOh8l5MNJx5ETidYVQxKmuVi1cCD AkGQ== 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=Hlf4RPnys2xlptR6hKKlXQBW5qSMO1/p3GZVaaL5DEk=; b=NrX6YXYrjaK5MzrPEXz4ohQtYCj97s2+adxMlzyYzENQ46rly7LAMpylB3dxrOE9b3 AQDJuq9Wx7NOCChKQh5tAofxFY02dq281G8mEr4uhZGpjEyxqfV3WmWcgXCXIqSyJg5O lZzsIKdHjyMp/Ix8UzsMYG5/jmVF5dDCETl1Rl2TmdmV3dVOaG7CgPjFFwtpAkURkn6U LLPJA0T8RkZm8I2TR3BXI0T3Lx+fuucnCyBrbuuqM9zlXQUF4ejejD1iobGqwpPszZJz fVE2rgvnv7qNj6nnPpsHOTf3lTs337cjqieysRSLMYy+SHRav8JEW32n2vmD+GEJAsTo aRAQ== X-Gm-Message-State: ANoB5pki4zK0JtV0hrSdmH9oCCUdyiyCYqosvXhLMruSGSaa6VkQC+7z pYga265N1T8YpabBqcOfYYc= X-Received: by 2002:a17:902:e791:b0:186:9870:506a with SMTP id cp17-20020a170902e79100b001869870506amr10439418plb.45.1668628971684; Wed, 16 Nov 2022 12:02:51 -0800 (PST) Received: from localhost.localdomain ([103.51.72.182]) by smtp.gmail.com with ESMTPSA id s18-20020a170903215200b00186a6b6350esm12423950ple.268.2022.11.16.12.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 12:02:51 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Anand Moon , Chukun Pan , Michael Riesch , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [linux-next-v2 4/5] arm64: dts: rockchip: Add support of interrupt to ethernet node on Rock 3A SBC Date: Wed, 16 Nov 2022 20:01:47 +0000 Message-Id: <20221116200150.4657-6-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116200150.4657-1-linux.amoon@gmail.com> References: <20221116200150.4657-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?1749684539930883651?= X-GMAIL-MSGID: =?utf-8?q?1749684539930883651?= As per the shematic gmac1 support gpio interrupt controller GMAC1_INT/PMEB_GPIO3_A7 add the support for this. Signed-off-by: Anand Moon --- v2: new patch added --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 10 +++++++++- 1 file changed, 9 insertions(+), 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 5378254c57ca..9f84a23a8789 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -588,10 +588,14 @@ rgmii_phy1: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x0>; pinctrl-names = "default"; - pinctrl-0 = <ð_phy_rst>; + pinctrl-0 = <ð_phy_rst>, <ð_phy_int>; reset-assert-us = <20000>; reset-deassert-us = <100000>; reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio3>; + /* GMAC1_INT/PMEB_GPIO3_A7 */ + interrupts = ; + #interrupt-cells = <1>; }; }; @@ -630,6 +634,10 @@ vcc_mipi_en: vcc_mipi_en { }; ethernet { + eth_phy_int: eth-phy-int { + rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>; + }; + eth_phy_rst: eth_phy_rst { rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; }; From patchwork Wed Nov 16 20:01:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 21246 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp38918wrr; Wed, 16 Nov 2022 12:06:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf41ed3qPhI5vaJZ0vXMpfFcu7MKFUcJvB4WegWSZRF7OI7VZ6IXj3YjBQgb73DvKfE8ElBc X-Received: by 2002:a17:906:a986:b0:78c:c893:1965 with SMTP id jr6-20020a170906a98600b0078cc8931965mr18558298ejb.247.1668629218312; Wed, 16 Nov 2022 12:06:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668629218; cv=none; d=google.com; s=arc-20160816; b=qeGILbByTnTNdUemhzeDgfBVkk6tEkEftt+kBufoRL3+23lu+Ij84g3X0WBt5rWGCi 7EOQnc7VLTqAxP4svU0ymhaUXjqMEkrGVl+nkYcLqDmN1CH80lloLTuAi40EsDNeNBIg R9ZgHWFqINDzPIuxOS2q+wk7Ok2fFSF9uSXeEDIfVIclVk2Oq37tdlr37SUuQruq+HTa 5Ih0pmWvqMOSEDYnh+shyIUwp4NOQu87MZukEyCnAaEjvn1/jxDpDxBrlBgGmv8e7ZnA cpR95RAYKsd+NSuGCA6OF3gWqrKI8XhqbK2ehlGN1RIwNN2PtvBp80ar/ZcsD6nOmy8L nvDA== 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=dU5Mwb4CLrFeMhe4gtPSXHFZzIZzSCF10R2Jay+I0+Y=; b=FJRtML3aYgSE/SJ1/jzoSTQoZ3KX7013vU2WT0xwU00Ir6ZyxCB3pguW42Aali8pTw 5Y7gsphHXW6Nk02+IpR5uBQMbq2oEuOffM1KvnNrGYDpI2fXw79TUd1e8uw+B0b+4GTf gBz1sYq0JwHGTpE2KPp2SJeVpdvCSiIVp0NLnHt7/qBNX1iC3OF7IskmiSYgJ0NC/OVT nwIMSpW+hxlSY17HMjIwKsD+H65OuljZGaMntYkrbJ/gDhMuwXjzwA3Ila4GLST3nQ6N rhwHorFlmpI+OHKgiYtr8+qg6i2ooiSO+2VaL4ZzFV769PobvbuFdto/v8pMk8KJO8wr bG+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="fZt/DptU"; 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 c20-20020a50f614000000b004588af9ea19si15346460edn.166.2022.11.16.12.06.35; Wed, 16 Nov 2022 12:06:58 -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="fZt/DptU"; 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 S233325AbiKPUD5 (ORCPT + 99 others); Wed, 16 Nov 2022 15:03:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238534AbiKPUDI (ORCPT ); Wed, 16 Nov 2022 15:03:08 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AACA66C8F; Wed, 16 Nov 2022 12:02:58 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id y13so18511999pfp.7; Wed, 16 Nov 2022 12:02:58 -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=dU5Mwb4CLrFeMhe4gtPSXHFZzIZzSCF10R2Jay+I0+Y=; b=fZt/DptU/WyyXomIIYhusRu/ggtb7lQmge+tN9aC26JOHUiotfJ6pNPE0sOZsXFlHA SgeDoeiwbjAZfkgqTVCECcv7sWywKNuPLRdXB2lRWWgg1k051QO2wO27w3GpXYG67DmI FBc61+kKx9u3T8aPUbm4mWTchGz3YT6lsXgp6Ikq8d/gCmzPV1sum84ZZ8KtlSWELjkp s9JSmZIn2Qu5zRciJVrRw9g0Br1hI3QpPZLRyl6iZ3/4k0Cy16ZuG9/RVTWW1T4dZMma PQENYUq9QG6GJX+VI+8yQwhjbChPWtHurVy20PsG4eSo+W5qreGGu90lFrtHhMBdfTj2 NvrQ== 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=dU5Mwb4CLrFeMhe4gtPSXHFZzIZzSCF10R2Jay+I0+Y=; b=55UlpKXrU8s5UcfxL/7xezdkkYCL50giCgRA5XsLitFXUKTQi3q6alnVv+8WLTnxLg vhDJtqFmCkju5qyu9Y17XH3L1UNwHqvog2tP/xmp/tTcpT/O4o71ctDgXCi2V3Pu8qmd GjGQ58tsMmigC9pZhKKwanR82vBkiLYTbW3nqz3o/SVjHmQ6bgeLLQA0sxqpFUCkoq/Y rqDsqnVdqiTA42/hYrnIJzlbdFTG9/x7j1TT92I04/XeMe2ku5E0jUlnJYg/GRWuEVVL XGudCLiwQBtG0Duxyu1KgHRb5lqpcgZXadNcBaHWpWsDpGOVGWKkq4ID0LCDNvIJxs8V qWpQ== X-Gm-Message-State: ANoB5plAM/M29ka4M9tdqEPEknhTasR5sUb/5eMfOJcASDaV0sDPOGN2 hM+MdYC8DYrfNFa9f/N6DNw= X-Received: by 2002:a05:6a00:3689:b0:563:3d81:7faf with SMTP id dw9-20020a056a00368900b005633d817fafmr24476557pfb.45.1668628978034; Wed, 16 Nov 2022 12:02:58 -0800 (PST) Received: from localhost.localdomain ([103.51.72.182]) by smtp.gmail.com with ESMTPSA id s18-20020a170903215200b00186a6b6350esm12423950ple.268.2022.11.16.12.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 12:02:57 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Anand Moon , Chukun Pan , Michael Riesch , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [linux-next-v2 5/5] arm64: dts: rockchip: Add missing of ethernet-phy-id to reset the phy on Rock 3A SBC Date: Wed, 16 Nov 2022 20:01:48 +0000 Message-Id: <20221116200150.4657-7-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116200150.4657-1-linux.amoon@gmail.com> References: <20221116200150.4657-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?1749684551270498540?= X-GMAIL-MSGID: =?utf-8?q?1749684551270498540?= Add MDIO description with ethernet-phy-id compatible string which enable calling reset of the phy. The PHY will then be probed, independent of if it can be found on the bus or not, and that probing will enable the GPIO. ethernet-phy-id is read from ethenet register dump reg2 and reg3. Fix following warning. [ 12.323417] rk_gmac-dwmac fe010000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0 [ 12.324078] rk_gmac-dwmac fe010000.ethernet eth0: no phy at addr -1 [ 12.324099] rk_gmac-dwmac fe010000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -19) Signed-off-by: Anand Moon --- V2: new to the patch series. alarm@rock-3a:~$ sudo ethtool -d eth0 [sudo] password for alarm: ST GMAC Registers GMAC Registers Reg0 0x08072203 Reg1 0x00000000 Reg2 0x00000404 Reg3 0x00000000 Reg4 0x00000002 --- 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 9f84a23a8789..fe36156a5017 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -585,7 +585,7 @@ &i2s2_2ch { &mdio1 { rgmii_phy1: ethernet-phy@0 { - compatible = "ethernet-phy-ieee802.3-c22"; + compatible = "ethernet-phy-id0000.0404", "ethernet-phy-ieee802.3-c22"; reg = <0x0>; pinctrl-names = "default"; pinctrl-0 = <ð_phy_rst>, <ð_phy_int>;