Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4549894imw; Tue, 12 Jul 2022 09:50:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v4SjIMhfsd6+PM/6R3GBFv89KBfvxIgOaJv70lqil02OYcmMYrb/EvN/8G8iw6lM78Q576 X-Received: by 2002:a17:90b:4a83:b0:1ef:de4c:660f with SMTP id lp3-20020a17090b4a8300b001efde4c660fmr5313303pjb.213.1657644654910; Tue, 12 Jul 2022 09:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657644654; cv=none; d=google.com; s=arc-20160816; b=t+Q/vH7sJt3tmxTbdZGZQHUUADQ/Q1MiUdHSuKBWFDAhEXmcX2p8C/mm5c3KWp96oZ Gv07AxO5c+rUdpqHx1GUgD1jOP7eHRZimp0j4Cr4FUh/nuUweo8gcL8FgDflMZP/qWNm wG4f9GsZoqDTKVSjQJ9oYZQ0b2108bTy6v+2Bf2SL3FCDv4Pd0tQcq9RH6mlitmK+ENU W+ft14kPXkgZ44HqcvGc46K8eCrBg5u3EGi/mGDCD/nQOJClgNA/btyl1MQRH3j3EW6c RQGLI3rMfC+cysxE/EVZRb5U+KnWdIaB/12HyOqdlGNdRpTnLLqHvfO0nj4O32Bm6QBR uYcQ== 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=104wkQJE/DhkIZrpPZQQx+CWtrytzxfqAi+udNZtSps=; b=vY9LQ6B7qnbvdBoCNITH8GH45RMXeuBXsgwMU86pa6jEwWoOvtMGw63WLk0pVQfSYo bhfvm0/Teqzc3k8JW6YbH/yIhkuVnY1IcSvu3ur98YgSv9rzKcJV5bo3M6YlnhEETKeG ZPKzF34snZo48x0IkDOZn9xUp+C1fV8ZzC1n6zB09XD12e6UEORRJLw19mSF5z+pp6+n g5pqQWuEzbXGt1ixT0AH05pCf4hrPiMpAmAOoIWt/0tTP3HsrzdKjdQJDRB376fw7ch/ nJI5GzXj8I4s2NsiXbmJGLB7wM1TFW8Hschmj+cPRq7iIE9km1bhm3H7Qta6kxG276NM 0XbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=alu4x58F; 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 na13-20020a17090b4c0d00b001f044828f3dsi7212030pjb.28.2022.07.12.09.50.42; Tue, 12 Jul 2022 09:50:54 -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=alu4x58F; 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 S232314AbiGLQmR (ORCPT + 99 others); Tue, 12 Jul 2022 12:42:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233368AbiGLQlj (ORCPT ); Tue, 12 Jul 2022 12:41:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69F17B4199; Tue, 12 Jul 2022 09:41:35 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2C26DB817B7; Tue, 12 Jul 2022 16:41:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E5D6C3411E; Tue, 12 Jul 2022 16:41:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657644092; bh=SXkMegj1u4GiyrfeNuHSsXbaYZEe6t2/pFH37yNDYX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=alu4x58Fz3PhWiB+Qs/MMSgBwvZNP1DIRwwl/7s/hODh69772NM1xvjLtC5Hq6c3R e1Cs2p2h744AXGJMoDtwThk7IGNkb8TxwpowQT+ZzT5EMlekaAna/GJB8z2S3kXqqW FGMSHvW2R8zTEjqFIKMXe2wvJ4mFWt87FKB+yjKkyoYb1zM//YHpttgjYdoOuu7ju+ 3egGfmlXUZDUtlg2Vmpv4EfsHu3IGTUekajyIYXsQp7tjquVmTXT45O7bH6PYNqYWA fb0O5DKYJCmu8iAo9T7MPSLyFggytEB7PTZMmg+xyDKHr8YvZbd1kDc8SsIrJFvch4 wzBfZjZBHXFrw== 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 09/10] ARM: dts: armada-380.dtsi: Add definitions for PCIe legacy INTx interrupts Date: Tue, 12 Jul 2022 18:41:07 +0200 Message-Id: <20220712164108.30262-10-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-380.dtsi | 42 ++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/armada-380.dtsi b/arch/arm/boot/dts/armada-380.dtsi index cff1269f3fbf..ce1dddb2269b 100644 --- a/arch/arm/boot/dts/armada-380.dtsi +++ b/arch/arm/boot/dts/armada-380.dtsi @@ -64,16 +64,26 @@ 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 &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 = <0>; clocks = <&gateclk 8>; status = "disabled"; + + pcie1_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; /* x1 port */ @@ -83,16 +93,26 @@ 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 &pcie2_intc 0>, + <0 0 0 2 &pcie2_intc 1>, + <0 0 0 3 &pcie2_intc 2>, + <0 0 0 4 &pcie2_intc 3>; marvell,pcie-port = <1>; marvell,pcie-lane = <0>; clocks = <&gateclk 5>; status = "disabled"; + + pcie2_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; /* x1 port */ @@ -102,16 +122,26 @@ pcie@3,0 { reg = <0x1800 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; + interrupt-names = "intx"; + interrupts-extended = <&gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <1>; ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0 0x81000000 0 0 0x81000000 0x3 0 1 0>; bus-range = <0x00 0xff>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie3_intc 0>, + <0 0 0 2 &pcie3_intc 1>, + <0 0 0 3 &pcie3_intc 2>, + <0 0 0 4 &pcie3_intc 3>; marvell,pcie-port = <2>; marvell,pcie-lane = <0>; clocks = <&gateclk 6>; status = "disabled"; + + pcie3_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; }; }; -- 2.35.1