Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4588969imw; Tue, 12 Jul 2022 10:30:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tOEqtXi4wpYrWw+mmf2ekm3WR1kyZk3peXlQUCIyRk/KMiQ7FdoFO1Shf1A8RVS4PAYTyo X-Received: by 2002:a17:907:97d3:b0:726:a5db:3a3a with SMTP id js19-20020a17090797d300b00726a5db3a3amr25644057ejc.654.1657647013862; Tue, 12 Jul 2022 10:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657647013; cv=none; d=google.com; s=arc-20160816; b=E6OvIUm5x3uemvNu5Jxn/4tiEwSpZBH9iWPZ26zVgDfVxVh7nfb8Qr04WCj1DWZXh6 4Ae0N7uE5aSk8xQ5ld9CQc2XAEdEGuKngQnUcCks1c6F5m2dHRPT03OLWroYsVWGwX44 lJ01LZJftLt1molwACB7DVNSQ54ODNsfeyYtCcBsNhVrDkVUscpxIZQK3QwhSlc/ng6y bmNEW5P3FQuLO8wJeuGR7ieVrnaVtMCAizuUn21nhdoggG7aMMd1sJVY06Be4fqv5Srq Zog+p4A3D7xByszMaWnv6qnVln5YqYLy3WXL+E2SsN2RQ0m1qKxPiyctYkWxS3r+Q/XC hRqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=m00TFN+nItWH+6l8uSpLnZYCXCJa+dsDXf3kVhOHmyc=; b=Si5oMMFTEGxYgvZk2kcOEf74w2hwLLszOowJlIwbg7aZ8+i4u4Xp+mo/FmxwqkYkuX y9qpfns6koxBqly9Zpz93wOmYTp4S4D1aJs0Hd+2w6QU4O3skO4zOGD4YpWq9GDH6Q1a jDm5qzjsYjj4lyrxYrpIG0q4PmnFhmTA42xUhN+dZ/1On0mTJk0jlFyBdMn8ntn7g6NZ eGn9FvW0ilzSRPHArDA5e7DQvyPF5C+zve5hMP3pej7uRhxreHNIyIi6oNE2yt5w9oYP d3FZHAvb1dD2YQTk9njdqJa27Vl4o3T9e6KWqPztXMcyfi2OiR9X++FDf0XBSGFiYKB4 9EcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oBc2UYlh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb5-20020a0564020d0500b00435b2a66c73si18004786edb.191.2022.07.12.10.29.47; Tue, 12 Jul 2022 10:30:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oBc2UYlh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234005AbiGLQmK (ORCPT + 99 others); Tue, 12 Jul 2022 12:42:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233546AbiGLQlg (ORCPT ); Tue, 12 Jul 2022 12:41:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C491EB3D51; Tue, 12 Jul 2022 09:41:31 -0700 (PDT) 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 48F876195D; Tue, 12 Jul 2022 16:41:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E51D5C341D8; Tue, 12 Jul 2022 16:41:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657644090; bh=D0oIMdGF/JP3eXO44e90W+cdHie3mg+K0Kdx1Mi3Xfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oBc2UYlh1ptv2VXS3JdhyTd6ZmNbsb/sZ2rHFXkfbIfrZLbzlEi8AiuROyzzaOCW2 mu+x/HgxKEZ+C5e91C2QEgCYZUcxvSdsiSk8EnJuDAEq5cf63sXlgPUYslUELbjmcB jsz7Od5DvDXs8ZQNtX35/oGoWB4Y/DNSkSShRoaGH+l+x9+Hw3dvK3KefAiTnjqKeQ OoyUBUJy4hcI5D5JYWXF7qUX/btYYiQl0VNQK8UiatEeCK+t7y3NvahfcUqbanGH5L ZrWV9L+kQgTRCNgokelX5DvsDtOZDydmUTOtnGhrrPXAHWsFx0qgamCICWcp2+D4Zb SGIB1FQFdfz9w== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Cc: Rob Herring , =?UTF-8?q?Pali=20Roh=C3=A1r?= , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH v2 08/10] ARM: dts: armada-375.dtsi: Add definitions for PCIe legacy INTx interrupts Date: Tue, 12 Jul 2022 18:41:06 +0200 Message-Id: <20220712164108.30262-9-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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/armada-375.dtsi | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/armada-375.dtsi b/arch/arm/boot/dts/armada-375.dtsi index 7f2f24a29e6c..929deaf312a5 100644 --- a/arch/arm/boot/dts/armada-375.dtsi +++ b/arch/arm/boot/dts/armada-375.dtsi @@ -568,16 +568,26 @@ pcie0: pcie@1,0 { reg = <0x0800 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; + interrupt-names = "intx"; + interrupts-extended = <&gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <1>; ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0 0x81000000 0 0 0x81000000 0x1 0 1 0>; bus-range = <0x00 0xff>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; + 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>; marvell,pcie-port = <0>; marvell,pcie-lane = <0>; clocks = <&gateclk 5>; status = "disabled"; + + pcie0_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; pcie1: pcie@2,0 { @@ -586,16 +596,26 @@ pcie1: pcie@2,0 { reg = <0x1000 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; + interrupt-names = "intx"; + interrupts-extended = <&gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <1>; ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0 0x81000000 0 0 0x81000000 0x2 0 1 0>; bus-range = <0x00 0xff>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; + 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>; marvell,pcie-port = <0>; marvell,pcie-lane = <1>; clocks = <&gateclk 6>; status = "disabled"; + + pcie1_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; }; -- 2.35.1