Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3040539ybc; Thu, 14 Nov 2019 03:06:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxu2HyscuI0j9yCc9TCj4mNllcTIRgNd5uJ72GoPo2o5HWQUfJiUCjrL/67ki9EjqbXQn9O X-Received: by 2002:a17:906:69cb:: with SMTP id g11mr7700508ejs.328.1573729598282; Thu, 14 Nov 2019 03:06:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573729598; cv=none; d=google.com; s=arc-20160816; b=wHmARzAKe1Om2gfGLW2A9aeATfxJuHmTIYfY6/fnKBEK5lFjvx8SDSjJRWCBn+HV0x eQqm4j0oycCdPHPpt5GWGsKoS7VgjMNAhuQfZVaR7LxOnmSqK9ShJ2x9GNyVjNiOJLZ/ dJfadrxxObipGxTcARYv0kCppgsDqBp11i9PHRS9eGIoJoZN6Ei8+4qU8wEhhdwNRBZ1 ZRR6EmdQYGGIqq7KwkOfwi5nNsy0B+xnhzQoWXu/rpj4A6rdazdCbWkDVv9KM6YhdYw7 HL+s509/FYZ4ER/o20BiK2Xl19pIB8hdGomLuGcQjJ+ctgsRDbUNje981CEi0mOzGvTG cs6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jb+MOMLuIdaHgEwx11sXFvRMBqWhHSyGkvnIDPsupdw=; b=KLaalA4S/XQVoid72n6LVrU8vdK1wcnTYQhQ0+YCR3WsWFUCGD/LJ1S6GPHGRJJ3KY fAlRdEdyD+vZh/FIgdzokTV3TeAouaEMJO+VOgrJkL4F03h0ykM9aL83Ex6TdaePX/wx RI0pXOvjqIfNIP/Gi7zfhXwZWlkpglTmfQHindce37GSGFo9gyIuhxGnoq5m3rIS5YhK 14YBY+m0Lg2uyLaLIF0mZRDEPnRqNECSxaRu+889mHxxHdXi8iWd5EZjlOSlZj4EEe5I FaIuxhYWijXmBfLrTruxutqFudgi+p7TtvjRPMtEJHx/xV4ulTn9Un72mJuNHKmjIsXk yN2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WOUcLW3G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30si636752edb.403.2019.11.14.03.06.11; Thu, 14 Nov 2019 03:06:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WOUcLW3G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727068AbfKNLDE (ORCPT + 99 others); Thu, 14 Nov 2019 06:03:04 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:35548 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbfKNLDC (ORCPT ); Thu, 14 Nov 2019 06:03:02 -0500 Received: by mail-lj1-f196.google.com with SMTP id r7so6217742ljg.2 for ; Thu, 14 Nov 2019 03:03:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jb+MOMLuIdaHgEwx11sXFvRMBqWhHSyGkvnIDPsupdw=; b=WOUcLW3G2Iayeuu5sPm24T439/72x+v6kvdOeZ3yyOFnInpWwaMAAiMlvEh+zz1v99 KB41QGiNZmpNupPI2zSDjYAUMw+jOuNTtO6FDm4F9YE1ldnhegAL+Omp0xYCregSGy+S Zq9g75zHJ0vatkL7Y7LxTzPd5/s0ZaJslKRZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jb+MOMLuIdaHgEwx11sXFvRMBqWhHSyGkvnIDPsupdw=; b=ahIMCBGJHY3rSqsW5MdZpMGr+v5jqiGeOmmbKvPkLSw+LaRVh6pjGiVFuhBvCz7AjU Ma0tib67M7/20jJ6f1j2XWflYeP/GoUAPOF9HvrQL5WJ9JulRakfrrPILEuOMEB01LQc /o6D/upOo0pkTyZrxn4oKmDs1gYWxWuhA4/iX9cZns8EIE5PohTOEsdP/0hun0ht50Jv 6XEHCRNHLn5FBqL8ZCmJcdfBGGUqhpHQydKurWirru/t+kvRYe1uLxz6vz0C8FlYFmQn wnlbShR9i2GjixBifwe2BLMyyisoi8z0lBgdjyXo4hLtZ/3Vzh3rSCAuuQd0/RCMJOoV N9DA== X-Gm-Message-State: APjAAAVd9CDAUR0KlsKQYWQWnlWi8kH8i3kDvUxgtaVAiVOJOnqEoZQP OyibAyvY4RPMLVDBguQEmAi9cA== X-Received: by 2002:a2e:7307:: with SMTP id o7mr6253561ljc.10.1573729379406; Thu, 14 Nov 2019 03:02:59 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id x5sm2498795lfg.71.2019.11.14.03.02.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 03:02:59 -0800 (PST) From: Rasmus Villemoes To: Shawn Guo , Li Yang , Rob Herring , Mark Rutland Cc: Vladimir Oltean , Marc Zyngier , netdev@vger.kernel.org, Andrew Lunn , Rasmus Villemoes , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] ARM: dts: ls1021a-tsn: Use interrupts for the SGMII PHYs Date: Thu, 14 Nov 2019 12:02:53 +0100 Message-Id: <20191114110254.32171-3-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191114110254.32171-1-linux@rasmusvillemoes.dk> References: <20191114110254.32171-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vladimir Oltean On the LS1021A-TSN board, the 2 Atheros AR8031 PHYs for eth0 and eth1 have interrupt lines connected to the shared IRQ2_B LS1021A pin. Switching to interrupts offloads the PHY library from the task of polling the MDIO status and AN registers (1, 4, 5) every second. Unfortunately, the BCM5464R quad PHY connected to the switch does not appear to have an interrupt line routed to the SoC. Signed-off-by: Vladimir Oltean Signed-off-by: Rasmus Villemoes --- arch/arm/boot/dts/ls1021a-tsn.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a-tsn.dts b/arch/arm/boot/dts/ls1021a-tsn.dts index 5b7689094b70..9d8f0c2a8aba 100644 --- a/arch/arm/boot/dts/ls1021a-tsn.dts +++ b/arch/arm/boot/dts/ls1021a-tsn.dts @@ -203,11 +203,15 @@ /* AR8031 */ sgmii_phy1: ethernet-phy@1 { reg = <0x1>; + /* SGMII1_PHY_INT_B: connected to IRQ2, active low */ + interrupts-extended = <&extirq 2 IRQ_TYPE_LEVEL_LOW>; }; /* AR8031 */ sgmii_phy2: ethernet-phy@2 { reg = <0x2>; + /* SGMII2_PHY_INT_B: connected to IRQ2, active low */ + interrupts-extended = <&extirq 2 IRQ_TYPE_LEVEL_LOW>; }; /* BCM5464 quad PHY */ -- 2.23.0