Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4590149imw; Tue, 12 Jul 2022 10:31:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tkDhpVPA0RYW7lmdsDXPKyEls0I10gzC8nz/50Z6rlvMJyJAFu4n18GP4AJEzSrmMT0sWn X-Received: by 2002:a17:907:3d86:b0:72b:4b25:1031 with SMTP id he6-20020a1709073d8600b0072b4b251031mr13500221ejc.536.1657647082690; Tue, 12 Jul 2022 10:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657647082; cv=none; d=google.com; s=arc-20160816; b=0iC31R4aiE/ZGIChpB0AxEEB5BZFyNB3BZ5nrAE+Rhlqyx6MIFpQr7POtH+4n7hl/v xGiCKn5eMvohWWxGB/P/n5eamT6m/ohsoUbfwhFz+KHuuj8bfRbkHJV7O8YJ65tbep4a /bJa3kvqrCKoR2Xmq+xGDIydhYb3xY8xx9ezVLfedaj4OwqefxaJNlTNr11UNdo0+TTC Y4xgU+xAw8Hj8owkiwHoYU1BfSCm4j4t5ciSPnVyvSKgGfMt3vC0BwHwGFjdmz+KliXJ suRpNl5oMMnxhMpoYlvNra2wLHY5waDNpyC5lOkzlUObKKbMOGNPR7lEWLKNaNAS4t6x FAAw== 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=hkIrjxrAQSJxQ1kKIf0mIK8BjPH9ihET3CZENTDDKpg=; b=cjrOweQDEVhRiF1X1vCnmz2Ja5YwFnGO85Atjs5dusY/ytd1txOvUYnHL0Ejm0EG9p af/J80lG9LykveoqpWsX2kLlyFWq3nZUOdsowJ9PFhZyplaAlwfRzD3tRpESsFaTUOg1 SARY640JehHnATTY8N7WFkNHe6daATa4gD0y8P8xqhfYZO6a4yeFvCKvOC+t4mQ2mF/T X+lGZqeL3TREnaL9vSVk0SAqwY41FfIEK3nwZ70JDofAVROlJlAehsZ7WJ8D15c9bD0z 7sk9FbZFL1n044ac/sh2xzQEJfi7oiZoqxqWbjf/kSVw+jAa1AcBR6ckJSQt/UzIzLqQ 3UCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Te8+k4AY; 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 z25-20020aa7c659000000b0043777cec0d2si13529691edr.631.2022.07.12.10.30.57; Tue, 12 Jul 2022 10:31:22 -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=Te8+k4AY; 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 S233559AbiGLQlh (ORCPT + 99 others); Tue, 12 Jul 2022 12:41:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233355AbiGLQlb (ORCPT ); Tue, 12 Jul 2022 12:41:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABBEEB418A; Tue, 12 Jul 2022 09:41:24 -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 368FCB81A76; Tue, 12 Jul 2022 16:41:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32318C3411C; Tue, 12 Jul 2022 16:41:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657644082; bh=7SU+lansfxppynvPUzU0yCnCk58FDSjADBXkvGzF/7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Te8+k4AYnVNYk5zKcs83QylLNIHNwfectxUm5OKwE3DoLurqWrX5UePAWwl+ef3gb JWc/Mym6/jPXxXz0Saktx/6Td1hgqsLrLRPPcWTC7nn63cKe26J+fItsVjynH7toiM RFNFnTc+7p25hpOw4etytbVVVyoNDj7z/MPZbuilfE3/L9q1cRG0vexcReGgm3FoVJ TmHLANiitO1FzMG5E+GjL98wORx1pIwNgUNRdHbOFznvF+XvwJqaQhcZ0AfJQwKB1v vD4tW3PsAOpbNRTx5SX2gWTe9YwDV+zTiUhRN8VuQJWhE5kScb+a/HgN1+6qji6371 SEbjAFyKJHYDg== 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 04/10] ARM: dts: armada-xp-98dx3236.dtsi: Add definitions for PCIe legacy INTx interrupts Date: Tue, 12 Jul 2022 18:41:02 +0200 Message-Id: <20220712164108.30262-5-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-xp-98dx3236.dtsi | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi index 38a052a0312d..b21ffb819b1d 100644 --- a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi +++ b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi @@ -76,16 +76,26 @@ pcie1: 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 &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 5>; status = "disabled"; + + pcie1_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; }; -- 2.35.1