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>; };