From patchwork Tue Jul 12 16:41:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 12915333 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5FC65C43334 for ; Tue, 12 Jul 2022 16:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CG/qoAAA4uyP8JVHhS+4Ew8MvCHtoBWO/wBe7Fyxliw=; b=35bgPCZQgnP72i f5/hYITjN6s2ykOPR9mDdLZJcM7HgFvG1sUTMeteucSkPUTTLgKqixhM/Nbv1J0s+J8D0k6VlPXoo 52OlQxDlEYwmGe6f3Xm1yUBGNy+f/NIa1yiVEEk5PbVl4T1iOS+keEX+jWLVGDYnZwCXg9R5oYBmv kTPdJQpAC9Z7P2cKRIznsBhV7rQ9jCbwXrkrYTyvTWLIcVcThg7SLwGtp9s/GJUS1SjGXCbL13AGw nH692BJnowwQmwNiiVFXRCCT7JjtIgLttOep0nla18Yxg46TrGdjknxwHrG1rAxDmZdr9kSQbK3tu yygLVN8jxrIOEYjI/FqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBIyc-00CxCV-14; Tue, 12 Jul 2022 16:43:10 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBIwp-00Cw0Y-7k for linux-arm-kernel@lists.infradead.org; Tue, 12 Jul 2022 16:41:20 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 366496195E; Tue, 12 Jul 2022 16:41:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE4E0C341C0; Tue, 12 Jul 2022 16:41:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657644077; bh=bnrIiFlK9D2TsTIOY/TJyiBk3yRsU3u0vZgDR+kcVq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y1xSwDtpxeoE/xLUlPKH7ydSAMBXzxvWaeLbXp552Q0dDOghmymVemW3r9Q18QaGJ 1D/8AWf45NwJH8+mej3njVbvmTbflWnNWThSIBrAA/jXR+jPEVUO5wzSkEFxMFIfWt R8+KefzI35uQqwwJ+YE4HYwIr2vzR9j5cTa8b68Izu9cOT9G+XEDjk07mWf6npNGQi 8TFJw1dYAM84jZQ5ZJWDn38SNRalDn3srmQX3WZCpeD2gMeG+QFdTsOmFRwl5DeX+C aucQwlL8S9qHRXZvt1WUW9whvnJbBSP9UB09s7WkFKvlVcy7fvzz8oyT9SETJJwReh sZCLpEXU64qZA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Cc: Rob Herring , =?utf-8?q?Pali_Roh=C3=A1r?= , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v2 02/10] ARM: dts: dove: Add definitions for PCIe legacy INTx interrupts Date: Tue, 12 Jul 2022 18:41:00 +0200 Message-Id: <20220712164108.30262-3-kabel@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220712164108.30262-1-kabel@kernel.org> References: <20220712164108.30262-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220712_094119_366878_66F9E80C X-CRM114-Status: GOOD ( 14.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Pali Rohár Add definitions for PCIe legacy INTx interrupts. This is required for example in a scenario where a driver requests only one of the legacy interrupts (INTA). Without this, the driver would be notified on events on all 4 (INTA, INTB, INTC, INTD), even if it requested only one of them. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- arch/arm/boot/dts/dove.dtsi | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi index 89e0bdaf3a85..96ba47c061a7 100644 --- a/arch/arm/boot/dts/dove.dtsi +++ b/arch/arm/boot/dts/dove.dtsi @@ -122,8 +122,18 @@ pcie0: pcie@1 { bus-range = <0x00 0xff>; #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &intc 16>; + interrupt-names = "intx"; + interrupts = <16>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie0_intc 0>, + <0 0 0 2 &pcie0_intc 1>, + <0 0 0 3 &pcie0_intc 2>, + <0 0 0 4 &pcie0_intc 3>; + + pcie0_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; pcie1: pcie@2 { @@ -141,8 +151,18 @@ pcie1: pcie@2 { bus-range = <0x00 0xff>; #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &intc 18>; + interrupt-names = "intx"; + interrupts = <18>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie1_intc 0>, + <0 0 0 2 &pcie1_intc 1>, + <0 0 0 3 &pcie1_intc 2>, + <0 0 0 4 &pcie1_intc 3>; + + pcie1_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; };