From patchwork Wed Mar 21 10:50:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 888682 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gWH0CBBO"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 405mn03Dd9z9s0m for ; Wed, 21 Mar 2018 21:51:00 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FBPR2xKzWHenxxc4kOpZv/aPwi14qXpB8/qMoICO/10=; b=gWH0CBBOEHArG2 xn/djgFohGdksdlKInPj+Cgvo7UXuKcCKHmdweShJ9hEFAsGZgI+N7P0Ujt6DQaXVTzNge8PXTGKM culn8RmfwlfgpJNlpkoqtQSoE0MrSYp08YdUTD5sqfHQSqmcm4b5OWWbGk0Lmhsr1nk1gPM5i3Lhl XdCBg1ojfPVNnJh3byoai8ZkP3bf5DPE/aDHfVs2180q+7bM6PJhauHvNIj4+psgishJfjnPN0rre ndITrhgj75YmRPDgjXK8j9XK3mPQV7ARV7ksXZXWaoc3vS2UuWETUOJgipbT9tn4732Kd/BxIdOfN e7FYovytEjwiRwqMETbg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1eybKa-0005NP-QX; Wed, 21 Mar 2018 10:50:56 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1eybK0-0004CY-7q for linux-arm-kernel@lists.infradead.org; Wed, 21 Mar 2018 10:50:23 +0000 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eybJn-0000Wp-4G; Wed, 21 Mar 2018 11:50:07 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1eybJm-0007bu-G1; Wed, 21 Mar 2018 11:50:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Subject: [PATCH 2/3] arm64: dts: armada-3720-espressobin: make use of switch irq line Date: Wed, 21 Mar 2018 11:50:04 +0100 Message-Id: <20180321105005.18426-2-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180321105005.18426-1-u.kleine-koenig@pengutronix.de> References: <20180321105005.18426-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180321_035020_477878_52256AC1 X-CRM114-Status: GOOD ( 10.94 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2001:67c:670:201:290:27ff:fe1d:cc33 listed in] [list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org The switch's INTn line is connected to the CPU's MPP2_23 pad. Wire this up in the device tree. Note however that up to now the marvell,armada3710-sb-pinctrl driver doesn't support level irqs, so the switch driver doesn't make use of this feature. Signed-off-by: Uwe Kleine-König --- arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts index 6d070b267abe..a88f053d2f28 100644 --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts @@ -133,6 +133,11 @@ #size-cells = <0>; reg = <1>; + interrupt-parent = <&gpiosb>; + interrupts = <23 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <2>; + dsa,member = <0 0>; ports { @@ -171,12 +176,20 @@ switch0phy0: switch0phy0@11 { reg = <0x11>; + interrupt-parent = <&switch0>; + interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; }; + switch0phy1: switch0phy1@12 { reg = <0x12>; + interrupt-parent = <&switch0>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; }; + switch0phy2: switch0phy2@13 { reg = <0x13>; + interrupt-parent = <&switch0>; + interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; }; }; };