Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2784865imw; Wed, 6 Jul 2022 11:42:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sO9ypTwbSCQDBtinVeYIa1b5yrG/rTFAxcqUHx/MK2eDdVjTIbVQI2aqjTQVPBYcoIgPS5 X-Received: by 2002:a17:906:2da:b0:712:14b:62da with SMTP id 26-20020a17090602da00b00712014b62damr40210011ejk.351.1657132939301; Wed, 06 Jul 2022 11:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657132939; cv=none; d=google.com; s=arc-20160816; b=Uz2bb3e8qC236gSBunuNxHKO/8aQo9Lz36eFdxIDCat++pogplG2Q8c9Kk+chrJQzc F/EtDFZovxa7XYKoO6iZ6OmdG4yfCxHCyGaul3R23elOnL0yZlRDAh1EBbc7IOnRg5Fk ty3b1Nae47V1N4SNjNI7c4GWPQxraHFZcvcw1pn2XhLbf50Uqf39ZGjbBFiXxC+W0qU0 FV65jHk3GFqQxi8XUfgHwYBfjFo3/64C1DaBfA/FOoIsxT3lWRvKpJcg1rp3wfMJTNIv uuu5ql6x0B8wC99817FI+9rPmsL8xlESav0zGMHrd+FwOiywQjenV1+2vhCnEZyNMTe7 VzXg== 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=NCDabbT74t1qlgTdOHLkUXoIpIcAp/FSZyzDV2+by3c=; b=xMlMphwQrLCnn2roHXz4UcnEq9ApQ62aMAkd4GMvHWRhD/ICDgzeh/YzhaD2y7QWVB 280r2QzVmZLOa2mNNFgi6kC6hYad6WmmW3kZC7iu+LGoRKwXFd4mNcwxX+O7+r/oHZbO kaA0R7HhSoZp5X0vbG2WABqfdt6GEPLnHuRBhs5GPK+fMhaxgWSIPsUzWk7j6qMmOfjt s649o058EL1T08yIc/7eocwdJ+jsWVVOrTWZaaLUq38dUj0nEwWm6BkekZaogEn5mUAw xVWztLwM71VP9tCpoYLkU8JUmzDfgOqvpMZSlVbjCohDL03vhYDgyval9x1wR7OYS9SD iSMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GgdOFp5w; 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 o11-20020a170906974b00b0071578e888bbsi25150404ejy.924.2022.07.06.11.41.54; Wed, 06 Jul 2022 11:42:19 -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=GgdOFp5w; 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 S234639AbiGFSff (ORCPT + 99 others); Wed, 6 Jul 2022 14:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234599AbiGFSfF (ORCPT ); Wed, 6 Jul 2022 14:35:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FD9728E13; Wed, 6 Jul 2022 11:34:59 -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 00202B81E83; Wed, 6 Jul 2022 18:34:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62618C3411C; Wed, 6 Jul 2022 18:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657132496; bh=gQGas0sgKQVx+dzq33uEPho8EHc+kxq3TgZDJ3os0rA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GgdOFp5wg2X+S6fa+1vTsYbCcDAS9x6qlsT8qSajgoG/QSewy/B2+EWTYmD4rwWfr wYevXT3DAO68z+l4c7LR/FO2Lcg27FjmXjBDwJvFlOaDTKFkdQcNbYWRhaBpSU0EUL sxyysCVrvUFWAAWYqF8y3dhxlf0fSGs6m6iLUoVzzfgVgpeTnzOPQR2GVLMUE7llKx dbZ2uxCseSJ3lu7czKO8GRbHuAE63f8lBc5bLtFKIudjRhm1Mu0NVPCphUFoA8N+fF w/OVkLM/RIRvxpaZ63FCJHjn+O18JeEHB6gRXoI8buXw0DlS120asO35Mr8WNZpquQ hH+//WiwBdJRg== Received: by pali.im (Postfix) id 1B67C7BA; Wed, 6 Jul 2022 20:34:56 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , =?UTF-8?q?Marek=20Beh=C3=BAn?= Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/11] ARM: dts: armada-39x.dtsi: Add definitions for PCIe legacy INTx interrupts Date: Wed, 6 Jul 2022 20:31:14 +0200 Message-Id: <20220706183114.30783-12-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 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 Signed-off-by: Pali Rohár --- arch/arm/boot/dts/armada-39x.dtsi | 56 ++++++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/armada-39x.dtsi b/arch/arm/boot/dts/armada-39x.dtsi index e0b7c2099831..923b035a3ab3 100644 --- a/arch/arm/boot/dts/armada-39x.dtsi +++ b/arch/arm/boot/dts/armada-39x.dtsi @@ -438,16 +438,26 @@ 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 */ @@ -457,16 +467,26 @@ 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 */ @@ -476,16 +496,26 @@ 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>; + }; }; /* @@ -498,16 +528,26 @@ reg = <0x2000 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; + interrupt-names = "intx"; + interrupts-extended = <&gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <1>; ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0 0x81000000 0 0 0x81000000 0x4 0 1 0>; bus-range = <0x00 0xff>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie4_intc 0>, + <0 0 0 2 &pcie4_intc 1>, + <0 0 0 3 &pcie4_intc 2>, + <0 0 0 4 &pcie4_intc 3>; marvell,pcie-port = <3>; marvell,pcie-lane = <0>; clocks = <&gateclk 7>; status = "disabled"; + + pcie4_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + }; }; }; -- 2.20.1