Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp524298ybc; Tue, 12 Nov 2019 05:21:43 -0800 (PST) X-Google-Smtp-Source: APXvYqz2JV0L3rnkp17JnYGEql/ufOq+tIfdWh2aPd/9H8U1GzrmBZn9WjxMME/5FdlQsr3Wbq7Y X-Received: by 2002:a17:906:344c:: with SMTP id d12mr21295517ejb.227.1573564903510; Tue, 12 Nov 2019 05:21:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573564903; cv=none; d=google.com; s=arc-20160816; b=MiC4fVAVkBotiUtIr2H7uBKSclv2K5Z30vEYsgdzM51w8ge7BRuQcCAJqYL358ep9C omtexJTiijdAJAipajUYF5Q2rSOp0rLB7Yyg+5h17nBqqKSuJDcxjMfwnEyaQZbWeB29 B8TQ5BFNJAUrME4R9BsE6N3r5GIAXnIp0fV/wf3TaekBxp65UH9RqghvhJ1sjvysB5eC YDN+ZS6h5cVvzmau2MYyWpoQS4BhgVCa0oqeUU1ufr1L76leGIRv3HuVxge74DqV2jFN wemQIP893Q7DJBPxO197IsOxxermkSi3dElsS7rQpQnt1b0q6ThrlqDBrothnFvBbuXB lvFQ== 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=cKIBvY0x1yD+bD+aWV0JUrzlsZTikuF2aQL24o02BNY=; b=O6OLHGMSx22kQPRYpmeuwBsNwSzWbwgHY47jAV7iNhkwmqIwDYg80VZ7McKhUWPyI3 9hHZtBwsWTs6PfzeAFqpftnDlKre8fKqwl9iQjuuF5ZUtUPOCeoN794veHKgksUusBIe pTAYkVRn3m4CQTRz8NH9F8ndKYAB5iajL1JzDaRcUQJPoOa6VTJaWojZlT4nQai7auYF zWPo2nJ4B1FM6beLlJLEB6SBVX6CkZaf0Ahbrzs4m2NHEtLMmqB4KWwnx2IVHaBP1S/N Es8j7MhhUWET3FoVNAaSenm/4WGqAmpCFD7vw2iDq3G0H7yUW5jYYMHqSYypUUU88nF2 jrAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=cIRUpNYV; 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 y9si11468305ejp.175.2019.11.12.05.21.18; Tue, 12 Nov 2019 05:21:43 -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=cIRUpNYV; 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 S1727239AbfKLNUV (ORCPT + 99 others); Tue, 12 Nov 2019 08:20:21 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:43193 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727078AbfKLNUV (ORCPT ); Tue, 12 Nov 2019 08:20:21 -0500 Received: by mail-lf1-f68.google.com with SMTP id q5so6793642lfo.10 for ; Tue, 12 Nov 2019 05:20:18 -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=IqSRup/dLpU9zAVl9y9W1GfoJwwBOtRKAWnejTEpL+9SUZOprUqshsXh4ZNuBB2YR8 wrxiAFiAjlW6YZTnnBxH4CJr6/WypODR1+2vK9i0kv9XhdSjTZuLCu6SEZ4AY2/gpFj0 uxxJNahTG8LoI+c/ppqraWFzCY6Eg3eDZf36VmUQCJF5IbW3mwkjK72OgkfETEkTroeC ekXgDX7XElIkzM3PFu2K2oiouLUMi1TcLLq7c1d3EVAH63svm47GAk74evJs5CmU7Nui 7ybP+h6j9twJXi3GEHXvK6f19YjuOhX7BvW8n7/Cbrw0YUHJXGjbZTmNnIy7B2URunVi ox2Q== X-Gm-Message-State: APjAAAUFqvSNM+NUDF1f6DUeO5GVAEWbDdURqgoyOpEULoc57CAX9Uxo zLWASHdQTvc2mmKl+pzZ/cZ2EA== 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: 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..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