Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76E08C43331 for ; Tue, 12 Nov 2019 13:20:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E3F021783 for ; Tue, 12 Nov 2019 13:20:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk header.b="cIRUpNYV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727226AbfKLNUV (ORCPT ); Tue, 12 Nov 2019 08:20:21 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38756 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfKLNUU (ORCPT ); Tue, 12 Nov 2019 08:20:20 -0500 Received: by mail-lf1-f68.google.com with SMTP id q28so12843237lfa.5 for ; Tue, 12 Nov 2019 05:20:17 -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=cKIBvY0x1yD+bD+aWV0JUrzlsZTikuF2aQL24o02BNY=; b=cIRUpNYVEGfnB4/ePtiAKp638xTywK5olGdZniL8LqHCeTTnZP6CM6JV2Ms3GrXRRk AqCiiJuz0X+oxu5/+deCblXULlE5Tkm2SG7JtZFx1fYH/5HPrn5ZW9YDBVfBzofobcwy k6zuthunUE9C/THVN4JviAwdYW2x0a0efbMF8= 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=cKIBvY0x1yD+bD+aWV0JUrzlsZTikuF2aQL24o02BNY=; b=P3blN22YkQPcKfHWLTHkNkcfGBdLhedfP2fNDlafA38wBYjjTFloT88CEmlPL3gAor OyUWeVpYubP3Ab5MgTnmPhyvjC2hoCdK6XN+VDyB8urR8BKZ4w4jnhyLgOs4TtPzVXcQ LJzox/xQJYFr2jcPy1qcaBfBN8Rp3ZrkJcOTJYCrmFZqCZE0j1fHMPymaWDjTuYFfVdq wFqZ8soxO4hlYsWLqVgJGEp/lxpCtWg0Ya1+tiqUDcr6hl4wOykFmzp87o/bfn6BoMeT XYwT91EEAH+vXyAG9/f8wmhpE5chCEUFniEscfDUQwluP1HQI0D+81QpOWwj++DLfbs/ 7DeQ== X-Gm-Message-State: APjAAAVk/2krDfd1iQmkUaPpt7sPEHGFLxeTDE06tMH6S/VoYNcYjpxO tH59nzMDmkFwRVMdKXh4c4mi4g== X-Google-Smtp-Source: APXvYqx9C+B7+dzh+DExhVDk9zF6QbqRPQQJ9ESPQGY6lCuTE2m4r60+gVHrE26XPfc47YPvGhzkIQ== X-Received: by 2002:ac2:5deb:: with SMTP id z11mr6866390lfq.35.1573564817247; Tue, 12 Nov 2019 05:20:17 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id f20sm869050lfc.75.2019.11.12.05.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 05:20:16 -0800 (PST) From: Rasmus Villemoes To: Shawn Guo , Li Yang , Rob Herring , Mark Rutland Cc: Vladimir Oltean , Marc Zyngier , Rasmus Villemoes , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ARM: dts: ls1021a-tsn: Use interrupts for the SGMII PHYs Date: Tue, 12 Nov 2019 14:20:10 +0100 Message-Id: <20191112132010.18274-3-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191112132010.18274-1-linux@rasmusvillemoes.dk> References: <20191112132010.18274-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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..135d36461af4 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_EDGE_FALLING>; }; /* AR8031 */ sgmii_phy2: ethernet-phy@2 { reg = <0x2>; + /* SGMII2_PHY_INT_B: connected to IRQ2, active low */ + interrupts-extended = <&extirq 2 IRQ_TYPE_EDGE_FALLING>; }; /* BCM5464 quad PHY */ -- 2.23.0