Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4554222imw; Tue, 12 Jul 2022 09:55:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uBpykNkdmQCBoNZZWhVvZsjDOYmB3lTIE4lS9JwFoKpJEUbePT8/X65SzoOb/eHFgtbwjh X-Received: by 2002:a65:6a4a:0:b0:40d:dd27:80fd with SMTP id o10-20020a656a4a000000b0040ddd2780fdmr22203264pgu.54.1657644959716; Tue, 12 Jul 2022 09:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657644959; cv=none; d=google.com; s=arc-20160816; b=E0L/m67sDW3FLHM0mq/eO4D2l8+Tvx0MjYUjZHepe2sb7KD8J3g8WNXyBhkkr9UKRA F0qNiH80a3IQlurUUSwbjU4WpCmod1tQVfX1VBNy8ySDxTIDKZSiBjzlOACWtAQ+MPyD Nej7fF5qt410o7oFQb/9ddHeVo40hBEzYLupmpuHcyWTudoZC0akaGos3TIBWd24COil FCI4Pyam8nqLRDQciaRBURrwcHyCFly5yKLMjvF3ggg1ccaA4utC7bQsrSzXnSaNLJnB FreoWK8pmdqGBDMzNRXtV24MhEOSj8SDdZ8CtecucA9ECehpM92MhzEDX57rLUm4tfZW kzHg== 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=K2SsIQlsYpPYtArx3zwSoOkFl6A4ofg48E8rKZYjZNs=; b=MvzJtsaaZEOFRmKwkmpr2C84DKBDa7p9OJnphUIewqnOIMu5bAqKFajpOnGqfEkItG xcVU+ZHU8n1A4LZcoebnCEUW6LPx4yVd/f/JBijqClB5hk/3QYMZtqjseDN8HuLmjoT/ EvSOHdzl/gHNgtkXMmq+gAA6LrcltBCvuWjfK0jBr8zNZnnICg17tZe/kJ9H0o76e4O4 4RUyWpME1NC8/KiJnk18bdMsOQqeLCsrILIsuz/18q4msEvXA7umldewqSN61EBIhlhL jDfdRRmd4tF4dW3LxVeHXXk3Z9K6elO86kqmnFUi9WmWctSHNK4B2OPzw6z+9vOe52ge LDlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HbsJGK/R"; 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 q4-20020a632a04000000b00415da5925e4si13037682pgq.414.2022.07.12.09.55.47; Tue, 12 Jul 2022 09:55:59 -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="HbsJGK/R"; 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 S233545AbiGLQlf (ORCPT + 99 others); Tue, 12 Jul 2022 12:41:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233118AbiGLQlX (ORCPT ); Tue, 12 Jul 2022 12:41:23 -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 64B0CB38D9; Tue, 12 Jul 2022 09:41:22 -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 0305CB817B7; Tue, 12 Jul 2022 16:41:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05F6CC341CA; Tue, 12 Jul 2022 16:41:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657644079; bh=8ejeaiz9hLOtCSMtdSNcLpHTyF5dYkrAAy4F6AZE/M0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HbsJGK/R6lS2CaGYvoq9ZKZPcWcXynNdwq0htw3PDiDjpglAkXJMP/Nh2ke8UvUWF YxEePS8JMmg4zS4bCphP19O3wCNAq8H9iCCZiBkCP2AKWRjkOVw8wzzfFBxLI8r1NJ YF/+bURf+GFQz0NB+5X9VucSaKDLBt3m5BW6uEGFcNu/+bOyAsot9ynGoQ3ojXzyoF Jmm6B+82eWyASAcPqgUf9t8SHaDb8WvNPStrWn7doMarr6ugKgHOJXT/ZoZiQer3u/ nPHxROhJtHCjmKQCZ0u8IehaUC+LxRY7bfO/ZeDOTz5Jj4GztccYGcl/Nag92wsQZz uThkoieEnK5Xg== 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 03/10] ARM: dts: armada-370.dtsi: Add definitions for PCIe legacy INTx interrupts Date: Tue, 12 Jul 2022 18:41:01 +0200 Message-Id: <20220712164108.30262-4-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-370.dtsi | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi index 46e6d3ed8f35..9dc928859ad3 100644 --- a/arch/arm/boot/dts/armada-370.dtsi +++ b/arch/arm/boot/dts/armada-370.dtsi @@ -60,16 +60,26 @@ pcie0: pcie@1,0 { reg = <0x0800 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; + interrupt-names = "intx"; + interrupts-extended = <&mpic 58>; #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 &mpic 58>; + 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>; + }; }; pcie2: pcie@2,0 { @@ -78,16 +88,26 @@ pcie2: pcie@2,0 { reg = <0x1000 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; + interrupt-names = "intx"; + interrupts-extended = <&mpic 62>; #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 &mpic 62>; + 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 9>; status = "disabled"; + + pcie2_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; }; -- 2.35.1