Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1107121rwb; Wed, 16 Nov 2022 12:10:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf49T8bsCem7OrDMswX6rmIYJ/HjaOWy41/AYzG0sG5+uLLJKxCPKock7NJlJth0rcV4Arz7 X-Received: by 2002:a50:d485:0:b0:461:af68:9bcd with SMTP id s5-20020a50d485000000b00461af689bcdmr21423689edi.67.1668629400078; Wed, 16 Nov 2022 12:10:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668629400; cv=none; d=google.com; s=arc-20160816; b=tjM59r2ZUUuKn993N1itEQPtOSRzJXpqXcRnysKPlL+rTxI7TeJ0Tx3RTBcPlT0aan zKHwgCGI71WdcSszE8IR5xE4PTJlqjhh7DcojJcLgVQpz/2sVPJDFl6F4oUZ35Gpmx4t pZLhW5B2TD91HFQchNEpNSfpsOaZ0t+XqZCmbcA/U/dvJ1bhbXyJdEJjLo51cD7tx8Fd 3+vRxBDkNmA4KJGQCUM+cCXOq4YZ5ZN1VRV541a0pSiF4oMyAc+zC4V6uRRNz6ncyjtB /TMhqu1qIriGNnNkM7Z+/MPXdKyCEg2CHdEg2X0JNic3pXtWZCPJih/Y+TLHmXyMjhL8 Uh4Q== 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=ohE/XlgA+wHSjVBQi1yQ4dWepsacoy/feF0MLTXzVLMPHKldJ0bNj9zOKxlvjc9x2d rpeQ7R7ffEdAWZC9uw9KnuJ1ziILrjFQVHfY4WGILt75H8tLWTNftZ5vA11R9RdfIdHb +UCNMFeS1HEnopKRWVMjHg3KutEbSlYphSj0jxpZ0qDtFtcUZApWMvMBizj2QJYdX2p4 7lutxCF2NpWk7hGeQXEiMR8c0GprgDF5z9dgSgQrvc2SNBnjHXF9ul/lvdDcWrtL5DOh UPwjizTOdpys+OkuZBZTPxgP8Q/3dLsCwkGJbszADeF2URyviXawUsj76d8eIKEM8KXL eJ8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q1vmNkgn; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a17090658cf00b0078d49f0df9csi18013917ejs.453.2022.11.16.12.09.34; Wed, 16 Nov 2022 12:10:00 -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=Q1vmNkgn; 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 S232869AbiKPUCv (ORCPT + 90 others); Wed, 16 Nov 2022 15:02:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236124AbiKPUCq (ORCPT ); Wed, 16 Nov 2022 15:02:46 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65EC663B94; Wed, 16 Nov 2022 12:02:45 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id s196so17748098pgs.3; Wed, 16 Nov 2022 12:02:45 -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=Q1vmNkgnMV1rfn9shs7EUPv1E8qMY58IiMlv0wjSwmEEfxjXjMTTfXyJEBhBiZo4RV 1jqoXycSq7g9T26erjmpPfcESFrKSgB+0GZ9uXRuDnLliTwzcp3CITDb5rLft3pHUUpi Uk/ztpz5RY8cTkGXRuGcM71hNwq5QyUBzol5xPf0dZrny2lfx3BZa6ABxvJWlWOVNpv/ XHOslswzR/EJoP37wdNKNz8kCdbb+T/xvt0e+VpK+v0o88GygLfHfFUJ01ijAAnOvSuC 2OvmU1Qfgf4o7q2CmJmFZvLTNWSz59rzYkXWJyMLkM4/jBLVp2C4joBXxUv+a2T27LLc EBOQ== 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=YRmH9ZxFmcL/pZODih/5GuhxvRGMmJWs7Ubel0wNr/jT2dCbVaQiK0sgDnDT0bz6yL mbhu7jh+Gn2XqSe5B3zghbIRB9b1fpGR6kKI3wK+KyBJWVdkUmL8z5a8GnYedEhatVnz 27/apTN1LOflgdxrWXYPQB3kwLwJ4BuUjYOB9pvpYV+MsfaXC2yfOs5Ml5IoKs0aNODW paDkRve4M3sdYcW/NzwV5DkeMofdmnNDoWeuZEAMLUbkBRxb0qDzKVphPSBGid39e17M eo4yjeeObXk2ghO6Uw5nX8T7yJIbOa3QfZcrmM9rYs0qIn2fuMcIcgmeIh9ml4vFlE9O yfmg== X-Gm-Message-State: ANoB5plcjWL/bQBSg6+qeV5Nv52HgvWgbrB3EIdclpqunGFX3h+L9fwk ck3X/n97+QHcixPWUXUE6HE= X-Received: by 2002:a05:6a00:4186:b0:56b:d951:67d2 with SMTP id ca6-20020a056a00418600b0056bd95167d2mr24621348pfb.55.1668628964901; Wed, 16 Nov 2022 12:02:44 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 12:02:44 -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:46 +0000 Message-Id: <20221116200150.4657-5-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 Content-Transfer-Encoding: 8bit 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 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>; }; -- 2.38.1