From patchwork Wed Jul 6 18:31:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12908488 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 0880CC43334 for ; Wed, 6 Jul 2022 18:37:28 +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=IN13HNzhIw4SMOcUyQoMFsJFwk+bSAw72OG+SaIQRr0=; b=XbGOEKWvhuFBaT Z5geikB3XuyrrNDsJzOg8049I6R+V3qal+YHmmSDOwSx6HRabo+uSgGc4k0No1DGrfk5A3X1OTvQF MofsJhz1acfxFntBMunL7JjktnUe5Itdur7g1yGHLRB8ZiRhEV3xVPKjrlcwNu0GxlsGOq1SrTHVX Ac071GiYCn8OAolbw4DboKajg/UoPARfz31wPAUq89mTYaRUeKWAzuW3mjdr+h/SNGah9rc+K3rlM uhvrTgi48iCFZ2BFr95R2QhhAlxE1naG7Iut49fagTKM+L+8IIIVxdvKcjUGrtBpD0iDs8em/uec4 WR+CRdbemB3uEXUBOJoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o99sz-00Bztk-Vq; Wed, 06 Jul 2022 18:36:30 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o99rR-00BzEN-03 for linux-arm-kernel@lists.infradead.org; Wed, 06 Jul 2022 18:34:55 +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 ams.source.kernel.org (Postfix) with ESMTPS id 6C8FDB81E84; Wed, 6 Jul 2022 18:34:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5C1BC341D2; Wed, 6 Jul 2022 18:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657132490; bh=6emB0shZlqkchDlQ5/5uGI3aqBajl0+i59MWBCmXheY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O0lXWCXvPsAiXdqh83oHQQwIt9N95gR+Ux321VGt8KfEB0AZoXKmBVtM4mMqkhakp 5hQcNttUGRnj19PvWycBIBffKERViuuDFlv83wMpHAwGPp9oZ3JcAWjs5DdSK7SWoO IDI5vnc9sMvcj5GrCNrNdDS1H2NWUSRr97Hn6/vp+JDC3UYz4s+RXcmGWdOP7T7J4F bU2nW7TiwLkbrCmKzx3zxNdC+MJj5kzGRd94XDXaENdywxVgrY4Z2gaPnpScjyQw9/ +tMaKm3qZIdYmA4mWacpWeT6hDpSParlPxc64JceUKIo9bQbRtQ73gOv5AtGpfTzbk OMicIJdhz4q5w== Received: by pali.im (Postfix) id 60885821; Wed, 6 Jul 2022 20:34:47 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/11] ARM: dts: dove: Add definitions for PCIe legacy INTx interrupts Date: Wed, 6 Jul 2022 20:31:05 +0200 Message-Id: <20220706183114.30783-3-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220706183114.30783-1-pali@kernel.org> References: <20220706183114.30783-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220706_113453_233106_981C12ED X-CRM114-Status: GOOD ( 12.07 ) 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 Signed-off-by: Pali Rohár --- 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 @@ 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 @@ 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>; + }; }; };